/* excommunica — feuille de style principale */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff") format("woff");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --mauve: #3f275d;
  --mauve-fonce: #2a1c3f;
  --mauve-moyen: #4a3169;
  --mauve-pale: #f6f3fa;
  --orange: #f7931e;
  --orange-texte: #a8590a;
  --orange-clair: #ffc27a;
  --bleu: #3a90f8;
  --bleu-texte: #1f5fb8;
  --bleu-clair: #6aaefc;
  --texte: #2a2238;
  --texte-doux: #4a4258;
  --lavande: #f1ecf7;
  --lavande-doux: #d6cbe6;
  --bordure: #c9bfd9;
  --bordure-champ: #8a7ba3;
  --largeur: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--texte);
  background: #ffffff;
  font-size: 18px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: var(--bleu-texte); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--mauve);
  outline-offset: 3px;
}

.conteneur { max-width: var(--largeur); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.lien-evitement {
  position: absolute; left: -9999px; top: 0;
  background: #ffffff; color: var(--mauve); padding: 12px 18px; font-weight: 700; z-index: 10;
}
.lien-evitement:focus { left: 16px; top: 16px; }

/* ---------- En-tête et bannière ---------- */
.zone-mauve { background: var(--mauve); color: #ffffff; }
.zone-mauve a { color: var(--orange-clair); }

.entete .conteneur {
  padding-top: 22px; padding-bottom: 22px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.entete .logo img { height: 44px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 16px; font-weight: 600; }
.nav a { color: #ffffff; text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--lavande-doux); }
.nav a[aria-current="page"] { border-bottom-color: var(--orange); }

.banniere .conteneur {
  padding-top: 88px; padding-bottom: 120px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
}
.banniere-texte { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.banniere h1 { font-size: 68px; line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; }
.banniere .chapeau { font-size: 21px; line-height: 1.65; color: #ffffff; max-width: 640px; }
.surtitre { font-size: 16px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.accent { color: var(--orange); }

.visuel { flex: 0 1 424px; min-width: 0; background: var(--mauve-moyen); border-radius: 40px; padding: 12px; }
.visuel img { width: 100%; }
.banniere-page .conteneur { padding-top: 64px; padding-bottom: 88px; }
.banniere-page h1 { font-size: 56px; line-height: 1.05; }
.banniere-page .visuel { flex-basis: 360px; }

/* ---------- Boutons ---------- */
.boutons { display: flex; flex-wrap: wrap; gap: 14px; }
.bouton {
  display: inline-block; text-decoration: none; text-align: center;
  padding: 17px 28px; border-radius: 999px; font-size: 17px; font-weight: 800; line-height: 1.3;
  font-family: inherit; cursor: pointer; border: 0;
}
.zone-mauve .bouton-orange, .bouton-orange { background: var(--orange); color: var(--mauve-fonce); }
.zone-mauve .bouton-contour { color: #ffffff; border: 2px solid #8f7bb0; padding: 15px 26px; font-weight: 700; }
.bouton-mauve, .zone-orange .bouton-mauve { background: var(--mauve); color: #ffffff; font-size: 18px; padding: 18px 32px; }
.bouton-orange:hover { background: #ffa640; }
.bouton-mauve:hover { background: var(--mauve-fonce); }
.zone-mauve .bouton-contour:hover { border-color: #ffffff; }

/* ---------- Sections ---------- */
.section { padding-top: 104px; padding-bottom: 104px; }
.fond-pale { background: var(--mauve-pale); }
.fond-fonce { background: var(--mauve-fonce); color: #ffffff; }
.fond-fonce a { color: var(--orange-clair); }
.section h2 { font-size: 42px; line-height: 1.15; font-weight: 800; color: var(--mauve); }
.fond-fonce h2 { color: #ffffff; }
.texte-doux { color: var(--texte-doux); }

.defi { max-width: 1000px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.defi h2 { font-size: 46px; line-height: 1.12; letter-spacing: -0.01em; }
.defi p { font-size: 20px; line-height: 1.7; color: var(--texte-doux); max-width: 820px; }

.services { display: flex; flex-direction: column; gap: 16px; }
.services h2 { margin-bottom: 24px; }
.service {
  background: #ffffff; border-radius: 24px; padding: 36px 40px;
  display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: baseline;
}
.service .numero { flex: 0 0 48px; font-size: 18px; font-weight: 800; color: var(--orange-texte); }
.service:nth-child(3) .numero { color: var(--bleu-texte); }
.service:nth-child(4) .numero { color: var(--mauve); }
.service h3 { flex: 1 1 320px; font-size: 26px; line-height: 1.25; font-weight: 800; color: var(--mauve); }
.service p { flex: 1 1 420px; font-size: 18px; color: var(--texte-doux); }

.approche { display: flex; flex-direction: column; gap: 44px; }
.etapes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.etapes li { display: flex; flex-direction: column; gap: 12px; border-top: 4px solid var(--orange); padding-top: 20px; }
.etapes li:nth-child(even) { border-top-color: var(--bleu); }
.etapes h3 { font-size: 22px; font-weight: 800; color: var(--mauve); }
.etapes p { font-size: 17px; color: var(--texte-doux); }

.realisations { display: flex; flex-direction: column; gap: 48px; }
.deux-colonnes { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-start; }
.deux-colonnes > * { flex: 1 1 460px; min-width: 0; }
.realisations .intro { font-size: 18px; line-height: 1.7; color: var(--lavande); }
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.carte { background: var(--mauve); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.carte h3 { font-size: 30px; line-height: 1.2; font-weight: 800; color: var(--orange); }
.carte:nth-child(2) h3 { color: var(--bleu-clair); }
.carte p { font-size: 17px; color: #ffffff; }
.realisations .aussi { font-size: 17px; color: var(--lavande); }

/* ---------- Appel à l'action ---------- */
.zone-orange { background: var(--orange); color: var(--mauve-fonce); }
.appel .conteneur { padding-top: 88px; padding-bottom: 88px; }
.appel-bloc { width: fit-content; max-width: 100%; display: flex; flex-direction: column; gap: 18px; }
.appel h2 { font-size: 42px; line-height: 1.12; font-weight: 800; color: var(--mauve-fonce); }
.appel p { font-size: 19px; }
.appel p a { color: var(--mauve-fonce); font-weight: 700; }
.appel .bouton { align-self: flex-end; margin-top: 14px; }

/* ---------- Pages intérieures ---------- */
.rangee { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; }
.rangee > h2 { flex: 1 1 320px; }
.rangee > .contenu { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contenu p { font-size: 19px; line-height: 1.7; color: var(--texte-doux); }
.fond-fonce .contenu p { color: var(--lavande); font-size: 20px; }
.tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tuile { background: var(--mauve-pale); border-radius: 20px; padding: 24px 28px; border-top: 5px solid var(--orange); font-size: 22px; font-weight: 800; color: var(--mauve); }
.tuile:nth-child(2) { border-top-color: var(--bleu); }
.pastilles { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pastilles li { background: var(--mauve); color: #ffffff; font-size: 16px; font-weight: 700; padding: 12px 20px; border-radius: 999px; }
.nom-marque { font-weight: 800; color: inherit; white-space: nowrap; }

/* ---------- Formulaire ---------- */
.formulaire-zone .conteneur { padding-top: 72px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.carte-formulaire { flex: 1 1 640px; min-width: 0; background: #ffffff; border-radius: 28px; padding: 40px; }
.formulaire { display: flex; flex-direction: column; gap: 22px; }
.grille-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.champ { display: flex; flex-direction: column; gap: 8px; }
.champ label, .champ legend { font-size: 16px; font-weight: 700; color: var(--mauve); }
.champ input, .champ select, .champ textarea {
  font: inherit; font-size: 17px; padding: 14px 16px; border: 2px solid var(--bordure-champ); border-radius: 12px;
  color: var(--texte); background: #ffffff; width: 100%;
}
.champ textarea { line-height: 1.5; resize: vertical; min-height: 160px; }
fieldset.champ { margin: 0; padding: 0; border: 0; }
fieldset.champ legend { padding: 0; margin-bottom: 8px; }
.choix { display: flex; flex-wrap: wrap; gap: 12px; }
.choix label { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; color: var(--texte); padding: 12px 18px; border: 2px solid var(--bordure-champ); border-radius: 12px; cursor: pointer; }
.choix input { width: 20px; height: 20px; accent-color: var(--mauve); margin: 0; }
.envoi { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.mention { flex: 1 1 360px; font-size: 15px; line-height: 1.6; color: var(--texte-doux); }
.mention a { font-weight: 700; }
.note { font-size: 15px; color: var(--texte-doux); }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alerte { background: #fbebeb; border-left: 6px solid #b42318; color: #5c1210; padding: 16px 20px; border-radius: 12px; font-size: 16px; }

.cote { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cote .bloc { border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.cote .bloc-mauve { background: var(--mauve); color: #ffffff; }
.cote .bloc-mauve h2 { font-size: 24px; font-weight: 800; }
.cote .etiquette { font-size: 15px; color: var(--lavande-doux); }
.cote .bloc-mauve a { font-size: 18px; font-weight: 700; color: var(--orange-clair); }
.cote .bloc-blanc { background: #ffffff; border-top: 6px solid var(--orange); }
.cote .bloc-blanc h2 { font-size: 20px; font-weight: 800; color: var(--mauve); }
.cote .bloc-blanc p { font-size: 16px; color: var(--texte-doux); }

.merci { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.merci h2 { font-size: 32px; line-height: 1.2; font-weight: 800; color: var(--mauve); }
.merci p { color: var(--texte-doux); }

/* ---------- Texte long (politique) ---------- */
.texte-long { max-width: 820px; }
.texte-long h2 { font-size: 28px; margin-top: 48px; margin-bottom: 12px; }
.texte-long h2:first-child { margin-top: 0; }
.texte-long p, .texte-long li { font-size: 18px; line-height: 1.7; color: var(--texte-doux); }
.texte-long p + p { margin-top: 12px; }
.texte-long ul { margin: 12px 0 0; padding-left: 24px; }
.texte-long li + li { margin-top: 6px; }
.maj { font-size: 16px; color: var(--lavande-doux); }

/* ---------- Pied de page ---------- */
.pied { background: var(--mauve-fonce); color: var(--lavande-doux); }
.pied .conteneur { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; font-size: 15px; }
.pied img { height: 36px; width: auto; }
.pied a { color: #ffffff; }
.pied .liens { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Pages Services ---------- */
.pile { display: flex; flex-direction: column; gap: 32px; }
.pile > * { min-width: 0; max-width: 100%; }
.service h3 a { color: inherit; text-decoration: none; }
.service h3 a:hover { text-decoration: underline; }
.tous-services { margin-top: 16px; }
.lien-fleche { font-weight: 800; color: var(--bleu-texte); text-decoration: none; }
.lien-fleche::after { content: " →"; }
.lien-fleche:hover { text-decoration: underline; }

.offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.offre { background: #ffffff; border-radius: 24px; padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; border-top: 6px solid var(--orange); }
.offre:nth-child(2) { border-top-color: var(--bleu); }
.offre:nth-child(3) { border-top-color: var(--mauve); }
.offre h2 { font-size: 26px; line-height: 1.25; }
.offre p { font-size: 17px; color: var(--texte-doux); }
.offre .numero { font-size: 18px; font-weight: 800; color: var(--orange-texte); }
.offre .lien-fleche { margin-top: auto; }

.avantages { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.avantages li { font-size: 18px; line-height: 1.65; color: var(--texte-doux); padding-left: 22px; border-left: 4px solid var(--orange); }
.avantages strong { color: var(--mauve); }

.chiffre-cle { display: flex; align-items: center; gap: 20px; background: var(--mauve-pale); border-radius: 20px; padding: 24px 28px; }
.contenu .chiffre-cle { color: var(--texte); }
.chiffre-cle .chiffre { font-size: 52px; line-height: 1; font-weight: 800; color: var(--mauve); flex: none; }
.source { font-size: 14px !important; color: var(--texte-doux); }

.etapes-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.tableau-defile { position: relative; overflow-x: auto; border-radius: 20px; border: 1px solid #e4dfeb; }
.tableau { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 17px; }
.tableau th, .tableau td { padding: 18px 20px; text-align: left; border-bottom: 1px solid #e4dfeb; vertical-align: top; }
.tableau thead th { background: var(--mauve); color: #ffffff; font-size: 17px; }
.tableau thead th.recommandee { background: var(--mauve-fonce); }
.tableau tbody th { font-weight: 700; color: var(--mauve); }
.tableau td.recommandee { background: #fff8ef; font-weight: 600; }
.tableau tbody tr:last-child th, .tableau tbody tr:last-child td { border-bottom: 0; }
.tableau .sous { display: block; font-weight: 500; font-size: 15px; color: var(--lavande-doux); }
.coche { font-size: 22px; font-weight: 800; color: var(--orange-texte); }
.badge { display: inline-block; margin-left: 8px; background: var(--orange); color: var(--mauve-fonce); font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; vertical-align: middle; }
.tableau .badge { display: table; margin: 6px 0 0; }

.themes { margin: 0; padding: 0; list-style: none; counter-reset: theme; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.themes li { counter-increment: theme; background: #ffffff; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.themes li::before { content: counter(theme); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mauve); color: #ffffff; font-weight: 800; }
.themes h3 { font-size: 20px; line-height: 1.3; font-weight: 800; color: var(--mauve); }
.themes p { font-size: 16px; color: var(--texte-doux); }

.formules { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.formule { background: #ffffff; border: 2px solid #e4dfeb; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.formule-reco { border-color: var(--orange); }
.formule h3 { font-size: 24px; line-height: 1.25; font-weight: 800; color: var(--mauve); }
.formule p { font-size: 16px; color: var(--texte-doux); }
.formule .badge { margin: 0; align-self: flex-start; }
.formule-contenu { font-size: 18px !important; font-weight: 700; color: var(--texte) !important; }
.formule .prix { font-weight: 700; color: var(--mauve) !important; }
.formule .bouton { margin-top: auto; align-self: flex-start; }
.inclus { margin: 0; padding-left: 20px; font-size: 16px; color: var(--texte-doux); }
.inclus li + li { margin-top: 6px; }

.domaines { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.domaine { background: #ffffff; border-radius: 20px; padding: 28px; border-top: 5px solid var(--bleu); display: flex; flex-direction: column; gap: 10px; }
.domaine:nth-child(even) { border-top-color: var(--orange); }
.domaine h3 { font-size: 20px; line-height: 1.3; font-weight: 800; color: var(--mauve); }
.domaine p { font-size: 16px; color: var(--texte-doux); }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--mauve-pale); border-radius: 16px; padding: 4px 24px; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--mauve); padding: 16px 0; font-size: 18px; }
.faq details[open] summary { padding-bottom: 8px; }
.faq details p { padding-bottom: 18px; }

/* ---------- Écrans étroits ---------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .banniere .conteneur { padding-top: 48px; padding-bottom: 72px; gap: 40px; }
  .banniere h1 { font-size: 46px; }
  .banniere-page h1 { font-size: 42px; }
  .banniere .chapeau { font-size: 19px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .section h2, .appel h2 { font-size: 32px; }
  .defi h2 { font-size: 34px; }
  .defi { text-align: left; align-items: flex-start; }
  .service { padding: 28px; }
  .service h3 { font-size: 22px; }
  .carte h3 { font-size: 26px; }
  .appel .conteneur { padding-top: 64px; padding-bottom: 64px; }
  .appel .bouton { align-self: flex-start; }
  .carte-formulaire { padding: 28px 22px; }
  .tuiles { grid-template-columns: 1fr; }
  .visuel { flex-basis: 100%; max-width: 420px; }
}
@media (max-width: 480px) {
  .entete .logo img { height: 36px; }
  .nav { gap: 4px 18px; font-size: 15px; }
  .banniere h1 { font-size: 38px; }
  .banniere-page h1 { font-size: 36px; }
  .bouton { padding: 16px 22px; }
  .formule { padding: 24px; }
}

/* Sélecteur de langue */
.nav a.langue { border: 2px solid rgba(255,255,255,.55); border-radius: 6px; padding: 2px 8px; font-size: 14px; letter-spacing: .04em; }
.nav a.langue:hover { border-color: var(--orange); }

/* Nom excommunica : orange foncé sur fond pâle (contraste WCAG AA), orange de marque sur fond mauve */
.nom-marque .accent { color: var(--orange-texte); }
.zone-mauve .nom-marque .accent, .fond-fonce .nom-marque .accent,
.bloc-mauve .nom-marque .accent, .pied .nom-marque .accent { color: var(--orange); }

/* Accessibilité (WCAG 2.2 AA) : indicateur de focus contrasté selon le fond, pastille lisible */
.zone-mauve :focus-visible, .fond-fonce :focus-visible, .bloc-mauve :focus-visible, .pied :focus-visible { outline-color: var(--orange); }
.formule .badge { color: var(--mauve-fonce); }

/* Nom en titre de la page À propos : même graisse que le logo */
.titre-marque { font-weight: 500; }
