/* =========================================================
   Family's Permis — feuille de style principale
   Palette : encre profonde + feu vert "signal" + crème
   ========================================================= */

:root {
  --ink: #11130d;
  --ink-soft: #1b1e16;
  --cream: #f3f1e7;
  --cream-2: #e9e6d8;
  --paper: #ffffff;
  --green: #c6fb4b;       /* feu vert / signal */
  --green-deep: #9fe000;
  --green-ink: #243200;
  --coral: #ff6a3d;       /* accent chaud secondaire */
  --muted: #6f7363;
  --line: rgba(17, 19, 13, 0.12);
  --line-light: rgba(243, 241, 231, 0.16);

  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px -28px rgba(17, 19, 13, 0.45);
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--green-deep); display: inline-block; }

.section { padding: clamp(64px, 9vw, 130px) 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; max-width: 560px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.97rem;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: var(--green-ink); box-shadow: 0 10px 30px -12px rgba(159,224,0,0.8); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(159,224,0,0.9); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { transform: translateY(-3px); background: var(--ink-soft); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-3px); }
.btn-light-ghost { border-color: var(--line-light); color: var(--cream); }
.btn-light-ghost:hover { border-color: var(--cream); transform: translateY(-3px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(243, 241, 231, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 10px 30px -22px rgba(17,19,13,.5); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--green);
  display: grid; place-items: center; font-size: 18px; transform: rotate(-6deg);
}
.brand b { color: var(--green-deep); }
.brand-img img { height: 40px; width: auto; display: block; }
.footer-logo { background: var(--cream); border-radius: 14px; padding: 12px 16px; display: inline-block; margin-bottom: 16px; }
.footer-logo img { height: 42px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--ink); opacity: .82; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; }
.nav-phone .ic { width: 17px; height: 17px; color: var(--green-deep); }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); }
.burger .ic { width: 26px; height: 26px; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding: clamp(40px, 6vw, 76px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px;
  background: var(--ink); color: var(--cream); font-weight: 700; font-size: 0.78rem; letter-spacing: .03em;
}
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(198,251,75,.25); }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.1rem); margin: 22px 0 22px; }
.hero h1 .hl { position: relative; color: var(--ink); white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 8%; height: 38%;
  background: var(--green); z-index: -1; border-radius: 6px; transform: rotate(-1.4deg);
}
.hero-lead { font-size: 1.16rem; color: var(--muted); max-width: 480px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-proof { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.stars { color: var(--green-deep); font-size: 1.05rem; letter-spacing: 2px; }
.hero-proof .rate { font-weight: 800; font-family: var(--font-display); }
.hero-proof small { color: var(--muted); font-size: .86rem; }
.hero-proof .sep { width: 1px; height: 34px; background: var(--line); }

.hero-media { position: relative; }
.hero-media .frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4/5; transform: rotate(1.6deg);
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.float-badge {
  position: absolute; background: var(--paper); border-radius: 16px; padding: 13px 16px;
  box-shadow: 0 18px 40px -20px rgba(17,19,13,.5); display: flex; align-items: center; gap: 11px;
}
.float-badge .fb-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.float-badge .fb-ic .ic { width: 20px; height: 20px; }
.float-badge strong { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.float-badge span { font-size: .76rem; color: var(--muted); }
.fb-cpf { top: 22px; left: -26px; transform: rotate(-4deg); }
.fb-cpf .fb-ic { background: var(--green); color: var(--green-ink); }
.fb-pass { bottom: 26px; right: -22px; transform: rotate(3deg); }
.fb-pass .fb-ic { background: var(--ink); color: var(--green); }

/* =========================================================
   MARQUEE bandeau
   ========================================================= */
.ticker { background: var(--ink); color: var(--cream); padding: 16px 0; overflow: hidden; border-block: 1px solid var(--ink); }
.ticker-track { display: flex; gap: 46px; width: max-content; animation: slide 26s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.ticker-item .ic { width: 18px; height: 18px; color: var(--green); }
@keyframes slide { to { transform: translateX(-50%); } }

/* =========================================================
   STATS
   ========================================================= */
.stats { background: var(--cream); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat { padding: 30px 26px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; }
.stat .num b { color: var(--green-deep); }
.stat p { color: var(--muted); margin-top: 8px; font-size: .96rem; }

/* =========================================================
   FINANCEMENT
   ========================================================= */
.fin { background: var(--ink); color: var(--cream); }
.fin .eyebrow { color: #b9bda9; }
.fin .eyebrow::before { background: var(--green); }
.fin .section-head h2 { color: var(--cream); }
.fin .section-head p { color: #b6baa8; }
.fin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fin-card {
  position: relative; padding: 28px 24px 26px; border-radius: var(--radius);
  background: var(--ink-soft); border: 1px solid var(--line-light); overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.fin-card:hover { transform: translateY(-6px); border-color: var(--green-deep); }
.fin-card .f-ic { width: 46px; height: 46px; border-radius: 13px; background: rgba(198,251,75,.12); color: var(--green); display: grid; place-items: center; margin-bottom: 18px; }
.fin-card .f-ic .ic { width: 24px; height: 24px; }
.fin-card h3 { font-size: 1.24rem; margin-bottom: 8px; }
.fin-card p { color: #b6baa8; font-size: .94rem; }
.fin-card .tagline { display: inline-block; margin-top: 16px; font-weight: 700; font-size: .82rem; color: var(--green); }
.fin-highlight { grid-column: span 1; background: var(--green); color: var(--green-ink); }
.fin-highlight .f-ic { background: rgba(36,50,0,.12); color: var(--green-ink); }
.fin-highlight p, .fin-highlight .tagline { color: var(--green-ink); }
.fin-highlight .tagline { opacity: .85; }
.fin-note { margin-top: 28px; font-size: .86rem; color: #9da291; }

/* =========================================================
   FORMATIONS
   ========================================================= */
.forms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fcard {
  position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line); transition: transform .3s, box-shadow .3s;
}
.fcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.fcard .f-ic { width: 50px; height: 50px; border-radius: 14px; background: var(--cream-2); color: var(--ink); display: grid; place-items: center; margin-bottom: 20px; }
.fcard .f-ic .ic { width: 25px; height: 25px; }
.fcard.feature { background: var(--ink); color: var(--cream); }
.fcard.feature .f-ic { background: var(--green); color: var(--green-ink); }
.fcard.feature p { color: #b6baa8; }
.fcard h3 { font-size: 1.32rem; margin-bottom: 10px; }
.fcard p { color: var(--muted); font-size: .97rem; }
.fcard .chip { position: absolute; top: 22px; right: 22px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--green); color: var(--green-ink); }

/* =========================================================
   MÉTHODE / Kopilote
   ========================================================= */
.method { background: var(--cream); }
.method-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.method-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5/6; }
.method-media img { width: 100%; height: 100%; object-fit: cover; }
.steps { display: flex; flex-direction: column; gap: 8px; }
.step { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: none; }
.step .n { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--green-deep); flex: none; width: 44px; }
.step h4 { font-size: 1.18rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .97rem; }

/* =========================================================
   TARIFS
   ========================================================= */
.pricing { background: var(--ink); color: var(--cream); }
.pricing .eyebrow { color: #b9bda9; }
.pricing .eyebrow::before { background: var(--green); }
.pricing .section-head h2 { color: var(--cream); }
.pricing .section-head p { color: #b6baa8; }
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.price-card { background: var(--ink-soft); border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: 32px 30px; transition: border-color .3s; }
.price-card:hover { border-color: var(--green-deep); }
.price-card.pop { background: linear-gradient(160deg, #20251a, #171a13); border-color: var(--green-deep); position: relative; }
.price-card.pop::before { content: "Le plus choisi"; position: absolute; top: 22px; right: 26px; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--green); }
.price-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.price-card .sub { color: #b6baa8; font-size: .9rem; margin-bottom: 22px; }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.price-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line-light); }
.price-list li:last-child { border-bottom: none; }
.price-list .lbl { font-weight: 600; }
.price-list .lbl small { display: block; color: #9da291; font-weight: 500; font-size: .8rem; }
.price-list .amt { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; color: var(--cream); white-space: nowrap; }
.price-list .amt small { color: var(--green); font-size: .72rem; font-weight: 700; }
.price-foot { margin-top: 26px; font-size: .82rem; color: #9da291; }

/* =========================================================
   AVIS (marquee de cartes)
   ========================================================= */
.reviews { background: var(--cream); overflow: hidden; }
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.google-pill { display: inline-flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; box-shadow: 0 10px 26px -18px rgba(17,19,13,.5); }
.google-pill .g { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.google-pill .g .b{color:#4285F4}.google-pill .g .r{color:#EA4335}.google-pill .g .y{color:#FBBC05}.google-pill .g .g2{color:#34A853}
.google-pill .meta strong { font-family: var(--font-display); font-size: 1.05rem; }
.google-pill .meta span { display: block; font-size: .78rem; color: var(--muted); }

.rev-row { display: flex; gap: 20px; width: max-content; }
.rev-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rev-track { animation: slide 60s linear infinite; }
.rev-marquee:hover .rev-track { animation-play-state: paused; }
.rev-card { width: 360px; flex: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.rev-card .stars { font-size: .95rem; }
.rev-card p { font-size: .96rem; color: #3a3d31; }
.rev-card .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.rev-card .av { width: 40px; height: 40px; border-radius: 50%; background: var(--green); flex: none; overflow: hidden; }
.rev-card .av svg { display: block; width: 40px; height: 40px; }
.rev-card .av text { font-family: var(--font-body); font-weight: 800; font-size: 17px; fill: var(--green-ink); }
.rev-card .who b { font-size: .95rem; }
.rev-card .who span { display: block; font-size: .76rem; color: var(--muted); }

/* =========================================================
   AGENCES
   ========================================================= */
.agences-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.agence {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column;
}
.agence:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.agence .a-top { padding: 26px 24px 20px; }
.agence .dept { font-weight: 800; font-size: .74rem; letter-spacing: .08em; color: var(--green-deep); text-transform: uppercase; }
.agence h3 { font-size: 1.5rem; margin: 6px 0 14px; }
.agence .a-line { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); font-size: .92rem; margin-bottom: 9px; }
.agence .a-line .ic { width: 17px; height: 17px; color: var(--ink); flex: none; margin-top: 2px; }
.agence .a-line a { color: var(--ink); font-weight: 600; }
.agence .a-foot { margin-top: auto; padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.agence .a-foot a { font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 7px; }
.agence .a-foot .ic { width: 16px; height: 16px; color: var(--green-deep); }
.muted-soft { color: var(--muted); font-style: italic; font-size: .88rem; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--ink); color: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-left .eyebrow { color: #b9bda9; }
.contact-left .eyebrow::before { background: var(--green); }
.contact-left h2 { color: var(--cream); font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 14px 0 18px; }
.contact-left p { color: #b6baa8; max-width: 420px; margin-bottom: 30px; }
.contact-pills { display: flex; flex-direction: column; gap: 14px; }
.cpill { display: flex; align-items: center; gap: 14px; }
.cpill .ic-box { width: 46px; height: 46px; border-radius: 13px; background: rgba(198,251,75,.12); color: var(--green); display: grid; place-items: center; flex: none; }
.cpill .ic-box .ic { width: 22px; height: 22px; }
.cpill small { display: block; color: #9da291; font-size: .78rem; }
.cpill strong { font-family: var(--font-display); font-size: 1.05rem; }

.form { background: var(--ink-soft); border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: 32px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 7px; color: #cdd0c0; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-light);
  background: rgba(243,241,231,.04); color: var(--cream); font-family: var(--font-body); font-size: .95rem;
  transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #7c8071; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: rgba(243,241,231,.07); }
.field select { appearance: none; }
.field textarea { resize: vertical; min-height: 96px; }
.form .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: .76rem; color: #9da291; text-align: center; margin-top: 14px; }
.form-ok { display: none; text-align: center; padding: 14px; border-radius: 12px; background: rgba(198,251,75,.14); color: var(--green); font-weight: 600; margin-top: 14px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: #0b0c08; color: var(--cream); padding: 64px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-light); }
.footer .brand { color: var(--cream); font-size: 1.3rem; margin-bottom: 16px; }
.footer-top p { color: #9da291; max-width: 320px; font-size: .94rem; }
.f-col h5 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #7c8071; margin-bottom: 16px; }
.f-col a, .f-col span { display: block; color: #c8cbbb; font-size: .94rem; margin-bottom: 10px; }
.f-col a:hover { color: var(--green); }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-light); display: grid; place-items: center; color: var(--cream); transition: background .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.socials .ic { width: 20px; height: 20px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; flex-wrap: wrap; }
.footer-bottom p { color: #7c8071; font-size: .82rem; }

/* =========================================================
   REVEAL anim
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 440px; margin-inline: auto; }
  .stats-grid, .fin-grid, .forms-grid, .agences-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .method-media { max-width: 460px; }
  .price-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream); padding: 22px; gap: 18px; border-bottom: 1px solid var(--line);
  }
  .nav-phone span { display: none; }
  .burger { display: block; }
  .stats-grid, .fin-grid, .forms-grid, .agences-grid { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .float-badge { transform: none !important; }
  .fb-cpf { left: -8px; }
  .fb-pass { right: -8px; }
}
