/* =========================================================
   Racines & Élan — feuille de style principale
   Organisation : 1. polices  2. tokens  3. base  4. header
   5. hero  6. sections  7. pied  8. mobile  9. impression
   ========================================================= */

/* ---------- 1. Polices auto-hébergées (variables) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond.woff2') format('woff2-variations');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-italic.woff2') format('woff2-variations');
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('../fonts/karla.woff2') format('woff2-variations');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Tokens ----------
   Contrastes vérifiés sur fond crème :
   brun 11:1 · sauge-texte 6.4:1 · or-texte 4.7:1 (AA)
   L'or clair (--or) reste strictement décoratif.            */
:root {
  --creme:        #F6F1E7;
  --creme-clair:  #FBF8F2;
  --ecru:         #EFE7D7;
  --brun:         #3A2E24;
  --brun-fonce:   #2C231B;
  --sauge-texte:  #55604E;   /* textes secondaires */
  --sauge-fond:   #5E6A57;   /* fond section approche */
  --sauge:        #A9B5A0;   /* décoratif uniquement */
  --or:           #B08D3E;   /* décoratif : filets, symbole */
  --or-texte:     #7A5A1B;   /* surtitres et liens accentués */
  --or-pale:      #D9C393;

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans:  'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --marge-page: 24px;
  --largeur-max: 1080px;
  --rayon: 16px;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--brun);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

/* Focus clavier toujours visible */
:focus-visible {
  outline: 3px solid var(--or-texte);
  outline-offset: 3px;
  border-radius: 4px;
}

.saut-contenu {
  position: absolute; left: -9999px;
  background: var(--brun); color: var(--creme-clair);
  padding: 12px 20px; z-index: 200; border-radius: 0 0 8px 0;
}
.saut-contenu:focus { left: 0; top: 0; }

/* Conteneurs */
.contenu {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 var(--marge-page);
}
.contenu--etroit { max-width: 760px; }

/* Surtitre — petites capitales espacées, couleur accessible */
.surtitre {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--or-texte);
  margin-bottom: .9rem;
}

/* Boutons */
.bouton {
  display: inline-block;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  min-height: 48px;              /* confort tactile */
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.bouton--plein {
  background: var(--brun);
  color: var(--creme-clair);
  border: 1.5px solid var(--brun);
}
.bouton--plein:hover { background: var(--sauge-fond); border-color: var(--sauge-fond); }
.bouton--ligne {
  background: transparent;
  color: var(--brun);
  border: 1.5px solid var(--or-texte);
}
.bouton--ligne:hover { background: var(--or-texte); color: var(--creme-clair); }

.lien-fleche {
  font-weight: 600;
  font-size: .95rem;
  color: var(--or-texte);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  align-self: flex-start;
}
.lien-fleche:hover { color: var(--brun); }

.lien-tel { color: var(--brun); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--or); }

/* ---------- 4. Header ---------- */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 241, 231, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(176, 141, 62, .3);
}
.entete__barre {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 14px var(--marge-page);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marque__nom {
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.marque__et   { color: var(--or-texte); font-style: italic; }
.marque__elan { color: var(--sauge-texte); }

.nav { display: flex; align-items: center; gap: 24px; }
.nav__liste { display: flex; gap: 20px; }
.nav__liste a {
  white-space: nowrap;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--brun);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.nav__liste a:hover { color: var(--or-texte); border-bottom-color: var(--or-texte); }
.nav__cta { white-space: nowrap; padding: 11px 22px; min-height: 0; font-size: .9rem; }

/* Bouton hamburger — masqué sur grand écran */
.burger {
  display: none;
  align-items: center; gap: 9px;
  background: none; border: 1px solid rgba(58, 46, 36, .25);
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 44px;
  font-family: var(--sans); font-size: .9rem; font-weight: 600;
  color: var(--brun); cursor: pointer;
}
.burger__traits { display: grid; gap: 4px; }
.burger__traits span {
  display: block; width: 18px; height: 2px;
  background: var(--brun); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] .burger__traits span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__traits span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__traits span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 620px at 78% 22%, var(--ecru) 0%, transparent 62%),
    var(--creme);
}
.hero__grille {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 var(--marge-page);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero__titre { max-width: 15ch; }
.hero__titre em { font-style: italic; color: var(--sauge-texte); }
.hero__intro { max-width: 54ch; margin-bottom: 1.1rem; }
.hero__devise {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--sauge-texte);
  margin-bottom: 1.8rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.4rem; }
