/* ============================================================
   Café du Soleil — Landing Craft V2
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Lato:wght@300;400;700;900&display=swap');

:root {
  --primary: #bc9c68;
  --primary-d: #a58350;
  --accent: #87704b;
  --accent-d: #6b5639;
  --accent-soft: rgba(135, 112, 75, 0.10);
  --ink: #1f1b17;
  --ink-soft: #4a443b;
  --muted: #8a8178;
  --bg: #faf6ef;
  --bg-soft: #f3efe7;
  --line: #e6e1d8;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 28px 70px rgba(31, 27, 23, 0.16);
  --shadow-sm: 0 10px 30px rgba(31, 27, 23, 0.09);
  --shadow-lg: 0 40px 90px rgba(31, 27, 23, 0.22);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.js-ready .reveal { opacity: 0; transform: translateY(30px); }
html.js-ready .reveal.in { opacity: 1; transform: translateY(0); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }

body {
  font-family: 'Lato', system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.12;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
h1 em, h2 em {
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--maxw), 92%); margin-inline: auto; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .76rem; font-weight: 700; letter-spacing: .20em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--accent);
}
.eyebrow.light { color: var(--primary); }
.eyebrow.light::before { background: var(--primary); }

.sec-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.sec-head h2 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
.sec-head p { color: var(--ink-soft); margin-top: 18px; font-size: 1.1rem; }

.section { padding: 110px 0; }
.section-soft { background: var(--bg-soft); }
.section-primary { background: var(--ink); color: #e8e6e3; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: .94rem;
  padding: 15px 30px; border-radius: 999px; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 12px 28px rgba(135,112,75,.28); }
.btn-accent:hover { background: var(--accent-d); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-lg { padding: 17px 36px; font-size: 1.02rem; }

/* Top bar */
.topbar { background: var(--ink); color: #cfc9c2; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: center; flex-wrap: wrap; padding: 10px 0; }
.topbar-inner span { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; border-right: 1px solid rgba(255,255,255,.12); }
.topbar-inner span:last-child { border-right: none; }
.topbar-inner svg { width: 15px; height: 15px; color: var(--primary); }
.topbar-inner a:hover { color: var(--primary); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.nav-logo img { height: 48px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-weight: 700; font-size: .9rem; letter-spacing: .03em; transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-cta-mobile { display: none; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; }

/* HERO — carte à cheval */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(31,27,23,.45) 0%, rgba(31,27,23,.20) 45%, rgba(31,27,23,.82) 100%); }
.hero-wrap { position: relative; z-index: 2; width: 100%; padding: 0 0 120px; }
.hero-card {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius); padding: 48px 52px;
  box-shadow: var(--shadow-lg); max-width: 680px;
  margin-top: 18vh;
}
.hero-card .eyebrow { margin-bottom: 14px; }
.hero-card h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--ink); line-height: 1.05; margin-bottom: 18px; }
.hero-card h1 em { color: var(--accent); }
.hero-sub { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 30px; max-width: 48ch; line-height: 1.6; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 36px; margin-top: 34px; flex-wrap: wrap; }
.hero-proof .p { border-left: 2px solid var(--accent); padding-left: 16px; }
.hero-proof .p b { display: block; font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--ink); line-height: 1; }
.hero-proof .p span { font-size: .78rem; color: var(--muted); letter-spacing: .10em; text-transform: uppercase; }

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-wrap { padding: 0 0 0; }
  .hero-card { margin: 14vh 0 0; max-width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
}
@media (max-width: 640px) {
  .hero-card { padding: 28px 22px; margin-top: 8vh; }
  .hero-card h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero-sub { font-size: 1rem; margin-bottom: 22px; }
  .hero-cta .btn-lg { padding: 14px 24px; font-size: .92rem; }
  .hero-proof { gap: 18px; margin-top: 26px; }
  .hero-proof .p b { font-size: 1.7rem; }
}

