/* =====================================================================
   Essossima (Chimène Tcheou) : charte du thème.
   Signature : deux « portes » en arche, indigo pour le numérique, prune pour le projet AGAPE,
   avec un seuil mangue. Le reste reste sobre.
   Les containers Elementor sont stylés par id (_element_id) préfixé de body.ess : main.css est
   chargée avant les feuilles d'Elementor, à spécificité égale elle perd.
   ===================================================================== */

@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/young-serif-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: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/young-serif-latin-ext.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: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/figtree-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: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/figtree-latin-ext.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: "Figtree"; font-style: italic; font-weight: 400 800; font-display: swap;
  src: url("../fonts/figtree-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: "Figtree"; font-style: italic; font-weight: 400 800; font-display: swap;
  src: url("../fonts/figtree-italic-latin-ext.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; }

:root {
  --encre:        #191C33;  /* titres, texte fort */
  --texte:        #3D4058;  /* corps (9,5:1 sur --fond) */
  --indigo:       #2B3A8C;  /* le numérique */
  --indigo-pale:  #E8EAF6;
  --prune:        #6A2C5A;  /* le projet AGAPE */
  --prune-pale:   #F5EAF1;
  --mangue:       #F0A23B;  /* seuil, boutons d'action (texte --encre : 7,9:1) */
  --mangue-texte: #8A5205;  /* mangue lisible sur fond clair (6:1) */
  --fond:         #F7F7FB;
  --blanc:        #FFFFFF;
  --trait:        rgba(25, 28, 51, .12);

  --f-titre: "Young Serif", Georgia, "Times New Roman", serif;
  --f-corps: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --largeur:   1180px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --section:   clamp(64px, 9vw, 120px);
  --rayon:     18px;
  --arche:     clamp(150px, 20vw, 260px);   /* rayon du haut des portes */
  --ombre:     0 18px 40px -24px rgba(25, 28, 51, .45);
}

/* ---------- Base (en :where(), spécificité nulle, pour ne jamais écraser une classe) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body.ess { margin: 0; background: var(--fond); color: var(--texte); font-family: var(--f-corps); font-size: 1.0625rem; line-height: 1.65; }
:where(body.ess) a { color: inherit; }
:where(body.ess) img { max-width: 100%; height: auto; }
:where(body.ess) svg { width: 1em; height: 1em; vertical-align: -.15em; flex-shrink: 0; }
:where(body.ess) h1, :where(body.ess) h2, :where(body.ess) h3 { font-family: var(--f-titre); font-weight: 400; color: var(--encre); line-height: 1.15; }
:where(body.ess) :focus-visible { outline: 3px solid var(--mangue); outline-offset: 3px; border-radius: 4px; }
.ess-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ess-evitement { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--encre); color: var(--blanc); border-radius: 8px; }
.ess-evitement:focus { top: 12px; }

/* ---------- Verrous anti-kit Elementor (le kit génère des règles (0,2,0) après main.css) ---------- */
body.ess .elementor-widget-heading .elementor-heading-title { font-family: var(--f-titre); font-weight: 400; color: var(--encre); line-height: 1.15; letter-spacing: -.01em; }
body.ess .elementor-widget-heading h1.elementor-heading-title { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem); line-height: 1.05; }
body.ess .elementor-widget-heading h2.elementor-heading-title { font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.6rem); }
body.ess .elementor-widget-heading h3.elementor-heading-title { font-family: var(--f-corps); font-weight: 700; font-size: 1.15rem; line-height: 1.3; letter-spacing: 0; }
body.ess .elementor-widget-text-editor { font-family: var(--f-corps); color: var(--texte); font-size: 1.0625rem; line-height: 1.65; }
body.ess .elementor-widget-text-editor p { margin: 0 0 .9em; }
body.ess .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
body.ess .elementor-widget-text-editor ul { margin: 0; padding-left: 1.2em; }
body.ess .elementor-widget-text-editor a { color: var(--indigo); font-family: inherit; font-weight: 600; }
body.ess .elementor-widget:not(:last-child) { margin-block-end: 0; }