.hero__note { font-size: .95rem; color: var(--sauge-texte); max-width: 46ch; }

.hero__image { display: flex; justify-content: center; }
.arche {
  position: relative; overflow: hidden;
  width: min(380px, 76vw);
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 20px 20px;
  border: 1px solid var(--or-pale);
  background: linear-gradient(165deg, #C3CCBA, var(--sauge) 72%);
}
.arche img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }

/* Ligne de crédibilité */
.credibilite {
  max-width: var(--largeur-max);
  margin: 56px auto 0;
  padding: 20px var(--marge-page) 0;
  border-top: 1px solid rgba(176, 141, 62, .35);
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-size: .85rem;
  color: var(--sauge-texte);
}
.credibilite span { position: relative; }
.credibilite span + span::before {
  content: "·";
  position: absolute; left: -16px;
  color: var(--or);
}

/* ---------- 6. Sections ---------- */
.section { padding: 88px 0; position: relative; }
.section--ecru { background: var(--ecru); }

.section__tete { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.section__tete p { color: var(--sauge-texte); }
.section__chute {
  max-width: 620px; margin: 40px auto 0; text-align: center;
  font-family: var(--serif); font-size: 1.3rem; font-style: italic;
  color: var(--sauge-texte);
}

/* Cartes « signaux » */
.signaux {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.signal {
  background: var(--creme-clair);
  border: 1px solid rgba(176, 141, 62, .3);
  border-radius: var(--rayon);
  padding: 26px 24px;
}
.signal h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.signal p { font-size: .95rem; color: var(--sauge-texte); }

/* Deux accompagnements */
.chemins { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.chemin {
  display: flex; flex-direction: column;
  background: var(--creme-clair);
  border: 1px solid var(--or-pale);
  border-radius: var(--rayon);
  padding: 40px 34px;
}
.chemin h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.chemin p { margin-bottom: 1rem; }
.chemin p:last-of-type { flex: 1; }

/* Approche — fond sauge foncé pour un contraste suffisant */
.approche { background: var(--sauge-fond); color: var(--creme-clair); }
.approche h2 { margin-bottom: 1.2rem; }
.approche p { max-width: 62ch; }
.exergue {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-style: italic;
  color: #F2E6C6;
  border-left: 2px solid var(--or-pale);
  padding-left: 22px;
  margin: 2rem 0;
}

/* Qui je suis */
.portrait { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.portrait__image {
  border-radius: 999px 999px 16px 16px;
  overflow: hidden;
  border: 1px solid var(--or-pale);
}
.portrait__texte h2 { margin-bottom: 1.2rem; }

.gages {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  margin-top: 2.2rem;
  border-top: 1px solid rgba(176, 141, 62, .35);
  padding-top: 1.8rem;
}
.gages h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; margin-bottom: .2rem; }
.gages p { font-size: .92rem; color: var(--sauge-texte); }

/* Déroulement — numérotation légitime : il s'agit d'une séquence */
.etapes { counter-reset: etape; }
.etapes li {
  counter-increment: etape;
  display: grid; grid-template-columns: 52px 1fr; gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(176, 141, 62, .35);
}
.etapes li:last-child { border-bottom: none; }
.etapes li::before {
  content: counter(etape);
  font-family: var(--serif);
  font-size: 2.1rem; font-style: italic;
  color: var(--or-texte);
  line-height: 1;
}
.etapes h3 { margin-bottom: .3rem; }
.etapes p { color: var(--sauge-texte); }

/* Cadre pratique */
.cadre__ligne {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(176, 141, 62, .35);
}
.cadre__ligne:first-child { border-top: 1px solid rgba(176, 141, 62, .35); }
.cadre dt {
  font-family: var(--serif);
  font-size: 1.25rem;
}
.cadre dd { font-size: .97rem; }
.cadre dd a { color: var(--or-texte); }

.cadre-limites {
  margin-top: 40px;
  background: var(--creme-clair);
  border: 1px solid rgba(176, 141, 62, .3);
  border-left: 3px solid var(--or);
  border-radius: 12px;
  padding: 28px 30px;
}
.cadre-limites h3 { margin-bottom: .6rem; }
.cadre-limites p { font-size: .95rem; color: var(--sauge-texte); }

/* Contact */
.contact { text-align: center; }
.contact p { max-width: 54ch; margin-left: auto; margin-right: auto; }
.contact__actions {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 14px; margin: 2rem 0 1.4rem;
}
.contact__coordonnees {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px;
  font-size: .95rem;
}
.contact__coordonnees a { color: var(--sauge-texte); }

/* ---------- 7. Pied de page ---------- */
.pied {
  background: var(--brun-fonce);
  color: var(--ecru);
  padding: 52px var(--marge-page) 28px;
}
.pied__grille {
  max-width: var(--largeur-max); margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 28px;
}
.pied__marque {
  font-family: var(--serif); font-size: 1.3rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .1rem;
}
.pied__marque span { color: var(--or-pale); font-style: italic; }
.pied__nom { font-size: .95rem; margin-bottom: .5rem; }
.pied__devise { font-family: var(--serif); font-style: italic; color: var(--or-pale); font-size: 1.05rem; }
.pied__liens ul { display: grid; gap: 10px; }
.pied__liens a { font-size: .93rem; color: var(--ecru); text-decoration: none; border-bottom: 1px solid rgba(217, 195, 147, .5); }
.pied__liens a:hover { color: var(--or-pale); }
.pied__bas {
  max-width: var(--largeur-max); margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(239, 231, 215, .2);
  font-size: .82rem; color: rgba(239, 231, 215, .7);
}

/* ---------- 8. Adaptations écran ---------- */
@media (max-width: 980px) {
  .signaux { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1040px) {
  /* Navigation repliée dans un vrai menu */
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--creme);
    border-bottom: 1px solid rgba(176, 141, 62, .35);
    padding: 12px var(--marge-page) 24px;
    box-shadow: 0 20px 40px -28px rgba(58, 46, 36, .5);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav.est-ouvert { display: flex; }
  .nav__liste { flex-direction: column; gap: 0; }
  .nav__liste a {
    display: block; padding: 15px 4px; font-size: 1.02rem;
    border-bottom: 1px solid rgba(176, 141, 62, .22);
  }
  .nav__liste a:hover { border-bottom-color: rgba(176, 141, 62, .22); }
  .nav__cta { margin-top: 18px; text-align: center; padding: 15px 22px; min-height: 48px; }

  .hero { padding: 48px 0 44px; }
  .hero__grille { grid-template-columns: 1fr; gap: 34px; }
  .hero__image { order: -1; }
  .arche { width: min(260px, 62vw); }
}

@media (max-width: 780px) {
  .chemins { grid-template-columns: 1fr; }
  .chemin { padding: 32px 26px; }
  .portrait { grid-template-columns: 1fr; gap: 32px; }
  .portrait__image { max-width: 320px; }
  .gages { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 620px) {
  :root { --marge-page: 20px; }
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .section__tete { text-align: left; margin-bottom: 32px; }
  .section__chute { text-align: left; }
  .signaux { grid-template-columns: 1fr; }
  .cadre__ligne { grid-template-columns: 1fr; gap: 8px; }
  .contact { text-align: left; }
  .contact p { margin-left: 0; }
  .contact__actions, .contact__coordonnees { justify-content: flex-start; }
  .bouton { width: 100%; text-align: center; }
  .credibilite { flex-direction: column; gap: 6px; }
  .credibilite span + span::before { display: none; }
}

/* ---------- 9. Préférences et impression ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .entete, .burger, .hero__actions, .contact__actions { display: none; }
  body { background: #fff; color: #000; }
}
