/* =========================================================================
   AQUIGENEA — Cabinet de généalogie familiale (Libourne, Gironde)
   Feuille de style maison. Ambiance « archives douces ».
   ========================================================================= */

/* ----- Fonts (chargées dans chaque <head>) -------------------------------- */
/* Display: Schibsted Grotesk · Body: Hanken Grotesk
   Variantes Tweaks: Spectral (éditorial), Bricolage Grotesque (caractère) */

:root {
  /* Palette — base "Équilibré" (peut être surchargée par les Tweaks) */
  --paper:        #F4EEE1;   /* fond crème chaud, accordé au logo */
  --paper-2:      #FCF9F1;   /* surfaces claires (cartes) */
  --paper-3:      #EBE4D2;   /* bande légèrement plus foncée */
  --paper-edge:   #E0D8C4;

  --ink:          #20393E;   /* texte courant, bleu-pétrole très sombre */
  --ink-strong:   #142E34;   /* titres */
  --ink-soft:     #4B5F63;   /* texte secondaire */

  --petrol:       #1F5560;   /* marque, liens */
  --petrol-deep:  #163E47;   /* boutons, aplats sombres */
  --petrol-soft:  #2E707C;

  --ochre:        #B0894B;   /* accent doré (secondaire, détails éditoriaux) */
  --ochre-deep:   #8C6C36;
  --terracotta:      #BB5A33;   /* accent chaud principal (boutons, soulignés) */
  --terracotta-deep: #97441F;   /* terracotta foncé, lisible pour textes/liens */
  --sage:         #7C9A78;   /* accent végétal */

  --line:         rgba(20,46,52,0.14);
  --line-soft:    rgba(20,46,52,0.08);
  --shadow-soft:  0 1px 2px rgba(20,46,52,.05), 0 10px 30px -18px rgba(20,46,52,.28);
  --shadow-lift:  0 2px 4px rgba(20,46,52,.06), 0 22px 48px -26px rgba(20,46,52,.36);

  /* Typo (surchargeable par Tweaks) */
  --font-display: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.015em;

  /* Rythme */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --radius: 10px;
  --radius-sm: 6px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Variantes de palette (data-palette sur <html>) ------------------------- */
html[data-palette="doux"] {
  --petrol: #2E6770; --petrol-deep: #245058; --petrol-soft: #3C828C;
  --ochre: #BE9A60; --ochre-deep: #9C7C43; --terracotta: #BE7150;
  --ink: #2A4247; --ink-strong: #1E3A40;
}
html[data-palette="profond"] {
  --petrol: #184850; --petrol-deep: #0F3138; --petrol-soft: #226069;
  --ochre: #9C7838; --ochre-deep: #7C5E28; --terracotta: #9E5230;
  --ink: #163137; --ink-strong: #0E262B;
}

/* Variantes typographiques (data-type sur <html>) ------------------------ */
html[data-type="editorial"] {
  --font-display: 'Spectral', Georgia, serif;
  --display-weight: 500;
  --display-tracking: 0;
}
html[data-type="caractere"] {
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.02em;
}

/* ----- Reset & base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Grain papier discret sur tout le fond */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: var(--terracotta-deep); text-decoration: none; }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  color: var(--ink-strong);
  line-height: 1.12;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