/* ---------- Boutons ---------- */
body.ess .ess-btn .elementor-button,
.ess-bouton, .ess-entete__rdv {
  display: inline-flex; align-items: center; gap: .55em; padding: .95em 1.6em; border-radius: 999px;
  background-color: var(--indigo); color: var(--blanc); font-family: var(--f-corps); font-weight: 700; font-size: 1rem;
  line-height: 1.2; text-decoration: none; border: 2px solid transparent; transition: transform .2s ease, background-color .2s ease;
}
body.ess .ess-btn .elementor-button:hover, .ess-bouton:hover, .ess-entete__rdv:hover { transform: translateY(-2px); background-color: var(--encre); color: var(--blanc); }
body.ess .ess-btn.ess-btn--mangue .elementor-button, .ess-entete__rdv { background-color: var(--mangue); color: var(--encre); }
body.ess .ess-btn.ess-btn--mangue .elementor-button:hover, .ess-entete__rdv:hover { background-color: var(--encre); color: var(--mangue); }
body.ess .ess-btn.ess-btn--clair .elementor-button { background-color: var(--blanc); color: var(--encre); }
body.ess .ess-btn.ess-btn--clair .elementor-button:hover { background-color: var(--mangue); color: var(--encre); }
body.ess .ess-btn.ess-btn--lien .elementor-button { background-color: transparent; color: var(--prune); padding-inline: 0; border-radius: 0; border-bottom: 2px solid var(--mangue); }
body.ess .ess-btn.ess-btn--lien .elementor-button:hover { transform: none; background-color: transparent; color: var(--encre); }

/* ---------- Surtitres ---------- */
body.ess .ess-sur p { margin: 0 0 14px; font-family: var(--f-corps); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mangue-texte); }
body.ess .ess-sur.ess-sur--clair p { color: var(--mangue); }
body.ess .ess-chapo p { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--texte); }

