/*
 * Gabarit « Consultation spécialisée » (templates/page-consultation-specialisee.php).
 *
 * Ces règles étaient imprimées dans une balise <style> au milieu du <body>, ce que le
 * HTML n'autorise pas (validateur W3C, RGAA 8.2, audit du 29/10/2026). Elles sont
 * chargées dans le <head>, en fin de cascade (functions.php, priorité 99), pour garder
 * leur précédence d'origine.
 *
 * Pastille « Important » : #D13556, le rose-rouge de la maquette (#F9516F) assez foncé
 * pour atteindre 4,82:1 sous le libellé blanc (3,26:1 avant, RGAA 3.2). Même teinte que
 * la pastille du bloc « Important » (chru-blocks-mat-override.css).
 */
.mat-cs { background:#fff; }
.mat-cs .mat-container { max-width:1280px; margin:0 auto; padding:0 32px; }

/* Hero */
.mat-cs-hero { padding:48px 0 0; }
.mat-cs-hero .mat-bc { color:var(--mat-rose-blush); font-size:16px; font-weight:600; text-align:center; margin-bottom:24px; }
.mat-cs-hero__title { font-family:"Coniferous", "Caveat", cursive; font-weight:600; font-size:46px; line-height:49px; color:var(--mat-bleu-fonce); text-align:center; margin:0 0 40px; }
.mat-cs-hero__image { display:block; width:100%; height:280px; object-fit:cover; border-radius:30px; }

/* Intro 2 cols */
.mat-cs-intro { padding:64px 0 0; }
.mat-cs-intro__grid { display:grid; grid-template-columns: minmax(0, 1fr) 580px; gap:48px; align-items:start; }
.mat-cs-intro__text { font-size:16px; line-height:1.65; color:var(--mat-bleu-fonce); font-weight:400; }
.mat-cs-intro__text p { margin:0 0 14px; }
.mat-cs-intro__text strong { font-weight:700; }

/* Carte RDV : CSS dans assets/css/blocs-reutilisables.css (23/09/2026,
   élément partagé avec le bloc « Encart pratique »). */

/* Bandeau niveau, pastille et H2 communs : CSS dans
   assets/css/blocs-reutilisables.css (éléments partagés avec les blocs). */


/* Principes (titre/pill centrés, texte aligné à gauche — retour client) */
.mat-cs-principes { padding:88px 0 64px; text-align:center; }
/* `.mat-cs-principes__desc` : CSS dans assets/css/blocs-reutilisables.css. */

/* Card "dans le cadre de" */
.mat-cs-cadre { padding:0 0 64px; }
/* Carte « dans le cadre de » : CSS dans assets/css/blocs-reutilisables.css. */

/* Déroulé séance (timeline) */
.mat-cs-deroule { position:relative; background:#EFF6F7; padding:88px 0 100px; border-radius:30px 30px 0 0; }
/* Décors dans les MARGES de la section : le déroulé fait 890 centré dans un
   conteneur de 1392, il reste 251px de chaque côté. Ancrés à la section et
   en pourcentage de sa hauteur, jamais à un pixel depuis le haut de la page
   (ils s'y décalaient à la première ligne de contenu ajoutée). */
.mat-cs-deroule__deco { position:absolute; pointer-events:none; z-index:2; }
.mat-cs-deroule__deco img { display:block; width:100%; height:auto; }
.mat-cs-deroule__deco--haut { left:50px;  top:60px;  width:145px; }
.mat-cs-deroule__deco--g    { left:40px;  top:42%;   width:193px; }
.mat-cs-deroule__deco--d    { right:40px; top:62%;   width:202px; }
/* La branche est ancrée au bloc « Important », sur son coin haut droit. */
.mat-cs-deroule__fin { position:relative; max-width:890px; margin:0 auto; }
.mat-cs-deroule__deco--bas { right:0; top:-98px; width:136px; }
@media (max-width: 1200px) { .mat-cs-deroule__deco { display:none; } }

.mat-cs-deroule__head { text-align:center; margin-bottom:48px; max-width:760px; margin-left:auto; margin-right:auto; }
.mat-cs-deroule__intro { color:var(--mat-bleu-fonce); font-size:16px; font-weight:600; margin:0; }

/* Timeline — calquée sur .mat-atl-tl (atelier) : grid 2 cols, body card 22/28 radius 18, pas de ligne verticale */
/* La timeline est ecrite UNE fois dans `assets/css/maternite.css`
   (« LE DEROULE (timeline) — UN SEUL COMPOSANT, TROIS SURFACES »,
   21/09/2026, valeurs relevees sur le Figma de cette page meme). Les
   regles qui vivaient ici en gagnaient sur elle, puisque servies apres :
   elles ont ete retirees. Ne pas les remettre. */

/* Important — sur fond blanc pour trancher avec le bandeau bleu (retour client) */
/* Dans la carte blanche : aligné sur les cartes du déroulé (62 = largeur du
   rail), sans arrondi, comme la maquette (`bloc-mention-obligatoire`). */
/* Aligné sur les cartes du déroulé (62 = largeur du rail + gouttière). */
.mat-cs-important__card { background:#FDE6EA; border-radius:0; padding:24px 32px; margin:56px 0 0 62px; }
@media (max-width: 720px) { .mat-cs-important__card { margin-left:0; } }
.mat-cs-important__pill { display:inline-flex; align-items:center; gap:6px; background:#D13556; color:#fff; border-radius:30px; padding:5px 14px; font-size:15px; font-weight:600; margin:0 0 14px; }
.mat-cs-important__body { color:#B40A29; font-size:16px; font-weight:600; line-height:1.45; }
.mat-cs-important__body strong { font-weight:700; }
.mat-cs-important__body p { margin:0 0 8px; }

/* CTA bas */
.mat-cs-cta { background:#EFF6F7; padding:0 0 64px; text-align:center; }
.mat-cs-cta-pill { display:inline-flex; align-items:center; gap:8px; background:var(--mat-vert-bleu); color:var(--mat-bleu-fonce); border-radius:30px; padding:12px 36px; font-weight:700; font-size:15px; text-decoration:none; transition:transform .15s ease, box-shadow .15s ease; }
.mat-cs-cta-pill:hover { transform:translateY(-2px); box-shadow:0 6px 18px rgba(20,68,107,.15); }

/* Pages reliées */
/* Le contenu de la section est rendu par `maternite_render_related_pages()`
   depuis le 14/08/2026 : ce gabarit ne garde que le fond de section, les
   styles `.mat-related__*` vivent dans `blocs-reutilisables.css`. Les anciens
   `.mat-cs-related__card|head|body|grid` ont ete supprimes avec le markup
   qui les portait. */
/* Décors végétaux (21/09/2026). Hors flux, non cliquables, et masqués sous
   1200px : à cette largeur ils passeraient sur le texte. `overflow-x: clip`
   (et pas `hidden`) pour ne créer aucun scroll horizontal sans casser un
   éventuel `position: sticky`. */
.mat-cs--deco { position:relative; overflow-x:clip; }
/* z-index 2 : les sections colorées (déroulé, renvois) sont en z-index 1 et
   masqueraient sinon le décor — mesuré le 21/09, la fleur jaune tombait
   derrière l'aplat bleu-vert du déroulé. Ils restent collés aux bords,
   hors du contenu centré, donc jamais sur du texte. */
.mat-cs__leaf { position:absolute; pointer-events:none; z-index:2; }
.mat-cs__leaf img { display:block; width:100%; height:auto; }
.mat-cs__leaf--tr { right:-22px; top:160px;  width:96px; }
/* `--ml` et `--br` ont été retirés le 21/09 : ces deux décors sont passés
   sur la carte blanche du déroulé, où la maquette les place vraiment, et
   ils y sont ancrés à la carte plutôt qu'à un `top` en pixels depuis le
   haut de la page (qui se décalait à chaque changement de contenu). */
@media (max-width: 1200px) { .mat-cs__leaf { display:none; } }
.mat-cs-hero, .mat-cs-intro, .mat-cs-niveau, .mat-cs-principes,
.mat-cs-cadre, .mat-cs-deroule, .mat-cs-cta,
.mat-cs-related { position:relative; z-index:1; }

.mat-cs-related { background:#EFF6F7; padding:0 0 88px; }
.mat-cs-related .mat-related { margin-bottom:0; }

/* Responsive */
@media (max-width: 1024px) {
	.mat-cs-intro__grid { grid-template-columns:1fr; }
}
@media (max-width: 720px) {
	.mat-cs .mat-container { padding:0 20px; }
	.mat-cs-hero__title { font-size:34px; line-height:38px; }
	.mat-cs-hero__image { height:200px; }
}

