/* =====================================================================
   Template multi-domaines — feuille de style partagée
   Aucune dépendance externe. Police système. Couleurs en variables.
   ===================================================================== */

:root {
  /* Couleurs de marque — surchargeables par domaine */
  --brand:        #076e6d;   /* teal principal (bandeau, liens, boutons) */
  --brand-dark:   #063f3d;   /* bord de bouton / hover */
  --accent:       #e0740f;   /* orange (icônes de titre) */
  --legal-link:   #b0402a;   /* liens dans les textes légaux */

  /* Neutres */
  --bg:           #ffffff;
  --bg-muted:     #e7e7e7;   /* fond gris des blocs de contenu */
  --text:         #3a3a3a;
  --text-strong:  #232323;
  --text-nav:     #111111;
  --line:         #b9b9b9;

  /* Alertes formulaire */
  --ok-bg:        #e7f5ee;  --ok-bd:  #1f8a5b;  --ok-tx: #12603f;
  --err-bg:       #fdecec;  --err-bd: #cc3b3b;  --err-tx: #8f2020;

  /* Mesures */
  --maxw: 1180px;
  --pad:  24px;

  /* Police système (aucun chargement réseau) */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Liberation Sans", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--bg); }
body { font-family: var(--font); color: var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.site-header { background: var(--bg); padding: 18px 0; }
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
}
.site-logo { display: inline-flex; align-items: center; gap: 11px; }
/* Slot logo : remplacer le contenu par <img src="assets/img/logo.png"> */
.site-logo__slot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; height: 46px; padding: 0 12px;
  border: 1px dashed var(--line); border-radius: 6px;
  font-size: 11px; letter-spacing: 1px; color: #9a9a9a; text-transform: uppercase;
}
.site-logo__name { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; color: var(--brand); }

.main-nav { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: 0.3px; color: var(--text-nav); }
.main-nav a:hover { color: var(--brand); }
.main-nav .sep { color: var(--text-nav); }

/* ------------------------------------------------------------------ */
/* Zone de contenu (fond gris)                                         */
/* ------------------------------------------------------------------ */
.content { background: var(--bg-muted); padding: 34px 0 50px; }
.content__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* Titre de page + icône */
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.page-head svg { flex: none; }
.page-head__icon { fill: var(--accent); }
.page-head h1 { font-size: 30px; font-weight: 400; color: var(--text-strong); letter-spacing: 0.3px; line-height: 1.2; }

/* Corps de document légal */
.doc h2 { font-size: 15px; font-weight: 700; color: var(--text-strong); margin: 26px 0 10px; }
.doc h3 { font-size: 13px; font-weight: 700; color: var(--text-strong); margin: 18px 0 6px; }
.doc p  { font-size: 13px; line-height: 1.65; text-align: justify; margin-bottom: 14px; }
.doc ul { margin: 0 0 14px 20px; }
.doc li { font-size: 13px; line-height: 1.65; margin-bottom: 6px; }
.doc a  { color: var(--legal-link); text-decoration: underline; }
/* Les textes legaux affichent des URLs completes (jusqu'a 102 caracteres dans
   la page Cookies). Sans coupure, une chaine insecable deborde la zone de
   contenu et fait defiler la page entiere horizontalement sur mobile. */