/* ---------- En-tête (sticky, hauteur fixe : jamais de rétrécissement au défilement) ---------- */
.ess-entete { position: sticky; top: 0; z-index: 50; background: rgba(247, 247, 251, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait); }
.ess-entete__in { max-width: var(--largeur); margin: 0 auto; padding: 14px var(--gouttiere); display: flex; align-items: center; gap: 24px; }
.ess-marque { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; }
.ess-marque__nom { font-family: var(--f-titre); font-size: 1.6rem; line-height: 1; color: var(--encre); }
.ess-marque__nom::after { content: ""; display: inline-block; width: .32em; height: .32em; margin-left: .08em; border-radius: 50%; background: var(--mangue); }
.ess-marque__sous { margin-top: 4px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texte); }
.ess-nav__liste { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.ess-nav__liste a { text-decoration: none; font-weight: 600; color: var(--encre); padding: 6px 0; border-bottom: 2px solid transparent; }
.ess-nav__liste a:hover, .ess-nav__liste .current-menu-item > a, .ess-nav__liste a[aria-current="page"] { border-bottom-color: var(--mangue); }
.ess-entete__rdv { padding: .7em 1.2em; font-size: .95rem; }
.ess-entete__rdv svg { width: 18px; height: 18px; }
.ess-burger { display: none; background: none; border: 0; padding: 8px; color: var(--encre); cursor: pointer; }
.ess-burger svg { width: 28px; height: 28px; }
.ess-burger__fermer { display: none; }

/* ---------- Sections : rythme et largeur ---------- */
body.ess .e-con.e-parent { --padding-top: var(--section); --padding-bottom: var(--section); --padding-left: var(--gouttiere); --padding-right: var(--gouttiere); }
body.ess .e-con.e-parent > .e-con,
body.ess .e-con.e-parent > .elementor-widget { width: 100%; max-width: var(--largeur); --margin-left: auto; --margin-right: auto; margin-inline: auto; }
body.ess [id$="-tete"] { gap: 0px; margin-bottom: clamp(32px, 4vw, 52px); }
body.ess [id$="-tete"] > .elementor-widget { max-width: 760px; }
/* Espacement titre -> texte (les widgets Elementor n'ont aucune marge : space_between_widgets = 0 dans le kit). */
body.ess .elementor-widget-heading + .elementor-widget-text-editor { margin-top: 16px; }
/* Sections en grille : la grille occupe la largeur du contenu, pas toute la fenêtre. */
#portes, #rendez-vous, body.ess--plateformes #hero, body.ess--agape #hero { --padding-left: max(var(--gouttiere), calc((100vw - var(--largeur)) / 2)); --padding-right: max(var(--gouttiere), calc((100vw - var(--largeur)) / 2)); }
body.ess [id$="-grille"] { --display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* Icônes de cartes */
body.ess .ess-icone { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; margin-bottom: 18px; border-radius: 50%; background: var(--indigo-pale); color: var(--indigo); }
body.ess .ess-icone svg { width: 26px; height: 26px; }

/* Cartes (usage-, outil-, service-, aide-) */
body.ess [id^="usage-"], body.ess [id^="outil-"], body.ess [id^="service-"], body.ess [id^="aide-"] {
  --display: flex !important; flex-direction: column; gap: 8px; padding: 28px; background: var(--blanc); border-radius: var(--rayon); border: 1px solid var(--trait);
}
body.ess [id^="usage-"] .elementor-widget-text-editor p,
body.ess [id^="outil-"] .elementor-widget-text-editor p,
body.ess [id^="service-"] .elementor-widget-text-editor p,
body.ess [id^="aide-"] .elementor-widget-text-editor p { font-size: 1rem; }

/* ---------- ACCUEIL ---------- */
body.ess--accueil #hero { --padding-bottom: 40px; text-align: center; }
body.ess--accueil #hero > .elementor-widget { max-width: 860px; }
body.ess--accueil #hero .ess-chapo p { max-width: 640px; margin-inline: auto; }

/* Signature : les deux portes en arche, posées sur un seuil mangue */
#portes { --display: grid !important; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 32px); --padding-top: 0px; position: relative; }
#portes::after { content: ""; position: absolute; left: var(--gouttiere); right: var(--gouttiere); bottom: calc(var(--section) - 10px); height: 10px; max-width: calc(var(--largeur) + 40px); margin-inline: auto; border-radius: 999px; background: var(--mangue); }
#porte-1, #porte-2 {
  --display: flex !important; flex-direction: column; justify-content: flex-end; gap: 0px;
  min-height: clamp(440px, 52vw, 600px); padding: calc(var(--arche) * .55) clamp(28px, 4vw, 52px) clamp(40px, 5vw, 60px);
  border-radius: var(--arche) var(--arche) 10px 10px; color: var(--blanc);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease;
}
#porte-1 { background: var(--indigo); background-image: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .10), transparent 55%); }
#porte-2 { background: var(--prune);  background-image: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .10), transparent 55%); }
#porte-1:hover, #porte-2:hover { transform: translateY(-8px); box-shadow: var(--ombre); }
#porte-1 .elementor-heading-title, #porte-2 .elementor-heading-title { color: var(--blanc); font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.3rem); }
#porte-1 .elementor-widget-text-editor, #porte-2 .elementor-widget-text-editor { color: rgba(255, 255, 255, .88); margin: 14px 0 26px; }
#porte-1 .ess-sur p, #porte-2 .ess-sur p { color: var(--mangue); }

#presentation { background: var(--blanc); }
#presentation > .elementor-widget { max-width: 760px; }
#presentation .elementor-widget-text-editor p:nth-of-type(2) { font-family: var(--f-titre); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); line-height: 1.4; color: var(--prune); }
#usages .elementor-widget-button { margin-top: 36px; }

#agape { background: var(--prune); text-align: center; }
#agape > .elementor-widget { max-width: 780px; }
#agape .elementor-heading-title { color: var(--blanc); }
#agape .elementor-widget-text-editor { color: rgba(255, 255, 255, .9); margin: 18px 0 30px; }

/* ---------- Pages intérieures : hero en deux colonnes, encart en arche ---------- */
body.ess--plateformes #hero, body.ess--agape #hero { --display: grid !important; grid-template-columns: 1.25fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: end; --padding-top: clamp(48px, 7vw, 96px); }
body.ess--agape #hero { background: var(--prune); }
body.ess--agape #hero .elementor-heading-title { color: var(--blanc); }
body.ess--agape #hero .ess-chapo p { color: rgba(255, 255, 255, .9); }
#hero-texte { gap: 0px; }
#hero-texte .ess-chapo { margin-top: 18px; }
#hero-actions { margin-top: 30px; }
#hero-encart { gap: 0px; padding: calc(var(--arche) * .5) 36px 40px; border-radius: var(--arche) var(--arche) 10px 10px; min-height: 360px; justify-content: flex-end; border-bottom: 10px solid var(--mangue); }
body.ess--plateformes #hero-encart { background: var(--indigo); color: var(--blanc); }
body.ess--plateformes #hero-encart .elementor-heading-title { color: var(--blanc); font-size: 1.6rem; margin-bottom: 14px; }
body.ess--plateformes #hero-encart .elementor-widget-text-editor { color: var(--blanc); }
body.ess--plateformes #hero-encart ul { list-style: none; padding: 0; }
body.ess--plateformes #hero-encart li { padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
body.ess--agape #hero-encart { background: var(--prune-pale); }
body.ess--agape #hero-encart .ess-citation p { font-family: var(--f-titre); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 1.3; color: var(--prune); }
body.ess--agape #hero-encart .ess-citation-auteur p { margin-top: 16px; font-size: .9rem; font-weight: 700; color: var(--texte); }

#outils { background: var(--blanc); }
#services { background: var(--blanc); }
body.ess .ess-encadre { max-width: var(--largeur); margin-top: 28px !important; }
body.ess .ess-encadre p { padding: 20px 24px; border-left: 4px solid var(--mangue); background: var(--fond); border-radius: 0 12px 12px 0; }
#services .ess-encadre p { background: var(--indigo-pale); }

/* Étapes : la numérotation est un vrai ordre */
body.ess [id^="etape-"] { --display: flex !important; flex-direction: column; gap: 8px; padding: 28px 28px 30px; background: var(--blanc); border-radius: var(--rayon); border-top: 6px solid var(--indigo); }
body.ess--agape [id^="etape-"] { border-top-color: var(--prune); }
body.ess .ess-quand p { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mangue-texte); }
body.ess--agape #etapes-grille { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

