/* ==========================================================================
   HEDGE : feuille de style commune (behindhedge.com et hedge.dz)
   Polices hébergées localement : aucun service tiers.
   ========================================================================== */

@font-face { font-family: "Quicksand"; src: url("/assets/fonts/quicksand-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Palette HEDGE */
  --corail: #F16664;
  --corail-texte: #C4403E;   /* corail assombri : pour les liens et le texte (contraste 4,9) */
  --turquoise: #6BB7B9;
  --menthe: #C3F7EC;
  --peche: #FFDFC0;
  --rose: #F794A0;
  --fond: #FFFAF5;
  --texte: #696161;          /* contraste 5,8 sur le fond : validé */
  --encre: #2B2626;          /* titres et texte sur corail (contraste 4,9) */
  --filet: #E9DFD5;

  /* Palette INSIDE */
  --indigo: #413FC1;
  --bleu: #009FF5;
  --vert: #75F8C9;
  --gris-inside: #F7F7F7;
  --degrade-inside: linear-gradient(135deg, #413FC1, #009FF5);

  /* Valeurs utilisées par les composants (changées par le thème INSIDE) */
  --accent: var(--corail);
  --accent-texte: var(--corail-texte);
  --sur-accent: var(--encre);
  --police-titres: "Quicksand", "Segoe UI", system-ui, sans-serif;
  --graisse-titres: 700;

  --police-texte: "Satoshi", "Segoe UI", system-ui, sans-serif;
  --police-symbole: "Segoe UI Symbol", "Cambria Math", "STIX Two Math", "DejaVu Sans", serif;

  --largeur: 1120px;
  --gouttiere: 20px;
  --rayon: 14px;
  --espace: clamp(3rem, 7vw, 6rem);
}

/* Thème INSIDE : posé sur le contenu de la page, pas sur l'en-tête ni le pied de page */
.theme-inside {
  --accent: var(--indigo);
  --accent-texte: var(--indigo);
  --sur-accent: #FFFFFF;
  --police-titres: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --graisse-titres: 700;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
[hidden] { display: none !important; }  /* l'attribut "hidden" doit toujours l'emporter */

h1, h2, h3, h4 {
  font-family: var(--police-titres);
  font-weight: var(--graisse-titres);
  color: var(--encre);
  line-height: 1.15;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 6.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.4rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent-texte); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
strong { color: var(--encre); font-weight: 700; }

:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; border-radius: 4px; }

.symbole { font-family: var(--police-symbole), var(--police-texte); }

.lien-evitement {
  position: absolute; left: var(--gouttiere); top: -100px; z-index: 100;
  background: var(--encre); color: #fff; padding: .7rem 1rem; border-radius: 8px;
}
.lien-evitement:focus { top: var(--gouttiere); }

/* Mise en page ------------------------------------------------------------ */
.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.section { padding-block: var(--espace); }
.section--teinte { background: var(--fond); border-block: 2px solid var(--filet); }
.section--menthe { background: var(--menthe); }
.section--peche { background: var(--peche); }
.section--indigo { background: var(--indigo); color: #fff; }
.section--indigo h1, .section--indigo h2, .section--indigo h3, .section--indigo strong { color: #fff; }
.section--indigo a { color: var(--vert); }
.etroit { max-width: 46rem; }  /* à poser dans un .conteneur : limite la largeur du texte, aligné à gauche */
.centre { text-align: center; }
.centre .etroit { margin-inline: auto; }

.surtitre {
  font-family: var(--police-titres); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; font-size: .85rem; color: var(--accent-texte); margin-bottom: .8rem;
}
.petit { font-size: .875rem; line-height: 1.55; }

.grille { display: grid; gap: 1.25rem; }
@media (min-width: 720px) {
  .grille--2 { grid-template-columns: repeat(2, 1fr); }
  .grille--3 { grid-template-columns: repeat(3, 1fr); }
}

.carte {
  background: var(--fond); border: 1px solid var(--filet); border-radius: var(--rayon);
  padding: 1.5rem; box-shadow: 0 1px 3px rgba(43, 38, 38, .07);
}
.carte h3 { margin-bottom: .4em; }
.carte > :last-child { margin-bottom: 0; }

[id] { scroll-margin-top: 90px; }  /* les ancres ne passent pas sous l'en-tête collé */
.section--gris { background: var(--gris-inside); }

/* Pages INSIDE ------------------------------------------------------------ */
.section--indigo .btn--principal { background: var(--vert); color: #14142B; }
.section--indigo .btn--secondaire { color: #fff; border-color: #fff; }
.hero-inside { position: relative; padding-bottom: calc(var(--espace) + 12px); overflow: hidden; }
.hero-inside h1 { font-size: clamp(2.6rem, 9vw, 5rem); margin-bottom: .2em; }
.surtitre--inside { color: var(--vert); }
.par-hedge { text-transform: none; letter-spacing: .02em; opacity: .9; }
.logo-inside-mark { display: block; height: 40px; width: auto; margin-bottom: 1rem; }
.logo-inside-mark--grand { height: 64px; margin-bottom: 1.25rem; }

/* Partenaires en pictogrammes (hedge.dz, accueil) -------------------------- */
/* Tuiles de partenaires : même taille, même rayon, fond clair ou sombre selon que le logo est
   fourni avec ou sans transparence (voir content/partenaires.json > fond). */
.partenaires-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-top: 1rem; }
.partenaire-tuile { aspect-ratio: 1 / 1; border-radius: var(--rayon); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.partenaire-tuile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partenaire-tuile--clair { background: var(--fond); border: 1px solid var(--filet); padding: 1.25rem; }
.partenaire-tuile--sombre { background: var(--encre); padding: 1.25rem; }
.signature-inside { font-family: var(--police-titres); font-weight: 500; font-size: clamp(1.15rem, 3.4vw, 1.6rem); color: var(--vert); margin-bottom: 1.2rem; }
.infos-inside { max-width: 40rem; font-size: 1.1rem; margin-bottom: 0; }
.lien-langue { display: inline-flex; align-items: center; min-height: 48px; padding: 0 .5rem; color: #fff; text-decoration: underline; text-underline-offset: .2em; font-weight: 500; }
.lien-langue:hover { color: var(--vert); }
.bande-degrade { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--degrade-inside); }
.carte--jour { border-top: 4px solid var(--indigo); }
.jour { font-family: var(--police-titres); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--indigo); margin-bottom: .4rem; }
.note-programme { margin-top: 1.25rem; }
.intervenants { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.intervenants li { display: flex; flex-direction: column; gap: .2rem; }
@media (min-width: 720px) { .intervenants { grid-template-columns: repeat(2, 1fr); } }

/* Accueil ------------------------------------------------------------------ */
.section--corail { background: var(--corail); color: var(--encre); }
.section--corail h2 { color: var(--encre); }
.btn--sombre { background: var(--encre); color: #fff; }
.btn--sombre:hover { transform: translateY(-1px); filter: brightness(1.25); }

.hero { padding-block: clamp(3.5rem, 10vw, 7.5rem); }
.hero--hedgedz { min-height: 80vh; min-height: 80svh; display: flex; align-items: center; padding-block: clamp(2.5rem, 8vw, 5rem); }
/* Hero réduit pour une page dont le hero ne contient qu'un titre (ex : Publications) : le grand
   vide avant le contenu qui suit n'a pas lieu d'être (AMELIORATIONS-hedge-dz.md, section 4). */
.hero--compact { padding-bottom: 1rem; }
.hero__grille-hedgedz { display: grid; gap: 2.5rem; align-items: center; width: 100%; }
.hero__accroche {
  order: 2; font-family: var(--police-titres); font-weight: 700; color: var(--encre);
  font-size: clamp(1.6rem, 4.4vw, 2.6rem); line-height: 1.25; margin: 0; text-wrap: balance;
}
.hero__logo-principal { order: 1; width: 100%; max-width: 26rem; height: auto; justify-self: center; }
@media (min-width: 860px) {
  .hero__grille-hedgedz { grid-template-columns: 1.1fr .9fr; }
  .hero__accroche { order: 1; }
  .hero__logo-principal { order: 2; max-width: none; justify-self: end; }
}
.hero__grille { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero__grille--image { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { font-size: clamp(2.4rem, 7.4vw, 4.6rem); max-width: 22ch; margin-bottom: .45em; }
.hero__soustitre { font-size: clamp(1.1rem, 2.6vw, 1.35rem); max-width: 38rem; color: var(--texte); }

.visuel { border-radius: var(--rayon); overflow: hidden; background: var(--menthe); }
.visuel img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
/* Portrait du fondateur mis en valeur dans un cadre circulaire (demande de Hamza) : même forme
   réservée que l'image soit là ou non, pour que la mise en page fonctionne dans les deux cas. */
.visuel--portrait, .visuel--portrait img { aspect-ratio: 1 / 1; }
.visuel--portrait { border-radius: 50%; max-width: 320px; margin-inline: auto; }
.visuel--portrait.emplacement-visuel { display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; }

.confiance { background: var(--fond); border-block: 2px solid var(--filet); padding-block: 1.1rem; }
.confiance ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 0; }
.confiance li { padding: .15rem 1.5rem; font-weight: 500; color: var(--encre); font-size: .97rem; text-align: center; }
.confiance li + li { border-left: 2px solid var(--corail); }
@media (max-width: 759px) {
  .confiance ul { flex-direction: column; gap: .6rem; }
  .confiance li + li { border-left: 0; border-top: 1px solid var(--filet); padding-top: .6rem; }
}

.citation { font-size: clamp(1.4rem, 3.6vw, 2.1rem); line-height: 1.3; font-weight: 700; }

.enjeux { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .enjeux { grid-template-columns: 1fr 1fr; } }
.enjeux__colonne { border-radius: var(--rayon); padding: 1.6rem; }
.enjeux__colonne--moins { background: var(--fond); border: 2px solid var(--encre); }
.enjeux__colonne--plus { background: var(--menthe); border: 2px solid var(--menthe); }
.enjeux__signe { font-family: var(--police-titres); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--encre); margin-bottom: 1rem; }
.enjeux ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.enjeux li { padding-left: 1.4rem; position: relative; color: var(--encre); }
.enjeux li::before { content: ""; position: absolute; left: 0; top: .72em; width: .7rem; height: 2px; background: var(--encre); }
.enjeux__colonne--plus li::before { height: 2px; box-shadow: 0 0 0 0; }
.mention { margin-top: 1.25rem; }

.descripteur { font-size: 1.2rem; margin-bottom: 2rem; max-width: 40rem; }

/* Schéma NAWLA : horizontal sur ordinateur, vertical sur mobile */
.schema { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 2.4rem; }
.schema > li { position: relative; }
.schema__etape, .schema__noeud {
  background: var(--fond); border: 2px solid var(--encre); border-radius: 12px; padding: 1rem 1.1rem; text-align: center;
  font-family: var(--police-titres); font-weight: 700; color: var(--encre); font-size: 1.15rem;
}
.schema__noeud--branche { border-style: dashed; background: var(--fond); }
.schema__fin ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
/* flèches (dessinées en CSS) */
.schema__etape::after, .schema__etape::before { content: ""; position: absolute; left: 50%; }
.schema__etape::after { top: 100%; height: 2.4rem; width: 2px; background: var(--encre); transform: translateX(-50%); }
.schema__etape::before { top: calc(100% + 1.6rem); width: 10px; height: 10px; border-right: 2px solid var(--encre); border-bottom: 2px solid var(--encre); transform: translateX(-50%) rotate(45deg); }
@media (min-width: 900px) {
  .schema { grid-template-columns: repeat(3, 1fr) 1.5fr; gap: 2.6rem; align-items: center; }
  .schema__etape::after { left: 100%; top: 50%; width: 2.6rem; height: 2px; transform: translateY(-50%); }
  .schema__etape::before { left: calc(100% + 1.8rem); top: 50%; transform: translateY(-50%) rotate(-45deg); }
  .schema__fin ul { grid-template-columns: 1fr; }
}

.carte--avantage { background: var(--fond); border-color: transparent; box-shadow: 0 1px 4px rgba(43, 38, 38, .08); }
.carte--avantage p { font-family: var(--police-titres); font-weight: 700; font-size: 1.2rem; color: var(--encre); line-height: 1.3; }

.preuve { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .preuve--image { grid-template-columns: 1.2fr .8fr; } }
.preuve__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.preuve__liste li { padding-left: 1.2rem; border-left: 4px solid var(--corail); }

.fondateur { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .fondateur--portrait { grid-template-columns: .7fr 1.3fr; } }
.fondateur__texte { max-width: 46rem; }
.fondateur__liste { margin: 0 0 1em; padding-left: 1.3rem; }
.fondateur__liste li { margin-bottom: .5rem; }
.fondateur__citation { font-style: italic; font-size: 1.1rem; color: var(--encre); border-left: 3px solid var(--accent); padding-left: 1rem; margin: 1.5rem 0; }
.fondateur__mention { margin-top: 1.25rem; margin-bottom: 0; display: flex; align-items: center; gap: .9rem; }
.fondateur__mention p { margin: 0; }

.faq details { background: var(--fond); border: 1px solid var(--filet); border-radius: 12px; margin-bottom: .7rem; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--encre); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 1.2rem 1.1rem; }

/* Parcours NAWLA (5 étapes numérotées, vertical sur mobile) ---------------- */
.parcours { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: none; }
.parcours__etape { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.parcours__numero {
  font-family: var(--police-titres); font-weight: 700; font-size: 1.1rem; color: var(--sur-accent);
  background: var(--accent); border-radius: 999px; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; margin: 0;
}
.parcours__etape p:last-child { margin: 0; padding-top: .35rem; }
@media (min-width: 720px) { .parcours { max-width: 46rem; } }

/* Éditions INSIDE ----------------------------------------------------------- */
.editions { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.carte--edition h2, .carte--edition h3 { font-size: 1.3rem; margin-bottom: .3em; }
.lien-en-savoir-plus { display: inline-block; margin-top: .6rem; font-weight: 500; text-decoration: underline; text-underline-offset: .2em; }

/* Publications (hedge.dz) -------------------------------------------------- */
.publications { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.25rem; }
.publications h2 { font-size: 1.25rem; }

/* Note d'un point encore à valider par Hamza, affichée telle quelle sur la page (voir CLAUDE.md section 12) */
.note-provisoire { color: var(--corail-texte); font-style: italic; }

.pied__mention { color: #B9AEA6; margin-top: 1rem; margin-bottom: 0; }

/* Valeurs (page HEDGE) : un pictogramme et une couleur par valeur, registre institutionnel ------ */
.carte--valeur__icone {
  display: inline-flex; align-items: center; justify-content: center; width: 3.4rem; height: 3.4rem;
  border-radius: 999px; margin-bottom: 1rem;
}
.carte--valeur__icone--turquoise { background: var(--menthe); color: var(--turquoise); }
.carte--valeur__icone--rose { background: var(--peche); color: var(--rose); }
.carte--valeur__icone--peche { background: var(--peche); color: var(--corail-texte); }

/* Siège (page HEDGE) : carte statique, pas d'iframe --------------------------------------------- */
.siege { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 760px) { .siege { grid-template-columns: 1fr 1fr; align-items: center; } }
.siege__carte { border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--filet); background: var(--fond); }
.siege__carte img { display: block; width: 100%; height: auto; }
.siege__attribution { margin: 0; padding: .5rem .75rem; color: var(--texte); }

/* Éditions INSIDE avec affiche (hedge.dz) --------------------------------- */
.editions-affiches { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .editions-affiches { grid-template-columns: repeat(3, 1fr); } }
.edition-affiche-conteneur { display: flex; flex-direction: column; gap: 1rem; }
.edition-affiche {
  display: flex; flex-direction: column; min-height: 31rem; background: var(--fond); border: 1px solid var(--filet);
  border-radius: var(--rayon); overflow: hidden; box-shadow: 0 1px 3px rgba(43, 38, 38, .07);
}
.edition-affiche__declencheur {
  display: block; width: 100%; padding: 0; border: 0; background: var(--gris-inside); cursor: zoom-in;
  height: 20rem; /* même hauteur pour les trois cartes, quel que soit le format exact de l'affiche */
}
.edition-affiche__declencheur img { width: 100%; height: 100%; object-fit: contain; display: block; }
.edition-affiche__texte { padding: 1.25rem 1.25rem 0; color: var(--texte); }
.edition-affiche__texte h3 { font-size: 1.2rem; color: var(--encre); }
.edition-affiche__texte p:last-child {
  margin-bottom: 0; height: 4.95rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
} /* hauteur fixe (et non min-height) : l'espace réservé est identique que le texte soit court ou long */
.edition-affiche__bas { margin-top: auto; padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.edition-affiche__inscription { align-self: stretch; text-align: center; }

.visionneuse {
  position: fixed; inset: 0; z-index: 200; background: rgba(20, 17, 15, .92);
  display: grid; place-items: center; padding: 2rem;
}
.visionneuse__image { max-width: min(90vw, 600px); max-height: 90vh; border-radius: 8px; display: block; }
.visionneuse__fermer {
  position: absolute; top: 1rem; right: 1rem; width: 3rem; height: 3rem; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #fff; border: 0; font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.visionneuse__fermer:hover { background: rgba(255, 255, 255, .22); }

/* Pictogrammes sociaux (Facebook, LinkedIn) : traits simples, aucune bibliothèque externe -- */
.pictogramme { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 999px; color: inherit; transition: opacity .15s ease, transform .15s ease; }
.pictogramme:hover { opacity: .75; transform: translateY(-1px); }
.pictogrammes { display: flex; gap: .6rem; align-items: center; }
@media (min-width: 860px) { .editions { grid-template-columns: repeat(3, 1fr); } }

.appel-final { text-align: left; }
.appel-final h2 { max-width: 22ch; font-size: clamp(1.8rem, 5vw, 3rem); }

/* Pages de texte (politique de confidentialité, etc.) ---------------------- */
.texte-long h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin: 2rem 0 .5rem; }
.texte-long ol, .texte-long ul { padding-left: 1.4rem; margin: 0 0 1em; }
.texte-long li { margin-bottom: .4rem; }
.bandeau-provisoire {
  background: var(--peche); border-left: 6px solid var(--corail-texte); border-radius: 10px;
  padding: .9rem 1.1rem; color: var(--encre); font-weight: 700; margin: 0 0 1.5rem;
}

/* Formulaires ------------------------------------------------------------- */
.formulaire { display: grid; gap: 1.1rem; }
.champ label:not(.case) { display: block; font-weight: 700; color: var(--encre); margin-bottom: .35rem; }
.microcopy { font-style: italic; color: var(--corail-texte); font-weight: 500; margin-bottom: 2rem; }
.confidentialite-form { background: var(--fond); border: 1px solid var(--filet); border-radius: 10px; padding: .9rem 1.1rem; }
.consigne { color: var(--texte); margin: .35rem 0 0; }
.coordonnees { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--filet); }
.coordonnees p { margin: 0 0 .3rem; }
.champ input:not([type="checkbox"]), .champ select, .champ textarea {
  width: 100%; min-height: 48px; padding: .6rem .85rem; font: inherit; color: var(--encre);
  background: var(--fond); border: 2px solid #B9AEA6; border-radius: 10px;
}
.champ textarea { min-height: 9rem; resize: vertical; font-family: inherit; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--encre); }
.champ [aria-invalid="true"] { border-color: #B3261E; }
.erreur { color: #B3261E; font-size: .9rem; font-weight: 500; margin: .35rem 0 0; }
.erreur--resume { background: #FCE8E6; border-radius: 10px; padding: .8rem 1rem; margin: 0; }
.grille--formulaire { gap: 1.1rem; }
.cases { display: grid; gap: .8rem; }
.case { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; cursor: pointer; }
.case input { width: 22px; height: 22px; margin-top: .15rem; flex: none; accent-color: var(--indigo); }
.formulaire .btn { justify-self: start; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.resultat { padding: 1.4rem 1.5rem; border-radius: var(--rayon); font-size: 1.15rem; font-weight: 500; color: var(--encre); background: var(--menthe); border-left: 6px solid #1B7F63; }
.resultat--attente { background: var(--peche); border-left-color: var(--corail-texte); }

/* Emplacement d'image : la mise en page tient aussi sans image */
.emplacement-visuel {
  display: grid; place-items: center; min-height: 14rem; border-radius: var(--rayon);
  border: 2px dashed var(--filet); color: var(--texte); font-size: .9rem; text-align: center; padding: 1rem;
}

/* Boutons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px;
  font-family: var(--police-texte); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease;
}
.btn--principal { background: var(--accent); color: var(--sur-accent); }
.btn--principal:hover { transform: translateY(-1px); filter: brightness(.96); }
.btn--secondaire { background: transparent; color: var(--encre); border-color: var(--encre); }
.btn--secondaire:hover { background: var(--encre); color: #fff; }
.boutons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* En-tête ---------------------------------------------------------------- */
.entete { background: var(--fond); border-bottom: 1px solid var(--filet); position: sticky; top: 0; z-index: 50; }
.entete__interieur { display: flex; align-items: center; gap: 1rem; min-height: 68px; flex-wrap: wrap; }
.logo {
  font-family: "Quicksand", var(--police-texte); font-weight: 700; font-size: 1.7rem;
  letter-spacing: .04em; color: var(--corail-texte); text-decoration: none; margin-right: auto;
}
.logo img { display: block; height: 32px; width: auto; }

/* En-tête hedge.dz : fond rouge, icône blanche, liens visibles, slogan à droite ---------------- */
.entete--hedgedz { background: var(--corail); border-bottom: 0; }
.entete--hedgedz .logo--icone { margin-right: 0; }
.entete--hedgedz .logo--icone img { height: 34px; }
.entete--hedgedz .menu a { color: #fff; }
.entete--hedgedz .menu a:hover, .entete--hedgedz .menu a[aria-current="page"] { color: var(--encre); }
.entete--hedgedz.entete .js .burger { color: #fff; border-color: #fff; } /* spécificité > .js .burger générique */
.slogan-entete { margin-left: auto; order: 3; color: #fff; font-family: var(--police-titres); font-weight: 500; font-size: .95rem; white-space: nowrap; }
@media (min-width: 860px) {
  /* Largeur intermédiaire : le slogan se masque avant que les liens ne soient touchés */
  .entete--hedgedz .menu { margin-right: 2rem; }
}
@media (max-width: 1099px) {
  .entete--hedgedz .slogan-entete { display: none; }
}
@media (max-width: 859px) {
  .entete--hedgedz .slogan-entete { display: none; }
}

.menu ul, .pied__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.menu a { color: var(--encre); font-weight: 500; text-decoration: none; padding: .5rem 0; display: inline-block; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--corail-texte); text-decoration: underline; text-underline-offset: .3em; }

.burger { display: none; }
.cta-mobile { display: none; }  /* affiché seulement sur mobile, voir plus bas */

/* Mobile : menu burger, et bouton d'appel collé en bas de l'écran */
@media (max-width: 859px) {
  .js .burger {
    display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .9rem;
    background: transparent; border: 2px solid var(--encre); border-radius: 999px;
    color: var(--encre); font: 700 .95rem var(--police-texte); cursor: pointer;
  }
  .burger__barres, .burger__barres::before { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .burger__barres::before { content: ""; position: absolute; top: 6px; }
  .burger__barres { margin-bottom: 6px; }
  .js .menu { display: none; flex-basis: 100%; padding-bottom: 1rem; }
  .js .menu.est-ouvert { display: block; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu a { padding: .8rem 0; font-size: 1.1rem; width: 100%; border-top: 1px solid var(--filet); }

  .cta-entete {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; border-radius: 0; min-height: 56px;
    box-shadow: 0 -6px 20px rgba(43, 38, 38, .15);
  }
  body.a-cta { padding-bottom: 56px; }

  /* Page avec son propre bouton collé en bas (ex : « S'inscrire » sur la landing INSIDE 03) */
  .cta-entete--bureau { display: none; }
  .cta-mobile {
    display: inline-flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; border-radius: 0; min-height: 56px;
    box-shadow: 0 -6px 20px rgba(43, 38, 38, .15); transition: transform .2s ease, opacity .2s ease;
  }
  .cta-mobile--cache { transform: translateY(100%); opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (min-width: 860px) {
  .menu { order: 2; }
  .cta-entete { order: 3; }
  .logo { margin-right: 1rem; }
  .entete__interieur { flex-wrap: nowrap; }
  .menu { margin-right: auto; }
}

/* Pied de page ----------------------------------------------------------- */
.pied { background: var(--encre); color: #E9E2DC; padding-block: 3rem; font-size: .95rem; }
.pied a { color: #fff; }
.pied__interieur { display: grid; gap: 2rem; }
.pied__logo { display: block; height: 28px; width: auto; margin-bottom: .8rem; }
.pied__logo--principal { height: 36px; }
.pied__signatures p { margin: 0 0 .25rem; }
@media (min-width: 720px) { .pied__interieur { grid-template-columns: 1fr auto; align-items: start; } }