h4 { font-size: 1.18rem; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

/* ----- Layout helpers ----------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: var(--wrap-narrow); }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--tight { padding: clamp(48px, 6vw, 84px) 0; }
.band-paper2 { background: var(--paper-2); }
.band-paper3 { background: var(--paper-3); }
.band-ink {
  background: var(--petrol-deep);
  color: #EAE7DA;
}
.band-ink h1, .band-ink h2, .band-ink h3 { color: #FBFAF3; }
.band-edge-top { border-top: 1px solid var(--line); }
.band-edge-bottom { border-bottom: 1px solid var(--line); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 1.1em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--terracotta);
}
.band-ink .eyebrow { color: var(--ochre); }

.lead {
  font-size: clamp(1.12rem, 1.6vw, 1.35rem);
  line-height: 1.6;
  color: var(--ink-soft);
}
.band-ink .lead { color: #C9D2CF; }

/* ----- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 600;
  letter-spacing: .005em;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn { white-space: nowrap; }
.btn--primary { background: var(--terracotta); color: #FBFAF3; }
.btn--primary:hover { background: var(--terracotta-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink-strong); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--petrol); color: var(--petrol-deep); background: rgba(31,85,96,.05); }
.btn--gold { background: var(--ochre); color: #2a2113; }
.btn--gold:hover { background: var(--ochre-deep); color: #fff; transform: translateY(-1px); }
.band-ink .btn--ghost { color: #EAE7DA; border-color: rgba(255,255,255,.28); }
.band-ink .btn--ghost:hover { border-color: var(--ochre); color: #fff; background: rgba(255,255,255,.06); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; color: var(--terracotta-deep);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ----- Ornaments ---------------------------------------------------------- */
.rule-orn {
  display: flex; align-items: center; gap: 14px;
  color: var(--ochre);
}
.rule-orn::before, .rule-orn::after {
  content: ""; height: 1px; flex: 1; background: var(--line);
}
.rule-orn .diamond { width: 7px; height: 7px; background: var(--ochre); transform: rotate(45deg); }

/* ----- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 38px; height: 38px; flex: none;
  color: var(--petrol);
}
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.42rem;
  letter-spacing: .14em; color: var(--ink-strong);
  text-transform: uppercase;
}
/* Marque bicolore : « AQUI » en ocre (Aquitaine), « GENEA » en encre */
.brand__name-aqui { color: var(--ochre-deep); }
.brand__tag {
  font-size: .62rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ochre-deep); margin-top: 4px; font-weight: 600;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: .98rem; font-weight: 500; color: var(--ink);
  position: relative; padding: 4px 0; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--terracotta); transition: width .2s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--ink-strong); font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); background: var(--paper-2); color: var(--ink-strong);
    cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .mobile-nav {
    display: none; flex-direction: column; gap: 4px;
    padding: 12px 28px 22px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--paper);
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 12px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line-soft); }
  .mobile-nav a:last-of-type { border-bottom: none; }
  .mobile-nav .btn { margin-top: 12px; justify-content: center; }
}
@media (min-width: 921px) { .mobile-nav { display: none; } }

/* ----- Hero --------------------------------------------------------------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 2em; max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.medallion {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow-lift);
}
.medallion::after {
  content: ""; position: absolute; inset: 12px; border: 1px solid var(--ochre);
  opacity: .35; border-radius: 8px; pointer-events: none;
}
.medallion__doc {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden; pointer-events: none; opacity: .5;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 26px, var(--line-soft) 26px 27px);
}
.medallion img { position: relative; border-radius: 6px; }
.hero__corner { position: absolute; width: 34px; height: 34px; border: 2px solid var(--ochre); opacity: .55; }
.hero__corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.hero__corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.hero__corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.hero__corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* trust line */
.trust {
  display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: center;
  margin-top: 8px; padding-top: 26px; border-top: 1px solid var(--line);
}
.trust__item { display: flex; flex-direction: column; }
.trust__num { font-family: var(--font-display); font-size: 1.7rem; color: var(--terracotta); font-weight: 600; line-height: 1; }
.trust__lbl { font-size: .82rem; color: var(--ink-soft); margin-top: 6px; }

/* ----- Cards -------------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Mises en page asymétriques (collapse mobile) */
.layout-aside { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(40px,6vw,72px); align-items: start; }
.layout-split { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(40px,6vw,72px); align-items: center; }
@media (max-width: 860px) { .layout-aside, .layout-split { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--terracotta); }
.card__icon {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line); color: var(--petrol);
  margin-bottom: 20px; background: var(--paper);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: 1rem; }