body.ess--agape #aider .ess-icone { background: var(--prune-pale); color: var(--prune); }
body.ess--agape #aider .ess-encadre p { background: var(--prune-pale); }
#porteuse { background: var(--blanc); }
#porteuse > .elementor-widget { max-width: 760px; }
#porteuse .elementor-widget-button { margin-top: 18px; }

/* ---------- Rendez-vous et formulaire ---------- */
#rendez-vous { --display: grid !important; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; background: var(--indigo-pale); }
body.ess--agape #rendez-vous { background: var(--prune-pale); }
#rendez-vous-texte { gap: 0px; }
#rendez-vous-texte .elementor-widget-text-editor { margin-top: 14px; }
body.ess .ess-creneaux { margin-top: 24px !important; }
body.ess .ess-creneaux ul { list-style: none; padding: 0; margin: 8px 0 12px; }
body.ess .ess-creneaux li { padding: 6px 0 6px 18px; position: relative; }
body.ess .ess-creneaux li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--mangue); }
#rendez-vous-formulaire { gap: 12px; padding: clamp(24px, 3.5vw, 40px); background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); }
body.ess .ess-note p { font-size: .88rem; color: var(--texte); }

/* WPForms (réglage « styles de base seulement ») : préfixe (0,4,2) pour passer devant ses règles de base. */
body.ess div.ess-wpf.wpforms-container { margin: 0; }
body.ess div.ess-wpf.wpforms-container .wpforms-form .wpforms-field { padding: 0 0 16px; }
body.ess div.ess-wpf.wpforms-container .wpforms-form .wpforms-field-label { font-family: var(--f-corps); font-weight: 700; font-size: .95rem; color: var(--encre); margin-bottom: 6px; }
body.ess div.ess-wpf.wpforms-container .wpforms-form .wpforms-field-label-inline { font-weight: 500; color: var(--texte); }
body.ess div.ess-wpf.wpforms-container .wpforms-form input[type="text"],
body.ess div.ess-wpf.wpforms-container .wpforms-form input[type="email"],
body.ess div.ess-wpf.wpforms-container .wpforms-form input[type="tel"],
body.ess div.ess-wpf.wpforms-container .wpforms-form select,
body.ess div.ess-wpf.wpforms-container .wpforms-form textarea {
  width: 100%; max-width: 100%; padding: 12px 14px; border: 1.5px solid rgba(25, 28, 51, .25); border-radius: 10px;
  background-color: var(--blanc); color: var(--encre); font-family: var(--f-corps); font-size: 1rem;
}
body.ess div.ess-wpf.wpforms-container .wpforms-form textarea { min-height: 120px; }
body.ess div.ess-wpf.wpforms-container .wpforms-form input:focus,
body.ess div.ess-wpf.wpforms-container .wpforms-form select:focus,
body.ess div.ess-wpf.wpforms-container .wpforms-form textarea:focus { border-color: var(--indigo); outline: 3px solid rgba(43, 58, 140, .2); outline-offset: 0; }
body.ess div.ess-wpf.wpforms-container .wpforms-form select option { color: var(--encre); background-color: var(--blanc); }
body.ess div.ess-wpf.wpforms-container .wpforms-form .wpforms-submit-container { padding-top: 8px; }
body.ess div.ess-wpf.wpforms-container .wpforms-form button[type="submit"] {
  padding: .95em 1.8em; border: 0; border-radius: 999px; background-color: var(--mangue); color: var(--encre);
  font-family: var(--f-corps); font-weight: 700; font-size: 1rem; cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
body.ess div.ess-wpf.wpforms-container .wpforms-form button[type="submit"]:hover { background-color: var(--encre); color: var(--mangue); }
body.ess div.ess-wpf.wpforms-container .wpforms-form label.wpforms-error { color: #A12C2C; font-size: .88rem; }
body.ess .wpforms-confirmation-container-full { background: var(--indigo-pale); border: 0; border-left: 4px solid var(--mangue); color: var(--encre); border-radius: 0 12px 12px 0; }

/* ---------- FAQ ---------- */
#faq { background: var(--fond); }
#faq-liste { gap: 0px; max-width: 860px !important; }
body.ess [id^="question-"] { gap: 6px; padding: 22px 0; border-top: 1px solid var(--trait); }
body.ess [id^="question-"]:last-child { border-bottom: 1px solid var(--trait); }
body.ess [id^="question-"] .elementor-heading-title { font-size: 1.12rem; }

/* ---------- Pages de texte (mentions légales, 404) ---------- */
.ess-page-texte { max-width: 820px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gouttiere) var(--section); }
.ess-page-texte h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin: 0 0 24px; }
.ess-page-texte h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.ess-page-texte h3 { font-family: var(--f-corps); font-weight: 700; font-size: 1.1rem; margin: 24px 0 8px; }
.ess-page-texte a { color: var(--indigo); font-weight: 600; }
.ess-page-texte ul { padding-left: 1.2em; }
.ess-legal__retour { margin: 0 0 18px; }
.ess-page-texte table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ess-page-texte th, .ess-page-texte td { padding: 8px 10px; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.ess-404 .ess-bouton { margin-top: 12px; }

/* ---------- Pied de page ---------- */
.ess-pied { background: var(--encre); color: rgba(255, 255, 255, .82); font-size: .98rem; }
.ess-pied__in { max-width: var(--largeur); margin: 0 auto; padding: 64px var(--gouttiere) 40px; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.ess-pied__nom { font-family: var(--f-titre); font-size: 1.8rem; color: var(--blanc); margin: 0 0 12px; }
.ess-pied__nom::after { content: ""; display: inline-block; width: .3em; height: .3em; margin-left: .08em; border-radius: 50%; background: var(--mangue); }
.ess-pied__titre { margin: 0 0 14px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mangue); }
.ess-pied ul { list-style: none; margin: 0; padding: 0; }
.ess-pied li { margin-bottom: 8px; }
.ess-pied a { color: var(--blanc); text-decoration: none; }
.ess-pied a:hover { text-decoration: underline; text-decoration-color: var(--mangue); }
.ess-pied p { margin: 0 0 10px; }
.ess-pied .ess-ico { width: 18px; height: 18px; margin-right: 6px; color: var(--mangue); }
.ess-pied__bas { max-width: var(--largeur); margin: 0 auto; padding: 20px var(--gouttiere) 28px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .88rem; }
.ess-pied__bas p { margin: 0; }
.ess-signature a { text-decoration: underline; }

/* Barre de rendez-vous mobile */
.ess-barre-rdv { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ess-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--fond); border-bottom: 1px solid var(--trait); padding: 8px var(--gouttiere) 20px; display: none; }
  .ess-entete.is-open .ess-nav { display: block; }
  .ess-nav__liste { flex-direction: column; gap: 0; }
  .ess-nav__liste a { display: block; padding: 14px 0; border-bottom: 1px solid var(--trait); }
  .ess-burger { display: inline-flex; }
  .ess-entete.is-open .ess-burger__ouvrir { display: none; }
  .ess-entete.is-open .ess-burger__fermer { display: block; }
  .ess-entete__rdv { display: none; }
  body.ess--plateformes #hero, body.ess--agape #hero, #rendez-vous { grid-template-columns: 1fr; }
  #hero-encart { min-height: 0; }
  .ess-pied__in { grid-template-columns: 1fr; gap: 28px; }
  .ess-barre-rdv { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--encre); transform: translateY(110%); transition: transform .3s ease; }
  .ess-barre-rdv.is-visible { transform: none; }
  .ess-barre-rdv a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 999px; background: var(--mangue); color: var(--encre); font-weight: 700; text-decoration: none; }
  .ess-barre-rdv svg { width: 20px; height: 20px; }
  .ess-pied { padding-bottom: 76px; }
}
@media (max-width: 720px) {
  #portes { grid-template-columns: 1fr; }
  #porte-1, #porte-2 { min-height: 400px; }
  #portes::after { display: none; }
  #porte-1, #porte-2 { border-bottom: 8px solid var(--mangue); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  #porte-1:hover, #porte-2:hover { transform: none; }
}