.doc { overflow-wrap: break-word; }
.doc a { overflow-wrap: anywhere; }
.doc .addr { font-size: 13px; line-height: 1.7; margin: 4px 0 14px; }
.doc table { border-collapse: collapse; width: 100%; margin: 8px 0 18px; }
.doc td, .doc th { border: 1px solid #b3b3b3; padding: 8px 10px; font-size: 12px; line-height: 1.5; vertical-align: top; text-align: left; }
.doc th { background: #d8d8d8; font-weight: 700; }

/* ------------------------------------------------------------------ */
/* Accueil : collage + accroche                                        */
/* ------------------------------------------------------------------ */
.home-hero { background: var(--bg-muted); padding: 26px 0; }
.home-hero__inner { max-width: 940px; margin: 0 auto; padding: 0 var(--pad); }
/* Slot image d'accueil : remplacer par <img src="assets/img/hero.jpg"> */
.home-hero__slot {
  width: 100%; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, #dddddd, #dddddd 13px, #d3d3d3 13px, #d3d3d3 26px);
  color: #7a7a7a; font-size: 13px; text-align: center;
}
.home-hero__slot span { background: rgba(255,255,255,.9); padding: 9px 15px; border-radius: 4px; }

/* ------------------------------------------------------------------ */
/* Bandeau arguments (3 pictos)                                        */
/* ------------------------------------------------------------------ */
.band { background: var(--brand); color: #fff; }
.band__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 44px var(--pad);
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center;
}
.band__claim { align-self: center; padding: 0 40px; max-width: 250px; text-align: center; font-size: 20px; font-weight: 700; line-height: 1.35; }
.band__items { display: flex; align-items: stretch; justify-content: center; }
.band__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 0 34px; width: 210px;
  border-left: 1px solid rgba(255,255,255,.42);
}
.band__item:first-child { border-left: none; }
.band__item .lbl { font-size: 15px; font-weight: 600; line-height: 1.3; }
/* Picto en forme de goutte (aucune image externe) */
.drop {
  width: 64px; height: 64px; flex: none;
  background: #fff; border-radius: 50% 50% 0 50%; transform: rotate(45deg);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
}
.drop svg { width: 30px; height: 30px; transform: rotate(-45deg); fill: currentColor; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.site-footer { background: var(--bg); padding: 34px var(--pad) 44px; margin-top: auto; }
.footer-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 16px; color: var(--brand); }
.footer-nav a:hover { text-decoration: underline; }
.footer-nav .sep { color: var(--brand); }
.footer-legal { max-width: var(--maxw); margin: 18px auto 0; text-align: center; font-size: 11px; line-height: 1.6; color: var(--brand); }
.footer-copy { text-align: center; font-size: 12px; color: var(--brand); margin-top: 12px; }

/* Layout colonne pleine hauteur */
.page { min-height: 100vh; display: flex; flex-direction: column; }

/* ------------------------------------------------------------------ */
/* Formulaires                                                         */
/* ------------------------------------------------------------------ */
.form { max-width: 770px; margin-top: 26px; }
.form__row { display: grid; grid-template-columns: 165px 1fr; align-items: center; margin-bottom: 16px; }
.form__row.is-top { align-items: start; }
.form__label { font-size: 13px; font-weight: 700; color: #333; }
.form__label .opt { font-weight: 400; color: #777; }
.form__label.is-top { padding-top: 6px; }
.field { width: 100%; border: 1px solid var(--line); background: #fff; padding: 7px 9px; font-size: 14px; color: #222; font-family: inherit; }
.field:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
select.field { height: 34px; }
textarea.field { resize: vertical; min-height: 120px; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 4px; }
.consent input { margin-top: 3px; accent-color: var(--brand); flex: none; }
.consent label { font-size: 12px; line-height: 1.6; color: #444; }

.form__legal { margin-top: 18px; font-size: 12px; line-height: 1.7; }
.form__legal a { color: var(--legal-link); text-decoration: underline; }

.btn {
  display: inline-block; margin-top: 20px;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.4px;
  border: 2px solid var(--brand-dark); padding: 11px 24px; cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--brand-dark); }

/* Honeypot anti-spam : NE PAS retirer — masqué aux humains, visible aux bots */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Messages de retour serveur */
.form-alert { border: 1px solid; border-radius: 4px; padding: 12px 16px; font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.form-alert--success { background: var(--ok-bg);  border-color: var(--ok-bd);  color: var(--ok-tx); }
.form-alert--error   { background: var(--err-bg); border-color: var(--err-bd); color: var(--err-tx); }
.form-alert ul { margin: 6px 0 0 18px; }

/* Variantes de bouton */
.btn--sm { margin-top: 0; padding: 8px 16px; font-size: 13px; }
.btn--outline { background: #fff; color: var(--brand); }
.btn--outline:hover { background: var(--bg-muted); }
/* Rouge volontairement NON theme : « se desabonner de tout » doit rester
   reconnaissable comme une action destructrice, quelle que soit la charte. */
.btn--danger { background: #a3312a; border-color: #7c231d; }
.btn--danger:hover { background: #7c231d; }

/* Texte d'introduction */
.lead { font-size: 14px; line-height: 1.6; color: var(--text); max-width: 640px; margin-bottom: 22px; }

/* Groupe de boutons radio (périmètre d'abonnement) */
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-option { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #333; cursor: pointer; }
.radio-option input { margin-top: 2px; accent-color: var(--brand); flex: none; }

/* Champs d'identite du formulaire d'inscription */
.form__hint { font-size: 13px; color: #666; margin-bottom: 16px; }
.req { color: var(--legal-link); font-weight: 700; }
.field--short { max-width: 190px; }
.date-group { display: flex; flex-wrap: wrap; gap: 8px; }
.field--date { width: auto; min-width: 88px; }

/* Bloc de consentement : une question par finalite, reponse Oui/Non */
.consent-box { border: 1px solid var(--line); background: #fff; padding: 18px 20px 20px; margin-bottom: 20px; }
.consent-q + .consent-q { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.consent-q__label { font-size: 14px; line-height: 1.55; color: var(--text-strong); margin-bottom: 10px; }
.radio-inline { display: flex; align-items: center; gap: 28px; }
.radio-inline .radio-option { align-items: center; font-weight: 600; }

/* Actions globales (barre de boutons) */
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Liste d'abonnements (centre de préférences) */
.sub-list { display: flex; flex-direction: column; gap: 10px; max-width: 770px; margin-top: 8px; }
.sub-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid var(--line); padding: 14px 16px;
}
.sub-row__info { display: flex; flex-direction: column; gap: 4px; }
.sub-row__name { font-size: 14px; font-weight: 700; color: var(--text-strong); }
.badge { align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 2px 8px; border-radius: 20px; }
.badge--on  { background: var(--ok-bg);  color: var(--ok-tx);  border: 1px solid var(--ok-bd); }
.badge--off { background: #eee; color: #777; border: 1px solid #ccc; }
.sub-row__action { flex: none; }

/* ------------------------------------------------------------------ */
/* Accueil — hero deux colonnes (visuel + accroche)                    */
/* ------------------------------------------------------------------ */
.home-hero__inner--split {
  max-width: var(--maxw);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: 40px;
}
.home-hero__visual img { width: 100%; height: auto; }
.home-hero__pitch h1 {
  font-size: 34px; line-height: 1.18; font-weight: 800; letter-spacing: -0.5px;
  color: var(--text-strong); margin-bottom: 16px;
}
.home-hero__pitch p { font-size: 16px; line-height: 1.6; max-width: 46ch; }
.home-hero__pitch .btn { margin-top: 22px; }

/* ------------------------------------------------------------------ */
/* Accueil — sections editoriales                                      */
/* ------------------------------------------------------------------ */
.section { background: var(--bg); padding: 52px 0; }
.section--muted { background: var(--bg-muted); }
.section__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section__title {
  font-size: 26px; font-weight: 400; letter-spacing: 0.3px;
  color: var(--text-strong); margin-bottom: 24px;
}
.section__title::after {
  content: ""; display: block; width: 54px; height: 3px;
  background: var(--accent); margin-top: 10px;
}
.section__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.section__cols p { font-size: 15px; line-height: 1.7; }

/* Comment ca marche — 3 etapes numerotees */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; list-style: none; }
.steps__item { background: var(--bg); border: 1px solid var(--line); padding: 26px 24px 28px; }
.steps__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 19px; font-weight: 700;
}
.steps__item h3 { font-size: 17px; font-weight: 700; color: var(--text-strong); margin: 16px 0 8px; }
.steps__item p { font-size: 14px; line-height: 1.65; }

/* Engagements — liste a coches */
.pledges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 30px; list-style: none; }
.pledges__item {
  position: relative; padding-left: 34px;
  font-size: 15px; line-height: 1.65;
}
.pledges__item::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9.6 17.3 4.3 12l1.7-1.7 3.6 3.6L18 5.1 19.7 6.8z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.pledges__item strong { color: var(--text-strong); }
.pledges__link { color: var(--brand); text-decoration: underline; }

/* Appel final */
.cta-final { background: var(--brand); color: #fff; }
.cta-final__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 46px var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.cta-final__claim { font-size: 21px; font-weight: 700; line-height: 1.35; }
.cta-final .btn { margin-top: 12px; }
.cta-final__note { font-size: 13px; opacity: .9; margin-top: 10px; }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .home-hero__inner--split { grid-template-columns: 1fr; gap: 26px; }
  .home-hero__pitch h1 { font-size: 28px; }
  .home-hero__pitch h1 br { display: none; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .section__cols { grid-template-columns: 1fr; gap: 18px; }
  .pledges { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .band__inner { flex-direction: column; gap: 26px; padding: 34px 16px; }
  .band__claim { padding: 0; max-width: none; }
  .band__items { width: 100%; max-width: 460px; }
  .band__item { width: 33.33%; padding: 0 8px; }
  .home-hero__slot { aspect-ratio: 4 / 3; }
  .section { padding: 38px 0; }
  /* Les 3 tableaux de la politique de confidentialite vont jusqu'a 3 colonnes
     de texte dense : on les rend defilables plutot que de laisser la page
     entiere deborder. */
  .doc table { display: block; overflow-x: auto; max-width: 100%; }
}
@media (max-width: 600px) {
  .site-header__inner { justify-content: center; gap: 14px; }
  .page-head h1 { font-size: 24px; }
  .form__row { grid-template-columns: 1fr; gap: 5px; margin-bottom: 12px; }
  .form__label.is-top { padding-top: 0; }
  .doc td, .doc th { font-size: 11px; padding: 6px 7px; }
  .sub-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sub-row__action { width: 100%; }
  .sub-row__action .btn { width: 100%; text-align: center; }
}