.card__list { list-style: none; margin: 18px 0 0; padding: 0; }
.card__list li {
  position: relative; padding-left: 22px; margin-bottom: 9px; font-size: .96rem; color: var(--ink-soft);
}
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px;
  background: var(--ochre); transform: rotate(45deg);
}

/* ----- Process steps ------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 2.4rem; color: var(--ochre);
  opacity: .55; font-weight: 600; display: block; margin-bottom: 10px; line-height: 1;
}
.step h4 { margin-bottom: .35em; }
.step p { font-size: .95rem; color: var(--ink-soft); }
.step__line { position: absolute; top: 8px; left: 0; right: 0; height: 1px; background: var(--line); }

/* ----- Quote -------------------------------------------------------------- */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote__mark { font-family: var(--font-display); font-size: 4rem; color: var(--ochre); line-height: .6; }
.quote blockquote {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; margin: 18px 0 24px;
  color: #FBFAF3; letter-spacing: var(--display-tracking);
}
.quote figcaption { color: #C9D2CF; font-size: .95rem; letter-spacing: .04em; }
.quote figcaption strong { color: var(--ochre); font-weight: 600; }

/* ----- Blog --------------------------------------------------------------- */
.post-card {
  display: flex; flex-direction: column; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.post-card__media {
  height: 160px; position: relative; overflow: hidden;
  background: var(--petrol-deep);
}
.post-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__body h3 { font-size: 1.28rem; }
.tag {
  align-self: flex-start;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: var(--terracotta-deep); background: rgba(187,90,51,.12);
  padding: 5px 11px; border-radius: 99px; margin-bottom: 14px;
}
.post-meta { font-size: .82rem; color: var(--ink-soft); margin-top: auto; padding-top: 16px; display: flex; gap: 14px; }

/* Motif décoratif "archive" pour les vignettes (pas de photo) */
.archive-motif { position: absolute; inset: 0; opacity: .9; }

/* Article à la une */
.post-feature {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}
.post-feature:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.post-feature__media { min-height: 320px; background: var(--petrol-deep); }
.post-feature__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.post-feature__body h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: .5em; }
@media (max-width: 760px) {
  .post-feature { grid-template-columns: 1fr; }
  .post-feature__media { min-height: 200px; }
}

/* Filtres (chips) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-body); font-size: .92rem; font-weight: 500; cursor: pointer;
  color: var(--ink); background: var(--paper-2); border: 1px solid var(--line);
  padding: 9px 18px; border-radius: 99px;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.chip:hover { border-color: var(--petrol); }
.chip.is-active { background: var(--petrol-deep); color: #FBFAF3; border-color: var(--petrol-deep); }

/* Newsletter */
.newsletter { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter input {
  flex: 1; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 16px;
}
.newsletter input:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(31,85,96,.14); }
@media (max-width: 520px) { .newsletter { flex-direction: column; } }

/* ----- Forms -------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; min-width: 0; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink-strong); letter-spacing: .01em; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  width: 100%; max-width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgba(31,85,96,.14);
}
.field textarea { resize: vertical; min-height: 140px; }
.field-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }

/* ----- Contact info ------------------------------------------------------- */
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.info-list li { display: flex; gap: 16px; }
.info-list .ic {
  flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--paper);
  border: 1px solid var(--line); color: var(--petrol);
  display: flex; align-items: center; justify-content: center;
}
.info-list .ic svg { width: 22px; height: 22px; }
.info-list .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--terracotta-deep); font-weight: 600; }
.info-list .val { color: var(--ink-strong); font-size: 1.05rem; }
.info-list .val a { color: var(--ink-strong); }
.info-list .val a:hover { color: var(--petrol); }

.map-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--paper-3); position: relative; min-height: 320px;
}

