/* ==========================================================================
   Alwena Le Coadou — feuille de styles partagée
   Charte : crème #FAF7F0, bleu nuit #0F1F3D, bordeaux #8B2635, gris #666362.
   Polices auto-hébergées (aucun CDN au runtime), font-display: swap.
   ========================================================================== */

/* ---------- Polices locales (variables, poids épinglés par plage) --------- */

/* Playfair Display : titres serif (500/600/700) */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(../fonts/playfair-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(../fonts/playfair-var-latinext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Sans : corps de texte (400/500/600/700) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/dmsans-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/dmsans-var-latinext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* EB Garamond : citations / accroches (400 normal, 400+500 italique) */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(../fonts/ebgaramond-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(../fonts/ebgaramond-var-latinext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(../fonts/ebgaramond-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(../fonts/ebgaramond-italic-latinext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
body { margin: 0; background: #FAF7F0; }
::selection { background: #8B2635; color: #FAF7F0; }

/* ---------- Lien d'évitement (accessibilité) ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: #0F1F3D; color: #FAF7F0; text-decoration: none;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  padding: 12px 18px; border-radius: 2px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Focus visibles (accessibilité) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #8B2635;
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- Révélations au scroll ----------
   Les états cachés initiaux sont limités à .js : sans JavaScript, tout
   le contenu reste visible (robustesse + accessibilité). */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  will-change: opacity, transform;
}
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

[data-sep-line] { transition: transform 0.4s ease-out; }
.js [data-reveal] [data-sep-line] { transform: scaleX(0); }
.js [data-reveal].is-visible [data-sep-line] { transform: scaleX(1); }

/* ---------- Cascade du héros (animation CSS pure, sans JS) ---------- */
[data-hero-item] {
  opacity: 0;
  transform: translateY(14px);
  animation: heroCascade 0.6s ease-out forwards;
}
@keyframes heroCascade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Flèche « Découvrir » ---------- */
[data-discover-link] [data-arrow] { display: inline-block; transition: transform 0.25s ease; }
[data-discover-link]:hover [data-arrow] { transform: translateX(4px); }

/* ---------- Placeholders de formulaire ---------- */
input::placeholder, textarea::placeholder { color: #A6A192; }

/* ---------- Mouvement réduit (accessibilité — conservé des maquettes) ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-hero-item] { animation: none !important; opacity: 1 !important; transform: none !important; }
  [data-sep-line] { transition: none !important; }
  .js [data-reveal] [data-sep-line] { transform: scaleX(1); }
  [data-discover-link] [data-arrow] { transition: none !important; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* ==========================================================================
   En-tête (composant partagé — port de la maquette Header)
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 31, 61, 0.1);
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: padding 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled { padding: 13px 48px; box-shadow: 0 4px 18px rgba(15, 31, 61, 0.08); }

.site-header__logo {
  font-family: 'Playfair Display', serif; font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 600; color: #0F1F3D; letter-spacing: 0.2px;
  white-space: nowrap; flex-shrink: 0; text-decoration: none;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a.nav-link {
  color: #2A2826; text-decoration: none; font-size: 14px; letter-spacing: 0.2px;
  white-space: nowrap; padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.site-nav a.nav-link.is-active { color: #8B2635; border-bottom-color: #8B2635; }

.btn-bilan {
  background: #8B2635; color: #FAF7F0; text-decoration: none;
  font-size: 13.5px; letter-spacing: 0.3px; padding: 11px 22px; border-radius: 2px;
  white-space: nowrap; display: inline-block;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-bilan:hover { background: #7A1F2C; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(139, 38, 53, 0.28); }

.menu-toggle { background: none; border: none; cursor: pointer; display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span {
  width: 24px; height: 2px; background: #0F1F3D; display: block; transform-origin: center;
  transition: transform 0.28s ease, opacity 0.2s ease, width 0.28s ease;
}
.menu-toggle span:last-child { width: 16px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { width: 24px; transform: translateY(-7px) rotate(-45deg); }

.header-spacer { height: 80px; }

.mobile-menu {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--header-h, 64px); z-index: 99;
  background: #FAF7F0; display: flex; flex-direction: column;
  padding: 36px 28px; gap: 26px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.28s ease, transform 0.28s ease, top 0.25s ease, visibility 0s linear 0.28s;
}
.mobile-menu.is-open {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity 0.28s ease, transform 0.28s ease, top 0.25s ease, visibility 0s;
}
.mobile-menu a { color: #0F1F3D; text-decoration: none; font-family: 'Playfair Display', serif; font-size: 22px; }
.mobile-menu a.btn-bilan { color: #FAF7F0; font-family: 'DM Sans', sans-serif; font-size: 15px; padding: 14px 24px; text-align: center; margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .menu-toggle span, .mobile-menu { transition: none; }
}

@media (max-width: 1080px) {
  .site-header { padding: 16px 20px; }
  .site-header.scrolled { padding: 10px 20px; }
  .site-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-spacer { height: 64px; }
}

/* ==========================================================================
   FAQ (accordéon — page À propos)
   ========================================================================== */
.faq-item { border-bottom: 1px solid rgba(15, 31, 61, 0.12); }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 4px; text-align: left;
}
.faq-question span.q { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 17px; color: #0F1F3D; }
.faq-icon { flex-shrink: 0; width: 10px; height: 10px; background: #8B2635; transform: rotate(0deg); transition: transform 0.3s ease; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  font-size: 15px; line-height: 1.75; color: #666362; margin: 0; padding: 0 4px;
  max-width: 640px; overflow: hidden; max-height: 0; opacity: 0; margin-bottom: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
}
.faq-item.is-open .faq-answer { max-height: 260px; opacity: 1; margin-bottom: 24px; }
/* Sans JS : réponses visibles (robustesse) */
html:not(.js) .faq-answer { max-height: none; opacity: 1; margin-bottom: 24px; }

/* ==========================================================================
   Mises en page responsives (remplacent le « isMobile » JS des maquettes)
   Points de rupture identiques aux maquettes : 1080 px (900 px pour contact).
   ========================================================================== */

/* Héros d'accueil : deux colonnes → empilé */
.hero-home { display: flex; align-items: stretch; }
.hero-home__text {
  flex: 1 1 auto; min-width: 0; padding: 52px 24px 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-home__media { flex: 0 0 42%; position: relative; min-height: 340px; }
@media (max-width: 1080px) {
  .hero-home { flex-direction: column; }
  .hero-home__text { padding: 40px 24px 40px; }
  .hero-home__media { flex-basis: auto; }
}

/* Deux colonnes « portrait + texte » (accueil À propos, page À propos) */
.two-col { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
@media (max-width: 1080px) { .two-col { grid-template-columns: 1fr; } }

/* Deux colonnes du contact (bilan + formulaire), rupture à 900 px */
.two-col-contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 40px; align-items: stretch; }
@media (max-width: 900px) { .two-col-contact { grid-template-columns: 1fr; } }

/* Héros centré des pages secondaires */
.page-hero { max-width: 1140px; margin: 0 auto; padding: 72px 24px 48px; text-align: center; }
@media (max-width: 1080px) { .page-hero { padding: 48px 24px 36px; } }

/* ==========================================================================
   Survols (remplacent l'attribut style-hover des maquettes)
   ========================================================================== */
.cta-primary { transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease; }
.cta-primary:hover,
.cta-primary:focus-visible {
  background: #7A1F2C !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 38, 53, 0.28);
}

.lift-card { transition: opacity 0.5s ease-out, transform 0.25s ease, box-shadow 0.25s ease; }
.lift-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 31, 61, 0.12); }

/* Liens sociaux du pied de page */
footer a[aria-label]:hover { color: #B23A4E; }

/* Héros narratif (page À propos) */
.hero-narrative { max-width: 1240px; margin: 0 auto; padding: 72px 24px 60px; }
@media (max-width: 1080px) { .hero-narrative { padding: 48px 24px 40px; } }

/* ==========================================================================
   Formulaire de contact
   ========================================================================== */
/* Sélecteur « Vous êtes » : boutons radio accessibles (fonctionne sans JS) */
.profil-toggle { display: flex; gap: 10px; margin-bottom: 20px; }
.profil-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.profil-toggle label {
  flex: 1; cursor: pointer; padding: 11px; font-size: 13.5px; text-align: center;
  border: 1px solid rgba(15, 31, 61, 0.18); color: #666362; background: transparent;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.profil-toggle input:checked + label { border-color: #8B2635; background: #8B2635; color: #FAF7F0; }
.profil-toggle input:focus-visible + label { outline: 2px solid #8B2635; outline-offset: 2px; }

/* Champ appât anti-spam (masqué aux humains, laissé aux robots) */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