/* Services — bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.tile-phare { grid-column: span 2; grid-row: span 2; position: relative; overflow: hidden; justify-content: flex-end; min-height: 420px; padding: 34px; }
.tile-phare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .6s; }
.tile-phare:hover img { transform: scale(1.05); }
.tile-phare::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(31,27,23,0) 30%, rgba(31,27,23,.82) 100%); }
.tile-phare .tile-body { position: relative; z-index: 2; color: #fff; }
.tile-phare .tile-body h3 { color: #fff; font-size: 1.9rem; }
.tile-phare .tile-body p { color: #e6e0d8; }
.tile-photo { position: relative; overflow: hidden; min-height: 200px; padding: 0; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .6s; }
.tile-photo:hover img { transform: scale(1.05); }
.tile-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(31,27,23,0) 40%, rgba(31,27,23,.65) 100%); }
.tile-photo span { position: relative; z-index: 2; margin-top: auto; padding: 22px; color: #fff; font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; }
.tile .ico { width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 18px; }
.tile .ico svg { width: 28px; height: 28px; color: var(--accent); }
.tile h3 { font-size: 1.22rem; margin-bottom: 10px; color: var(--ink); }
.tile p { color: var(--ink-soft); font-size: .96rem; line-height: 1.6; }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-phare { grid-column: span 2; grid-row: span 1; min-height: 320px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile-phare { grid-column: span 1; }
}

/* À propos — split + collage */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.about-text h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 22px; }
.about-text p { color: var(--ink-soft); margin-bottom: 18px; }
.about-check { list-style: none; margin: 26px 0 32px; display: grid; gap: 14px; }
.about-check li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.about-check li svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.about-visual { position: relative; min-height: 540px; }
.collage { position: relative; width: 100%; height: 100%; min-height: 540px; }
.collage img { position: absolute; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.collage img:nth-child(1) { top: 0; left: 0; width: 62%; height: 70%; z-index: 1; }
.collage img:nth-child(2) { bottom: 0; right: 0; width: 58%; height: 62%; z-index: 2; }
.stat-card {
  position: absolute; left: 24px; bottom: 24px; z-index: 3;
  background: var(--accent); color: #fff; padding: 22px 28px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.stat-card b { font-family: 'Playfair Display', serif; font-size: 2.4rem; display: block; line-height: 1; }
.stat-card span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-visual { min-height: 480px; }
}
@media (max-width: 640px) {
  .collage { min-height: 420px; }
  .collage img:nth-child(1) { width: 70%; height: 60%; }
  .collage img:nth-child(2) { width: 65%; height: 55%; }
  .stat-card { padding: 16px 20px; }
  .stat-card b { font-size: 2rem; }
}

/* Parallax citation */
.parallax {
  position: relative; padding: 140px 0;
  background-attachment: fixed; background-size: cover; background-position: center;
  color: #fff; text-align: center;
}
.parallax::after { content: ""; position: absolute; inset: 0; background: rgba(31,27,23,.70); z-index: 1; }
.parallax-inner { position: relative; z-index: 2; width: min(var(--maxw), 82%); margin-inline: auto; }
.parallax blockquote { font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.7rem); max-width: 26ch; margin: 0 auto; line-height: 1.35; }
.parallax blockquote::before { content: "“"; color: var(--primary); font-size: 1.4em; }
.parallax cite { display: block; margin-top: 24px; font-style: normal; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--primary); }
@media (max-width: 640px) { .parallax { background-attachment: scroll; padding: 100px 0; } }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.05); }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Documents */
.doc-section { background: var(--bg-soft); }
.doc-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.doc-frame { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--white); box-shadow: var(--shadow-sm); max-width: 320px; margin: 0 auto; }
.doc-frame img { border-radius: var(--radius-sm); width: 100%; }
.doc-text h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 20px; }
.doc-text p { color: var(--ink-soft); margin-bottom: 18px; }
@media (max-width: 980px) { .doc-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
.contact-info h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 18px; }
.contact-info p { color: var(--ink-soft); margin-bottom: 26px; }
.contact-blocks { display: grid; gap: 18px; }
.contact-block { display: flex; gap: 16px; align-items: flex-start; }
.contact-block .ico { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; flex-shrink: 0; }
.contact-block .ico svg { width: 22px; height: 22px; color: var(--accent); }
.contact-block b { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-block a, .contact-block span { color: var(--ink); font-weight: 700; }
.contact-block a:hover { color: var(--accent); }
.socials { display: flex; gap: 12px; margin-top: 28px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; transition: background .2s, transform .2s; }
.socials a:hover { background: var(--accent); transform: translateY(-2px); }
.socials a:hover svg { color: #fff; }
.socials svg { width: 20px; height: 20px; color: var(--accent); }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: 'Lato', sans-serif; font-size: .96rem; background: var(--bg); color: var(--ink);
  transition: border-color .15s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form textarea { min-height: 120px; resize: vertical; }
.form .field { margin-bottom: 20px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-success { display: none; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent-d); padding: 18px; border-radius: var(--radius-sm); font-weight: 700; text-align: center; }

@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .form .row2 { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--ink); color: #b5afa7; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer img.flogo { height: 52px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer .baseline { color: var(--primary); font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.15rem; }
.footer h5 { color: #fff; font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer a { display: block; padding: 5px 0; font-size: .92rem; color: #b5afa7; transition: color .15s; }
.footer a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); margin-top: 50px; padding-top: 24px; font-size: .82rem; color: #8a8178; }

@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

/* Responsive nav */
@media (max-width: 980px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; gap: 0; padding: 0 6%; max-height: 0; overflow: hidden; transition: max-height .35s; box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--line); }
  .nav-links.open { max-height: 420px; padding: 12px 6%; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-cta .btn:not(.burger) { display: none; }
  .nav-cta-mobile { display: inline-flex; margin-top: 10px; }
  .burger { display: flex; }
  .section { padding: 80px 0; }
}