/* Pastilles (zone d'intervention) */
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
  font-size: .95rem; font-weight: 500; color: var(--ink-strong);
  background: var(--paper); border: 1px solid var(--line);
  padding: 9px 18px; border-radius: 99px;
}
.pill:nth-child(8), .pill:nth-child(9) { background: var(--petrol-deep); color: #FBFAF3; border-color: var(--petrol-deep); }

/* ----- FAQ (details/summary) ---------------------------------------------- */
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 1.15rem; color: var(--ink-strong); letter-spacing: var(--display-tracking);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  margin-top: -6px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C6C36' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform .25s var(--ease);
}
.faq[open] summary::after { transform: rotate(135deg); }
.faq p { padding: 0 40px 22px 0; margin: 0; color: var(--ink-soft); }

/* ----- Drop cap (ambiance éditoriale) ------------------------------------- */
.dropcap::first-letter {
  font-family: var(--font-display); font-weight: 600;
  font-size: 3.6em; line-height: .78; float: left;
  margin: .06em .12em 0 0; color: var(--petrol);
}

/* ----- Page hero (intérieures) -------------------------------------------- */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 60px); text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { margin-bottom: .3em; }
.page-hero .lead { max-width: 60ch; margin: 0 auto; }

/* ----- Footer ------------------------------------------------------------- */
.site-footer { background: var(--petrol-deep); color: #C9D2CF; padding: clamp(56px, 7vw, 88px) 0 32px; }
.site-footer a { color: #C9D2CF; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .brand__name, .footer-brand .brand__tag { color: #FBFAF3; }
.footer-brand .brand__name-aqui { color: var(--ochre); }
.footer-brand .brand__mark { color: var(--terracotta); }
.footer-brand p { color: #A9B5B3; font-size: .95rem; margin-top: 16px; max-width: 30ch; }
.footer-col h5 { color: #FBFAF3; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a { font-size: .96rem; }
.footer-zone { font-size: .92rem; line-height: 1.7; color: #A9B5B3; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .85rem; color: #8E9C9A;
}

/* ----- Reveal animation (activée seulement si l'horloge d'animation tourne) -- */
@media (prefers-reduced-motion: no-preference) {
  .reveal.anim { opacity: 0; }
  .reveal.anim.in { animation: revealIn .7s var(--ease) both; }
  @keyframes revealIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ----- Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .medallion { max-width: 460px; margin: 0 auto; }
  .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .grid-3, .grid-2, .steps, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero .lead { max-width: none; }
}

/* ----- Tweaks panel (vanilla) --------------------------------------------- */
#tw-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 9999;
  width: 296px; max-width: calc(100vw - 36px);
  background: var(--paper-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lift); padding: 18px;
  font-family: var(--font-body);
  display: none;
}
#tw-panel.open { display: block; }
#tw-panel .tw-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
#tw-panel .tw-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink-strong); }
#tw-panel .tw-close { border: none; background: none; cursor: pointer; color: var(--ink-soft); width: 28px; height: 28px; border-radius: 6px; font-size: 18px; }
#tw-panel .tw-close:hover { background: rgba(20,46,52,.08); }
#tw-panel .tw-sec { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ochre-deep); font-weight: 600; margin: 16px 0 9px; }
#tw-panel .tw-sec:first-of-type { margin-top: 0; }
.tw-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.tw-opt {
  flex: 1; min-width: 72px; cursor: pointer; border: 1px solid var(--line); background: var(--paper);
  border-radius: 8px; padding: 9px 8px; font-size: .82rem; color: var(--ink); text-align: center;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.tw-opt[aria-pressed="true"] { border-color: var(--petrol); background: rgba(31,85,96,.08); color: var(--ink-strong); font-weight: 600; }
.tw-opt .sw { display: flex; gap: 3px; justify-content: center; margin-bottom: 6px; }
.tw-opt .sw i { width: 14px; height: 14px; border-radius: 3px; display: block; }
.tw-opt .ty { font-size: 1.15rem; line-height: 1; display: block; margin-bottom: 3px; }
