/*
 * Charte du site public Cèdre Santé (reprise du site Wix, relevé du 2026-12-04).
 *
 * Mobile d'abord, un seul point de rupture à 768 px. Chaque bloc de l'éditeur (admin/assets/site/blocs.json)
 * a sa règle .cs-<bloc> ; ses variantes sont des classes cs-* posées sur l'élément racine du bloc.
 * Aucune police ni ressource tierce : polices dans assets/polices/ (licence OFL), pictogrammes dans assets/pictos/.
 * Mesures de référence : captures Wix en 1440 px (bureau) et 320 px (mobile).
 */

/* ---------- Polices (WOFF2, sous-ensemble latin : accents français, œ, €, guillemets) ---------- */
@font-face { font-family: "Caudex"; src: url("polices/caudex-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Caudex"; src: url("polices/caudex-400-italique.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Caudex"; src: url("polices/caudex-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Forum"; src: url("polices/forum-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("polices/poppins-200.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }

/* ---------- Variables de la charte ---------- */
:root {
  --cs-bleu: #22495A;          /* titres, pied de page, boutons sombres */
  --cs-bleu-clair: #486573;    /* dégradé des boutons, carte du portrait, traits des cartes */
  --cs-beige: #F4EFEB;         /* fond des pages */
  --cs-rose: #E8DCD5;          /* bandeau contact */
  --cs-rose-fonce: #D8C7BD;    /* cadres des photos, guillemets */
  --cs-orange: #DE541E;        /* bandeaux et boutons d'action */
  --cs-saumon: #E9A184;        /* bandeau « Ils nous font confiance » */
  --cs-noir: #242323;          /* fond du formulaire de contact */
  --cs-texte: #414141;
  --cs-anis: #BADA55;          /* bandeau « Nouveau » */
  --cs-gris: #EBE8E7;          /* bandeau « Nos formations » */
  --cs-brun: #8B6755;          /* bouton contour « Téléchargez » */
  --cs-police-titre: "Caudex", Georgia, serif;
  --cs-police-texte: "Forum", Georgia, serif;
  --cs-police-fine: "Poppins", Arial, sans-serif;
  --cs-largeur: 980px;         /* grille Wix : colonne de contenu */
  --cs-largeur-large: 1280px;  /* cartes blanches et bandeaux larges */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cs-beige); color: var(--cs-texte);
  font-family: var(--cs-police-texte); font-size: 16px; line-height: 1.5;
  /* Lissage en niveaux de gris, comme Wix : rendu plus fin sur macOS, et seule façon d'y obtenir le gras simulé
     de Forum et Poppins (polices sans graisse 700). */
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: var(--cs-police-titre); font-weight: 400; color: var(--cs-bleu); line-height: 1.3; margin: 0 0 .5em; }
p, ul, ol, blockquote, figure { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { padding-left: 1.4em; }
strong, b { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--cs-rose-fonce); margin: 2em 0; }

/* Utilitaires de variante partagés */
.cs-centre { text-align: center; }
.cs-gauche { text-align: left; }
.cs-fond-beige { background-color: var(--cs-beige); }
.cs-fond-blanc { background-color: #fff; }
.cs-fond-gris { background-color: var(--cs-gris); }
.cs-fond-rose { background-color: var(--cs-rose); }
.cs-fond-orange { background-color: var(--cs-orange); }
.cs-fond-saumon { background-color: var(--cs-saumon); }
.cs-fond-anis { background-color: var(--cs-anis); }
.cs-fond-sombre { background-color: var(--cs-bleu); color: #fff; }
.cs-fond-anthracite { background-color: var(--cs-texte); color: #fff; }

/* ---------- Bouton (bloc cs-bouton, aussi utilisé dans les autres blocs) ---------- */
.cs-bouton { margin: 0 0 1em; text-align: center; }
.cs-bouton.cs-gauche { text-align: left; }
.cs-bouton a {
  display: inline-block; min-height: 50px; padding: 11px 25px; border-radius: 4px;
  font-family: var(--cs-police-titre); font-size: 20px; line-height: 28px; color: #fff; text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .35); transition: filter .15s;
}
.cs-bouton a:hover, .cs-bouton a:focus-visible { filter: brightness(1.12); }
.cs-bouton-sombre a { background: linear-gradient(#64808b, #486573 48%, #22495A 52%, #1f4555); }
.cs-bouton-orange a { background: linear-gradient(#e8784b, #e2643a 48%, #d7511d 52%, #d24c18); }
.cs-bouton-contour a {
  min-height: 40px; padding: 7px 38px 7px 18px; border: 2px solid var(--cs-brun); border-radius: 20px; box-shadow: none;
  background: transparent; color: var(--cs-brun); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 22px; position: relative;
}
.cs-bouton-contour a::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -5px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg);
}
.cs-taille-petite a { min-height: 30px; padding: 2px 4px; font-size: 18px; line-height: 26px; border-radius: 4px; }

/* ---------- En-tête : logo + menu (page _header) ---------- */
.cs-entete { background: #fff; }
.cs-entete-int { display: flex; align-items: center; justify-content: space-between; max-width: 1258px; margin: 0 auto; padding: 12px 20px; }
.cs-entete-logo { display: block; flex: none; }
.cs-entete-logo img { width: 176px; height: auto; margin-left: -6px; }
.cs-entete-burger { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 10px 8px; }
.cs-barre { display: block; height: 2px; background: var(--cs-bleu); }
.cs-menu { display: none; }
.cs-menu:target {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  position: fixed; inset: 0; z-index: 50; background: #fff; overflow-y: auto;
}
.cs-menu a { font-family: var(--cs-police-texte); font-size: 24px; color: var(--cs-bleu); text-decoration: none; }
.cs-menu a:hover, .cs-menu a:focus-visible { color: #9E928B; }
.cs-menu-fermer { position: absolute; top: 14px; right: 22px; font-size: 40px !important; line-height: 1; }

/* ---------- Bandeau sous l'en-tête : « Nous contacter » + réseaux ---------- */
.cs-bandeau-contact { background: var(--cs-rose); border-bottom: 2px solid #fff; }
.cs-bandeau-contact-int { display: flex; align-items: center; justify-content: center; max-width: 1258px; margin: 0 auto; padding: 16px 20px; }
.cs-bandeau-contact .cs-bouton { margin: 0; }
/* Relevé Wix : 253 x 45, rayon 5, ombre 0 1px 4px .6, reflet « verre » (moitié haute éclaircie, moitié basse assombrie), Caudex 21 px. */
.cs-bandeau-contact .cs-bouton a {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 253px; max-width: 100%; min-height: 45px; height: 45px; padding: 0 18px; border-radius: 5px;
  font-size: 21px; line-height: 29.4px; box-shadow: 0 1px 4px rgba(0, 0, 0, .6);
  background: linear-gradient(rgba(255, 255, 255, .34), rgba(255, 255, 255, .13) 50%, rgba(0, 0, 0, .07) 50%, rgba(0, 0, 0, .02)) #22495A;
}
.cs-reseaux { display: none; }
.cs-reseaux p { margin: 0; font-size: 18px; color: var(--cs-texte); }
.cs-reseaux-icones { display: flex; gap: 8px; justify-content: center; margin-top: 12px !important; }
.cs-reseaux-icones img { width: 24px; height: 24px; }

/* ---------- Héros : photo voilée, titre, texte, bouton ---------- */
.cs-heros { position: relative; overflow: hidden; padding: 16px 20px 48px; text-align: center; }
.cs-heros-fond { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; object-fit: cover; z-index: 0; }
.cs-heros::after { content: ""; position: absolute; inset: 0; z-index: 1; }
/* Wix : photo à 26 % d'opacité sur fond blanc = voile blanc à 74 %. */
.cs-voile-clair::after { background: rgba(255, 255, 255, .74); }
.cs-voile-sombre::after { background: rgba(34, 73, 90, .55); }
.cs-heros-contenu { position: relative; z-index: 2; max-width: 926px; margin: 0 auto; }
.cs-heros h1 { font-size: 26px; line-height: 1.32; color: var(--cs-texte); margin: 0 0 12px; }
.cs-heros p { font-size: 20px; line-height: 1.3; color: var(--cs-texte); margin: 0; }
.cs-heros .cs-bouton { margin: 22px 0 0; }
.cs-voile-sombre h1, .cs-voile-sombre p { color: #fff; }

/* ---------- Bandeau annonce (« Nouveau : … ») ---------- */
.cs-annonce { padding: 20px; text-align: center; }
.cs-annonce p { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.3; color: #fff; }
.cs-annonce a { color: #fff; }
/* Fond anis : texte blanc illisible (≈ 1,6:1) → bleu de la charte (choix utilisateur, écart voulu avec Wix). */
.cs-annonce.cs-fond-anis p, .cs-annonce.cs-fond-anis a { color: #22495A; }

/* ---------- Portrait : carte titre, citation, photo encadrée ---------- */
.cs-portrait { display: flex; flex-direction: column; gap: 32px; max-width: calc(var(--cs-largeur) + 40px); margin: 0 auto; padding: 40px 20px; }
.cs-portrait-texte { min-width: 0; }
.cs-portrait-carte { background: var(--cs-bleu-clair); padding: 16px 20px 14px; margin: 0 0 20px; text-align: center; }
.cs-portrait-carte h2 { font-size: 24px; color: #fff; margin: 0 0 6px; }
.cs-portrait-carte p { font-family: var(--cs-police-titre); font-size: 14px; color: #fff; margin: 0; }
.cs-portrait-citation { font-size: 19px; line-height: 28px; font-style: italic; color: var(--cs-texte); }
.cs-portrait-citation p { margin: 0; }
.cs-portrait-texte .cs-bouton { margin-top: 24px; }
.cs-portrait-photo { position: relative; margin: 0 auto; padding: 0 20px 20px; width: 100%; max-width: 410px; }
.cs-portrait-photo::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: var(--cs-rose-fonce); }
.cs-portrait-photo img { position: relative; width: 100%; padding-top: 20px; }

/* ---------- Titre de section sur bandeau coloré ---------- */
.cs-titre-bandeau { max-width: var(--cs-largeur-large); margin: 0 auto; padding: 18px 20px; text-align: center; }
.cs-titre-bandeau :is(h1, h2) { font-size: 22px; color: #fff; margin: 0; }
.cs-titre-bandeau.cs-fond-sable { max-width: var(--cs-largeur); margin-top: 20px; margin-bottom: 20px; padding: 10px; background: url("fonds/sable.webp") center / cover; }
.cs-titre-bandeau.cs-fond-sable :is(h1, h2) { background: #fff; color: var(--cs-texte); padding: 14px 10px; font-size: 26px; line-height: 1.35; }
.cs-titre-bandeau.cs-fond-sable { padding: 64px 28px; }

/* ---------- Titre de page + chapeau ---------- */
.cs-titre-page { max-width: calc(var(--cs-largeur) + 40px); margin: 0 auto; padding: 24px 20px 20px; text-align: center; }
.cs-titre-page h1 { font-size: 30px; line-height: 1.3; margin: 0 0 6px; }
.cs-titre-page p { color: var(--cs-bleu); margin: 0 auto; }
.cs-chapeau-grand p { font-size: 20px; line-height: 1.15; max-width: 603px; }
.cs-chapeau-normal p { font-size: 17px; line-height: 1.6; max-width: 671px; }
.cs-titre-page.cs-gauche { max-width: 780px; text-align: left; }
.cs-titre-page.cs-gauche h1 { color: var(--cs-texte); }
.cs-titre-page.cs-gauche p { color: var(--cs-texte); margin: 0; }
/* Fond de la section sur toute la largeur de l'écran, la colonne de texte restant centrée. */
.cs-titre-page.cs-fond-beige { box-shadow: 0 0 0 100vmax var(--cs-beige); clip-path: inset(0 -100vmax); }
.cs-titre-page.cs-fond-blanc { box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); }

/* ---------- Grille de cartes pictogramme ---------- */
.cs-cartes-picto { max-width: var(--cs-largeur-large); margin: 0 auto; padding: 0 0 48px; }
.cs-cartes-picto-grille { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--cs-bleu-clair); margin-bottom: 20px; }
.cs-carte-picto { padding: 24px 20px; border-bottom: 1px solid var(--cs-bleu-clair); text-align: center; }
.cs-carte-picto img { width: 40px; height: 40px; margin: 0 auto 16px; }
.cs-carte-picto p { font-family: var(--cs-police-titre); font-size: 15px; line-height: 1.3; text-transform: uppercase; color: var(--cs-bleu); margin: 0 auto; max-width: 280px; }

/* ---------- Grande citation sur photo et fond sombre ---------- */
.cs-citation-fond { position: relative; overflow: hidden; background: var(--cs-bleu); padding: 24px 20px 40px; }
.cs-citation-fond-image { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; object-fit: cover; }
.cs-citation-fond blockquote, .cs-citation-fond .cs-bouton { position: relative; max-width: 773px; margin-left: auto; margin-right: auto; }
.cs-citation-fond blockquote p { font-family: var(--cs-police-titre); font-style: italic; font-size: 26px; line-height: 1.33; color: #fff; margin: 0 0 24px; }
.cs-citation-fond .cs-bouton { margin-bottom: 0; }

/* ---------- Témoignages ---------- */
.cs-temoignages { padding: 0 0 48px; }
.cs-raccord-sombre { background: linear-gradient(var(--cs-bleu) 0 60px, transparent 60px); }
.cs-raccord-aucun { background: none; }
.cs-temoignages-carte { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: var(--cs-largeur-large); margin: 0 auto; background: #fff; padding: 40px 20px; }
.cs-temoignage { margin: 0; }
.cs-temoignage::before { content: ""; display: block; width: 50px; height: 36px; margin: 0 auto 12px; background: url("pictos/guillemets.svg") no-repeat center / contain; }
.cs-temoignage blockquote { margin: 0 0 12px; }
.cs-temoignage blockquote p { font-size: 17px; line-height: 1.75; color: var(--cs-bleu); margin: 0; }
.cs-temoignage figcaption { font-family: var(--cs-police-titre); font-style: italic; font-size: 21px; color: var(--cs-bleu); }

/* ---------- Fil Instagram (module Behold) ---------- */
.cs-instagram { max-width: calc(var(--cs-largeur) + 40px); margin: 0 auto; padding: 40px 20px; text-align: center; }
.cs-instagram h2 { font-size: 24px; margin: 0 0 24px; }
.cs-instagram [data-cs-module] { min-height: 200px; }
/* Sans identifiant Behold, le module ne rend rien : la section (titre seul, 784 px de haut au bureau) est masquée.
   Dans l'éditeur, le module est encore là : la section reste visible et modifiable. */
.cs-instagram:not(:has(behold-widget, [data-cs-module])) { display: none; }

/* ---------- Logos partenaires ---------- */
.cs-logos { padding: 30px 20px 40px; text-align: center; }
.cs-logos h2 { font-family: var(--cs-police-texte); font-size: 33px; line-height: 1.4; color: #fff; margin: 0 0 24px; }
.cs-logos.cs-fond-blanc h2, .cs-logos.cs-fond-beige h2 { color: var(--cs-bleu); }
.cs-logos-liste { display: flex; flex-direction: column; align-items: center; gap: 30px; margin: 0; }
.cs-logos-liste a, .cs-logos-liste img { display: block; }
.cs-logos-liste img { width: 110px; height: 110px; object-fit: contain; background: #fff; }

/* ---------- Deux colonnes logo + texte (accréditations) ---------- */
.cs-deux-colonnes-logo { padding: 24px 20px 40px; text-align: center; }
.cs-deux-colonnes-logo h2 { font-size: 23px; margin: 0 0 20px; }
.cs-deux-colonnes-logo-grille { display: grid; grid-template-columns: 1fr; gap: 32px; justify-content: center; }
.cs-colonne-logo { max-width: 360px; margin: 0 auto; }
.cs-colonne-logo img { margin: 0 auto 12px; max-height: 120px; width: auto; }
.cs-colonne-logo p { font-size: 15px; line-height: 1.5; margin: 0; }

/* ---------- Appel à l'action en carte blanche sur photo ---------- */
.cs-cta-photo { position: relative; overflow: hidden; padding: 20px 15px; }
.cs-cta-photo-image { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; object-fit: cover; }
.cs-cta-photo-carte { position: relative; max-width: 568px; margin: 0 auto; background: #fff; padding: 30px 24px 34px; text-align: center; }
.cs-cta-photo-carte h2 { font-size: 23px; line-height: 1.25; color: var(--cs-texte); margin: 0 0 20px; }
.cs-cta-photo-carte p { font-size: 15px; line-height: 1.9; max-width: 402px; margin: 0 auto 24px; }
.cs-cta-photo-carte .cs-bouton { margin: 0; }

/* ---------- Texte riche ---------- */
.cs-texte { padding: 32px 20px; }
.cs-texte-int { max-width: 740px; margin: 0 auto; }
.cs-texte h2 { font-size: 24px; line-height: 1.4; color: var(--cs-texte); margin: 1.2em 0 .6em; }
.cs-texte h3 { font-size: 20px; line-height: 1.4; color: var(--cs-texte); margin: 1em 0 .4em; }
.cs-texte p, .cs-texte li { font-size: 17px; line-height: 1.5; }
.cs-texte-int > :first-child { margin-top: 0; }
.cs-largeur-large .cs-texte-int { max-width: var(--cs-largeur); }
.cs-texte.cs-presentation-carte { padding: 0 0; background: transparent; }
.cs-presentation-carte .cs-texte-int { max-width: 940px; background: #fff; padding: 8px 20px 40px; }
.cs-texte figure img { margin: 0 auto; }
:is(.cs-texte, .cs-entete-article) figcaption { font-size: 14px; line-height: 1.4; text-align: center; margin: 12px 0 0; }
.cs-presentation-pleine .cs-texte-int > figure:first-child img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cs-texte.cs-justifie :is(p, li) { text-align: justify; }
/* Texte d'une sous-page (titre à gauche juste au-dessus, ex. Méthodes) : collé au titre, corps de 16 px comme Wix. */
.cs-titre-page.cs-gauche + .cs-texte { padding-top: 8px; }
.cs-titre-page.cs-gauche + .cs-texte :is(p, li) { font-size: 16px; line-height: 1.8; }

/* ---------- Navigation d'article (lien retour, Précédent / Suivant) ---------- */
/* Colonne de 740 px alignée sur le titre de sous-page et le texte riche ; collée au bloc voisin. */
.cs-navigation { padding: 24px 20px 32px; }
.cs-navigation-int { max-width: 740px; margin: 0 auto; }
.cs-navigation + .cs-titre-page { padding-top: 0; }
.cs-texte:has(+ .cs-navigation) { padding-bottom: 0; display: flow-root; } /* marge du dernier paragraphe gardée dans la section */
.cs-texte + .cs-navigation { padding-top: 28px; }
.cs-navigation:has(+ .cs-titre-page) { padding-bottom: 14px; }
.cs-navigation p { font-family: Arial, sans-serif; font-size: 14px; margin: 0; }
.cs-navigation .cs-pagination { display: flex; justify-content: space-between; }
.cs-navigation .cs-lien-retour + .cs-pagination { margin-top: 14px; }
.cs-navigation a { text-decoration: none; }
.cs-navigation a:hover, .cs-navigation a:focus-visible { text-decoration: underline; }

/* ---------- Lettre d'information (« Offre de lancement ») ---------- */
/* Largeur de la carte d'article (940 px), fond sombre, colonne de 740 px au centre, bandeau vert,
   cartes séparées par des bandes bleu nuit (rendu Wix). */
.cs-lettre { background: #1B1D2C; max-width: 940px; margin: 0 auto; }
.cs-lettre > * { max-width: 740px; margin-left: auto; margin-right: auto; }
.cs-lettre figure { margin-top: 0; margin-bottom: 0; }
.cs-lettre-logo { background: #fff; padding: 12px 0; }
.cs-lettre-logo img { width: 204px; margin: 0 auto; }
.cs-lettre .cs-lettre-bandeau { background: #97FF77; color: var(--cs-texte); text-align: center; font-size: 15px; padding: 16px 10px; margin-bottom: 0; }
.cs-lettre-bandeau strong { font-weight: 400; }
.cs-lettre h3 { color: #97FF77; text-align: center; font-size: 18px; line-height: 1.15; margin: 0 auto; padding: 4px 0 2px; }
.cs-lettre-carte { background: #fff; }
.cs-lettre-carte img { width: 100%; }
.cs-lettre-carte + .cs-lettre-carte { border-top: 34px solid #2D3047; }
.cs-lettre-pied { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; background: #2D3047; padding: 60px 10px 0; }
.cs-lettre-pied figure { flex: 0 0 120px; }
.cs-lettre-contact { text-align: right; }
.cs-lettre .cs-lettre-contact p { color: #fff; font-size: 15px; line-height: 1.6; margin: 0; }
.cs-lettre-contact a { color: #fff; text-decoration: none; }

/* ---------- Texte + image (gauche/droite, cadre beige) ---------- */
.cs-texte-image { display: flex; flex-direction: column; gap: 36px; max-width: var(--cs-largeur-large); margin: 0 auto; padding: 36px 20px; }
.cs-texte-image-texte h2 { font-size: 24px; margin: 0 0 20px; }
.cs-texte-image-texte p { font-size: 17px; line-height: 1.6; color: var(--cs-bleu); }
.cs-texte-image-image { position: relative; margin: 0 auto; width: 100%; max-width: 426px; }
.cs-texte-image-image img { position: relative; z-index: 1; width: 100%; }
.cs-texte-image-image { order: -1; }
.cs-cadre-beige .cs-texte-image-image::before { content: ""; position: absolute; z-index: 0; background: var(--cs-beige); left: -16px; right: -16px; top: 40%; bottom: -16px; }
.cs-cadre-beige.cs-fond-beige .cs-texte-image-image::before { background: var(--cs-rose-fonce); }
.cs-cadre-aucun .cs-texte-image-image::before { content: none; }

/* ---------- Carte blanche en deux colonnes (Histoire) ---------- */
.cs-carte-deux-colonnes { padding: 0; }
.cs-carte-deux-colonnes-carte { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: var(--cs-largeur-large); margin: 0 auto; padding: 24px 20px 40px; background: #fff; }
.cs-carte-beige .cs-carte-deux-colonnes-carte { background: var(--cs-beige); }
.cs-carte-deux-colonnes h3 { font-size: 26px; line-height: 1.4; color: var(--cs-texte); margin: 1em 0 .1em; }
.cs-carte-deux-colonnes .cs-colonne > :first-child { margin-top: 0; }
.cs-carte-deux-colonnes p, .cs-carte-deux-colonnes li { font-size: 16px; line-height: 1.4; }
.cs-carte-deux-colonnes p { margin: 0 0 .9em; }
.cs-carte-deux-colonnes ul { margin: 0 0 .9em; }
.cs-carte-deux-colonnes img { width: 100%; margin: 0 0 20px; aspect-ratio: 2 / 3; object-fit: cover; }
.cs-carte-deux-colonnes .cs-colonne + .cs-colonne { order: -1; }

/* ---------- Titre et texte sur fond sombre (Méthodes) ---------- */
.cs-titre-texte-sombre { padding: 32px 20px; }
.cs-titre-texte-sombre-int { display: flex; flex-direction: column; gap: 16px; max-width: 1102px; margin: 0 auto; }
.cs-titre-texte-sombre h2 { font-size: 28px; line-height: 1.2; color: #fff; margin: 0; }
.cs-titre-texte-sombre-texte p, .cs-titre-texte-sombre-texte li { font-family: var(--cs-police-titre); font-size: 16px; line-height: 1.4; color: #fff; }
.cs-titre-texte-sombre-texte ul { margin: 0; padding-left: 1.2em; }
.cs-titre-texte-sombre-texte a { color: #fff; }

/* ---------- Cartes horizontales (Méthodes, Blog) ---------- */
.cs-cartes-horizontales { padding: 32px 20px 40px; }
.cs-cartes-horizontales > :is(h1, h2) { font-size: 28px; color: var(--cs-texte); text-align: center; margin: 0 auto 30px; max-width: var(--cs-largeur); }
.cs-carte-horizontale { display: flex; flex-direction: column; background: #fff; border: 1px solid #e3e3e3; margin: 0 auto 32px; max-width: 756px; }
.cs-carte-horizontale > img { width: 100%; object-fit: cover; }
.cs-carte-horizontale-texte { padding: 20px 20px 24px; }
.cs-carte-horizontale-texte h3 { font-size: 20px; line-height: 1.4; color: var(--cs-texte); margin: 0 0 10px; }
.cs-carte-horizontale-texte p { font-size: 15px; line-height: 1.7; color: #5a5a5a; }
.cs-carte-horizontale .cs-bouton { text-align: left; margin: 16px 0 0; }
.cs-format-methode .cs-carte-horizontale > img { aspect-ratio: 5 / 3; }
.cs-format-methode .cs-carte-horizontale .cs-bouton { text-align: center; }
.cs-format-blog .cs-carte-horizontale { max-width: 940px; }
.cs-cartes-horizontales.cs-format-blog { max-width: var(--cs-largeur); margin: 0 auto; }
.cs-format-blog > :is(h1, h2) { font-size: 30px; text-align: left; }
.cs-format-blog .cs-carte-horizontale > img { aspect-ratio: 4 / 3; }
.cs-format-blog .cs-carte-horizontale-texte h3 { font-size: 22px; }
/* Sur mobile, les cartes du blog vont d'un bord à l'autre, sans cadre, séparées par un filet (Wix). */
.cs-format-blog .cs-carte-horizontale { border: 0; border-bottom: 1px solid #e3e3e3; margin: 0 -20px 32px; }
/* Titre d'article cliquable dans la liste du blog : sans soulignement, comme sur Wix (Task 13). */
.cs-carte-horizontale-texte h3 a { text-decoration: none; }
.cs-carte-horizontale-texte h3 a:hover, .cs-carte-horizontale-texte h3 a:focus-visible { text-decoration: underline; }

/* ---------- Fiche organisme (sans iframe : image de plan + lien d'itinéraire) ---------- */
.cs-fiche-organisme { padding: 20px 0; }
.cs-fiche-organisme-carte { max-width: var(--cs-largeur); margin: 0 auto; background: var(--cs-beige); padding: 20px 20px 30px; }
.cs-fond-beige .cs-fiche-organisme-carte { background: #fff; }
.cs-fiche-organisme-carte > h2 { font-size: 26px; color: var(--cs-texte); text-align: center; margin: 0 0 4px; }
.cs-fiche-organisme-numero { font-size: 14px; text-align: center; margin: 0 0 24px; }
.cs-fiche-organisme-grille { display: flex; flex-direction: column; gap: 24px; }
.cs-fiche-organisme-infos h3 { font-size: 22px; font-style: italic; color: var(--cs-texte); margin: 0 0 4px; }
.cs-fiche-organisme-infos p { font-size: 14px; line-height: 1.9; margin: 0 0 18px; }
.cs-espace { display: inline-block; width: 30px; }
.cs-fiche-organisme-certificat { display: flex; align-items: center; gap: 20px; }
.cs-intertitre { font-family: var(--cs-police-titre); font-style: italic; font-size: 22px; }
.cs-fiche-organisme-certificat img { width: 26px; height: auto; }
.cs-fiche-organisme-plan { margin: 0; }
.cs-fiche-organisme-plan img { width: 100%; }
.cs-fiche-organisme-plan figcaption { font-size: 15px; margin-top: 6px; }
.cs-plan-masque .cs-fiche-organisme-plan { display: none; }
.cs-fiche-organisme-plan figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.cs-attribution { font-size: 12px; color: #6b6b6b; }

/* ---------- Bandeau « Nos formations » ---------- */
.cs-nos-formations { padding: 24px 20px 40px; text-align: center; }
.cs-nos-formations h2 { font-size: 30px; line-height: 1.4; color: var(--cs-texte); margin: 0 0 8px; }
.cs-nos-formations p { font-size: 15px; line-height: 1.8; color: var(--cs-bleu); max-width: 629px; margin: 0 auto 24px; }
.cs-nos-formations .cs-bouton { margin: 0; }

/* ---------- En-tête d'article (blog) ---------- */
.cs-entete-article { padding: 0; }
.cs-entete-article-int { max-width: 940px; margin: 0 auto; background: #fff; padding: 24px 20px 8px; }
/* Méta sur deux lignes (avatar, auteur, puis date · durée), comme Wix sur mobile et dans la liste du blog. */
.cs-entete-article-meta { display: grid; grid-template-columns: 32px auto auto 1fr; gap: 0 8px; align-items: center; font-size: 12px; line-height: 1.5; margin: 0 0 16px; }
.cs-entete-article-meta img { grid-row: 1 / 3; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.cs-entete-article-meta .cs-auteur { grid-column: 2 / -1; }
.cs-entete-article-meta .cs-date { grid-row: 2; grid-column: 2; }
.cs-entete-article-meta .cs-duree { grid-row: 2; grid-column: 3; }
.cs-entete-article-meta .cs-duree::before { content: "·"; margin-right: 8px; }
.cs-entete-article h1 { font-size: 28px; line-height: 1.4; color: var(--cs-texte); margin: 0 0 24px; }
.cs-entete-article figure { margin: 0 0 16px; }
.cs-entete-article figure img { width: 100%; }

/* ---------- Pied de page : contact (module formulaire) ---------- */
.cs-contact { background: var(--cs-noir); padding: 30px 15px 40px; }
.cs-contact h2 { font-size: 24px; line-height: 1.4; color: #fff; text-align: center; margin: 0 0 20px; }
.cs-contact-carte { max-width: 508px; margin: 0 auto; background: #fff; border-radius: 20px; padding: 20px 24px 24px; }
/* Formulaire injecté au service (Task 7) : on ne présume que de label, input, textarea, button. */
.cs-contact form { margin: 0; }
.cs-contact label { display: block; font-size: 14px; line-height: 1.4; color: var(--cs-texte); margin: 0 0 8px; }
.cs-contact input[type="email"], .cs-contact input[type="text"], .cs-contact textarea {
  display: block; width: 100%; margin: 0 0 22px; padding: 8px 10px; border: 1px solid #8f8f8f; border-radius: 0;
  font: 16px/1.4 var(--cs-police-texte); color: var(--cs-texte); background: #fff;
}
.cs-contact input[type="email"], .cs-contact input[type="text"] { height: 42px; }
.cs-contact textarea { min-height: 92px; resize: vertical; }
.cs-contact input[type="checkbox"] { width: 16px; height: 16px; margin: 0 10px 0 0; accent-color: var(--cs-bleu); vertical-align: -3px; }
.cs-contact .cs-case { display: flex; align-items: center; font-size: 16px; margin: 0 0 22px; }
.cs-contact button {
  display: block; width: 100%; height: 42px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--cs-bleu); color: #fff; font: 16px var(--cs-police-texte);
}
.cs-contact button:hover, .cs-contact button:focus-visible { background: var(--cs-bleu-clair); }

/* ---------- Pied de page : bandeau final ---------- */
.cs-pied { background: var(--cs-bleu); color: #fff; padding: 28px 20px 40px; text-align: center; }
.cs-pied p { font-size: 16px; line-height: 1.6; margin: 0 0 6px; }
.cs-pied a { color: #fff; }
.cs-pied-lien a { font-family: var(--cs-police-titre); font-size: 15px; }
.cs-pied-reseaux { display: flex; align-items: center; justify-content: center; gap: 10px; }
.cs-pied-reseaux img { width: 22px; height: 22px; filter: invert(1); }
.cs-pied-reseaux a:last-child { font-size: 18px; }

/* Page introuvable (gabarit de secours de inc/site_rendu.php) */
.cs-introuvable { max-width: var(--cs-largeur); margin: 0 auto; padding: 80px 20px; text-align: center; }

/* ======================= Bureau : 768 px et plus ======================= */
@media (min-width: 768px) {
  body { font-size: 18px; }

  .cs-entete-int { padding: 27px 20px 21px; }
  .cs-entete-logo img { width: 240px; margin: -6px 0 -6px -8px; }
  .cs-entete-burger { display: none; }
  .cs-menu, .cs-menu:target { display: flex; flex-wrap: wrap; justify-content: flex-end; position: static; flex-direction: row; gap: 0 10px; background: none; }
  .cs-menu a { font-size: 18px; line-height: 50px; padding: 0 10px; }
  .cs-menu-fermer { display: none; }

  .cs-bandeau-contact-int { position: relative; min-height: 116px; padding: 0 20px; }
  .cs-reseaux { display: block; position: absolute; right: max(20px, calc(50% - 549px)); top: 30px; text-align: center; }

  .cs-heros { min-height: 563px; padding: 43px 20px 40px; }
  .cs-heros h1 { font-size: 49px; line-height: 1.29; margin: 0 0 37px; }
  .cs-heros p { font-size: 30px; line-height: 33px; }
  .cs-heros .cs-bouton { margin-top: 40px; }

  .cs-annonce { padding: 32px 20px; }
  .cs-annonce p { font-size: 29px; }

  .cs-portrait { flex-direction: row; align-items: flex-start; gap: 0; padding: 36px 20px 60px; }
  .cs-portrait-texte { flex: 0 0 490px; }
  .cs-portrait-carte { padding: 19px 13px 18px 35px; margin: 0 0 22px; text-align: left; }
  .cs-portrait-carte h2 { font-size: 40px; margin: 0; }
  .cs-portrait-carte p { font-size: 21px; }
  .cs-portrait-citation { padding: 0 59px 0 35px; font-size: 20px; }
  .cs-portrait-texte .cs-bouton { margin: 26px 0 0 35px; text-align: left; }
  .cs-portrait-photo { flex: 0 0 410px; max-width: 410px; margin: 35px 0 0 0; padding: 0 34px 54px 35px; }
  .cs-portrait-photo::before { top: 160px; }
  .cs-portrait-photo img { padding: 0; }
  .cs-image-gauche.cs-portrait { flex-direction: row-reverse; justify-content: flex-end; }
  .cs-image-gauche .cs-portrait-photo { margin-right: 80px; }

  .cs-titre-bandeau { padding: 30px 20px 31px; }
  .cs-titre-bandeau :is(h1, h2) { font-size: 40px; line-height: 52px; }
  .cs-titre-bandeau.cs-fond-sable { padding: 18px 46px 15px; margin-top: 21px; margin-bottom: 20px; }
  .cs-titre-bandeau.cs-fond-sable :is(h1, h2) { font-size: 39px; line-height: 55px; padding: 0; }

  .cs-titre-page { padding: 25px 20px 32px; }
  .cs-titre-page h1 { font-size: 60px; line-height: 78px; margin: 0; }
  .cs-chapeau-grand p { font-size: 30px; line-height: 33px; }
  .cs-chapeau-normal p { font-size: 18px; line-height: 28.8px; }
  .cs-titre-page.cs-gauche { padding: 84px 20px 24px; }
  .cs-navigation { padding: 84px 20px 48px; }
  .cs-texte + .cs-navigation { padding-top: 28px; }
  .cs-navigation + .cs-titre-page.cs-gauche { padding-top: 0; }
  .cs-navigation:has(+ .cs-titre-page) { padding-top: 22px; }
  .cs-titre-page.cs-gauche h1 { font-size: 46px; line-height: 64px; margin: 0 0 18px; }
  .cs-titre-page.cs-gauche.cs-chapeau-grand p, .cs-titre-page.cs-gauche.cs-chapeau-normal p { font-size: 20px; line-height: 32px; max-width: none; }

  .cs-cartes-picto { padding: 0 0 112px; }
  .cs-cartes-picto-grille { grid-template-columns: repeat(5, 1fr); border-top: 0; border-left: 1px solid var(--cs-bleu-clair); border-bottom: 1px solid var(--cs-bleu-clair); margin-bottom: 20px; }
  .cs-colonnes-4 .cs-cartes-picto-grille { grid-template-columns: repeat(4, 1fr); }
  .cs-colonnes-3 .cs-cartes-picto-grille { grid-template-columns: repeat(3, 1fr); }
  .cs-carte-picto { min-height: 302px; padding: 22px 30px 30px; border-bottom: 0; border-right: 1px solid var(--cs-bleu-clair); }
  .cs-carte-picto img { width: 56px; height: 56px; margin-bottom: 20px; }
  .cs-carte-picto p { font-size: 18px; line-height: 23px; max-width: 174px; }

  .cs-citation-fond { padding: 71px 20px 94px; background: linear-gradient(transparent 0 180px, var(--cs-bleu) 180px); }
  .cs-citation-fond-image { height: 180px !important; object-position: center bottom; }
  .cs-citation-fond blockquote p { font-size: 50px; line-height: 65px; margin: 0 0 48px; }
  .cs-citation-fond .cs-bouton { max-width: 773px; }

  .cs-temoignages { padding: 0 0 60px; }
  .cs-raccord-sombre { background: linear-gradient(var(--cs-bleu) 0 120px, transparent 120px); }
  .cs-temoignages-carte { grid-template-columns: repeat(3, 270px); column-gap: 156px; padding: 58px 0 70px 78px; }
  .cs-temoignage { max-width: 270px; }
  .cs-temoignage::before { width: 50px; height: 36px; margin: 0 0 18px; }
  .cs-temoignage blockquote p { font-size: 18px; line-height: 28.8px; }
  .cs-temoignage figcaption { font-size: 26px; line-height: 34px; }

  .cs-instagram { padding: 116px 20px 60px; min-height: 784px; }
  .cs-instagram h2 { font-size: 40px; margin: 0 0 38px; }

  .cs-logos { padding: 32px 47px 28px; }
  .cs-logos h2 { font-size: 49px; line-height: 68.6px; margin: 0 0 42px; }
  .cs-logos-liste { flex-direction: row; justify-content: space-between; align-items: center; max-width: 1346px; margin: 0 auto; }
  .cs-logos-liste img { width: 186px; height: 186px; }

  .cs-deux-colonnes-logo { padding: 25px 20px 80px; }
  .cs-deux-colonnes-logo h2 { font-size: 40px; margin: 0 0 16px; }
  .cs-deux-colonnes-logo-grille { grid-template-columns: repeat(2, 360px); column-gap: 191px; }
  .cs-colonne-logo { display: grid; grid-template-rows: 213px auto; }
  .cs-colonne-logo img { align-self: center; max-height: 203px; margin-bottom: 0; }
  .cs-colonne-logo p { font-size: 16px; line-height: 22.4px; }

  .cs-cta-photo { min-height: 527px; padding: 82px 20px 74px; }
  .cs-cta-photo-carte { padding: 64px 70px 60px; }
  .cs-cta-photo-carte h2 { font-size: 32px; line-height: 41px; margin: 0 0 20px; }
  .cs-cta-photo-carte p { font-size: 16px; line-height: 28.8px; margin-bottom: 40px; }

  .cs-texte { padding: 48px 20px; }
  .cs-texte h2 { font-size: 28px; line-height: 39px; }
  .cs-texte h3 { font-size: 22px; line-height: 31px; }
  .cs-texte p, .cs-texte li { font-size: 18px; line-height: 27px; }
  .cs-presentation-carte .cs-texte-int { padding: 8px 100px 60px; }
  .cs-lettre .cs-lettre-bandeau, .cs-lettre .cs-lettre-contact p { font-size: 18px; }
  .cs-lettre h3 { font-size: 22px; line-height: 25px; }

  .cs-texte-image { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 40px; padding: 43px 177px 50px 165px; }
  .cs-texte-image-texte { flex: 0 1 400px; }
  .cs-texte-image-texte h2 { font-size: 40px; margin: 0 0 28px; }
  .cs-texte-image-texte p { font-size: 18px; line-height: 28.8px; }
  .cs-texte-image-image { flex: 0 0 426px; margin: -24px 0 0; order: 0; }
  .cs-image-gauche.cs-texte-image { flex-direction: row-reverse; padding: 45px 165px 57px 182px; }
  .cs-image-gauche .cs-texte-image-image { margin: 0; }
  .cs-cadre-beige .cs-texte-image-image::before { left: -37px; right: -27px; top: 64%; bottom: -35px; }
  .cs-cadre-beige.cs-image-gauche .cs-texte-image-image::before { left: -32px; right: -32px; top: -45px; bottom: 16%; }

  .cs-carte-deux-colonnes-carte { grid-template-columns: 434px 490px; justify-content: space-between; padding: 31px 148px 80px 103px; }
  .cs-carte-deux-colonnes h3 { font-size: 30px; line-height: 42px; margin: 1em 0 0; }
  .cs-carte-deux-colonnes p, .cs-carte-deux-colonnes li { font-size: 18px; line-height: 25.2px; }
  .cs-carte-deux-colonnes img { margin: 47px 0 22px; aspect-ratio: auto; }
  .cs-carte-deux-colonnes .cs-colonne + .cs-colonne { order: 0; }
  .cs-carte-deux-colonnes .cs-colonne > img:first-child { margin-top: 26px; }

  .cs-titre-texte-sombre { padding: 23px 20px 56px; min-height: 457px; }
  .cs-titre-texte-sombre-int { flex-direction: row; gap: 72px; padding-left: 0; }
  .cs-titre-texte-sombre h2 { flex: 0 0 373px; font-size: 56px; line-height: 73px; margin-top: 60px; }
  .cs-titre-texte-sombre-texte p, .cs-titre-texte-sombre-texte li { font-size: 18px; line-height: 25.2px; }
  .cs-titre-texte-sombre-texte p { margin: 0 0 25px; }

  .cs-cartes-horizontales { padding: 49px 20px 60px; }
  .cs-cartes-horizontales > :is(h1, h2) { font-size: 56px; line-height: 78px; margin: 0 0 58px; }
  .cs-carte-horizontale { flex-direction: row; align-items: stretch; margin-bottom: 58px; }
  .cs-format-methode .cs-carte-horizontale > img { flex: 0 0 269px; width: 269px; height: 269px; aspect-ratio: 1; padding: 3px; }
  .cs-format-methode .cs-carte-horizontale .cs-bouton { text-align: left; }
  .cs-carte-horizontale-texte { padding: 49px 36px 20px 36px; flex: 1; }
  .cs-carte-horizontale-texte p { font-size: 16px; line-height: 25.6px; }
  .cs-format-blog .cs-carte-horizontale { margin: 0 auto 32px; border: 1px solid #e3e3e3; }
  /* Titre limité à trois lignes avec points de suspension, comme la liste Wix. */
  .cs-format-blog .cs-carte-horizontale-texte h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
  .cs-format-blog .cs-carte-horizontale > img { flex: 0 0 454px; width: 454px; height: 341px; }
  .cs-format-blog .cs-carte-horizontale-texte { padding: 26px 36px 20px; }
  .cs-format-blog .cs-carte-horizontale-texte h3 { font-size: 28px; line-height: 1.3; }
  .cs-cartes-horizontales.cs-format-blog { padding: 40px 20px 60px; }
  .cs-format-blog > :is(h1, h2) { font-size: 36px; line-height: 50px; margin: 40px 0 50px 20px; }

  .cs-fiche-organisme { padding: 21px 0 10px; }
  .cs-fiche-organisme-carte { padding: 24px 13px 30px 85px; }
  .cs-fiche-organisme-carte > h2 { font-size: 40px; line-height: 56px; }
  .cs-fiche-organisme-numero { font-size: 16px; margin-bottom: 47px; }
  .cs-fiche-organisme-grille { flex-direction: row; justify-content: space-between; gap: 40px; }
  .cs-fiche-organisme-infos { flex: 0 0 300px; }
  .cs-fiche-organisme-infos h3 { font-size: 26px; line-height: 36px; margin: 0 0 8px; }
  .cs-fiche-organisme-infos p { font-size: 16px; line-height: 28.8px; margin: 0 0 20px; }
  .cs-intertitre { font-size: 26px; }
  .cs-fiche-organisme-certificat img { width: 33px; }
  .cs-fiche-organisme-plan { flex: 0 0 470px; margin-top: 9px; }

  .cs-nos-formations { padding: 32px 20px 46px; }
  .cs-nos-formations h2 { font-size: 56px; line-height: 78.4px; margin: 0 0 8px; }
  .cs-nos-formations p { font-size: 16px; line-height: 28.8px; margin-bottom: 30px; }

  .cs-entete-article-int { padding: 50px 100px 10px; }
  /* En-tête d'article sur bureau : méta sur une seule ligne. */
  .cs-entete-article .cs-entete-article-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; margin-bottom: 18px; }
  .cs-entete-article .cs-entete-article-meta span + span::before { content: "·"; margin-right: 10px; }
  .cs-entete-article h1 { font-size: 40px; line-height: 56px; margin-bottom: 47px; }

  .cs-contact { padding: 42px 20px 60px; }
  .cs-contact h2 { font-size: 40px; line-height: 56px; margin: 0 0 24px; }

  .cs-pied { padding: 25px 20px 70px; }
}

/* Texte blanc sur les fonds sombres : en fin de feuille pour l'emporter sur les couleurs propres aux blocs. */
.cs-fond-sombre :is(h1, h2, h3, h4, p, li, a, figcaption),
.cs-fond-anthracite :is(h1, h2, h3, h4, p, li, a, figcaption) { color: #fff; }

/* ---------- Formulaire de contact : retour, champs pièges ---------- */
.cs-contact .cs-retour { margin: 0 0 18px; padding: 10px 12px; font-size: 16px; line-height: 1.4; background: #eef4ee; color: var(--cs-texte); border-left: 4px solid var(--cs-anis); }
.cs-contact .cs-retour[hidden] { display: none; }
.cs-contact .cs-retour-erreur { background: #fbeee9; border-left-color: #DE541E; }
.cs-contact .cs-piege { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
