/* Opti-Diag — mise en forme du site (couleurs pleines, ni ombre ni transparence). */
:root {
	--od-turquoise: #34c2a8;
	--od-turquoise-fonce: #1c7f6d;
	--od-turquoise-clair: #eef8f5;
	--od-bleu: #2a75ad;
	--od-bleu-fonce: #1f5b88;
	--od-nuit: #212b35;
	--od-texte: #2b3640;
	--od-gris: #5b6b77;
	--od-filet: #dbe5e9;
	--od-fond: #f3f6f8;
	--od-largeur: 1140px;
	--od-lecture: 820px;
}

/* ---------- base ---------- */
body.od { margin: 0; background: #fff; color: var(--od-texte); font-family: 'Montserrat', Arial, sans-serif; font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
.od *, .od *::before, .od *::after { box-sizing: border-box; }
.od img { max-width: 100%; height: auto; }
.od a { color: var(--od-bleu); text-underline-offset: 2px; }
.od a:hover { color: var(--od-bleu-fonce); }
.od h1, .od h2, .od h3, .editor-styles-wrapper h1, .editor-styles-wrapper h2, .editor-styles-wrapper h3 {
	font-family: 'Raleway', Arial, sans-serif; color: var(--od-nuit); line-height: 1.25; font-weight: 600; margin: 0 0 .6em;
}
.od h1, .editor-styles-wrapper h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 700; }
.od h2, .editor-styles-wrapper h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin-top: 1.6em; }
.od h3, .editor-styles-wrapper h3 { font-size: 1.22rem; margin-top: 1.2em; }
.od h2:first-child, .od h3:first-child { margin-top: 0; }
.od h3 a { color: var(--od-nuit); text-decoration: none; }
.od h3 a:hover { color: var(--od-bleu); text-decoration: underline; }
.od p, .od li { margin: 0 0 1em; }
.od ul, .od ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.od li { margin-bottom: .45em; }
.od strong { font-weight: 600; color: var(--od-nuit); }
.od-saut { position: absolute; left: -9999px; top: 0; background: var(--od-nuit); color: #fff !important; padding: 10px 16px; z-index: 100; }
.od-saut:focus { left: 12px; top: 12px; }
:target { scroll-margin-top: 110px; }

/* ---------- entête ---------- */
.od-entete-site { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--od-filet); }
.admin-bar .od-entete-site { top: 32px; }
.od-entete-int { max-width: var(--od-largeur); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.od-logo { display: block; line-height: 0; margin-right: auto; }
.od-logo img { width: 170px; height: auto; }
.od-nav { display: flex; align-items: center; gap: 28px; }
.od .od-menu, .od .od-menu .sub-menu, .od .od-pied ul { margin: 0; }
.od .od-menu li, .od .od-pied li { margin-top: 0; }
.od-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.od-menu li { position: relative; margin: 0; }
.od .od-menu .current-menu-item > a[href*="#"] { color: var(--od-nuit); }
.od-menu a { display: block; padding: 10px 0; color: var(--od-nuit); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.od-menu a:hover, .od-menu .current-menu-item > a, .od-menu .current-page-ancestor > a { color: var(--od-turquoise-fonce); }
.od-menu .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: -16px; top: 100%; min-width: 270px; background: #fff; border: 1px solid var(--od-filet); border-top: 3px solid var(--od-turquoise); display: none; }
.od-menu li:hover > .sub-menu, .od-menu li:focus-within > .sub-menu { display: block; }
.od-menu .sub-menu a { padding: 9px 16px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 15px; }
.od-bouton-entete { background: var(--od-bleu); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 14px; padding: 11px 18px; border-radius: 6px; white-space: nowrap; }
.od-bouton-entete:hover { background: var(--od-bleu-fonce); }
.od-menu-bouton { display: none; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--od-filet); border-radius: 6px; padding: 9px 14px; font: 600 14px 'Montserrat', Arial, sans-serif; color: var(--od-nuit); cursor: pointer; }
.od-menu-icone, .od-menu-icone::before, .od-menu-icone::after { display: block; width: 18px; height: 2px; background: var(--od-nuit); position: relative; content: ''; }
.od-menu-icone::before { position: absolute; top: -6px; }
.od-menu-icone::after { position: absolute; top: 6px; }

@media (max-width: 980px) {
	.od-menu-bouton { display: inline-flex; }
	.od-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--od-filet); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
	.od-nav.od-ouvert { display: flex; }
	.od-entete-int { position: relative; }
	.od-menu { flex-direction: column; gap: 0; }
	.od-menu > li { border-bottom: 1px solid var(--od-filet); }
	.od-menu a { padding: 13px 0; }
	.od-menu .sub-menu { display: block; position: static; border: 0; padding: 0 0 8px 14px; min-width: 0; }
	.od-menu .sub-menu a { padding: 7px 0; }
	.od-bouton-entete { margin-top: 16px; text-align: center; }
	.admin-bar .od-entete-site { top: 0; }
}

/* ---------- sections pleine largeur ---------- */
.od-contenu > .alignfull { width: 100%; padding: 72px 24px; margin: 0; }
.od-section > *, .od-entete > *, .od-appel > * { max-width: var(--od-largeur); margin-left: auto; margin-right: auto; }
.od-section > :is(p, ul, ol, h2, h3, .wp-block-quote, .od-sommaire, .od-encadre) {
	max-width: var(--od-lecture); margin-left: max(0px, calc((100% - var(--od-largeur)) / 2)); margin-right: auto;
}
.od-section--gris { background: var(--od-fond); }
.od-section--legal > * { max-width: var(--od-lecture) !important; margin-left: auto !important; margin-right: auto !important; }
.od-section--contact { background: var(--od-turquoise-clair); }

/* entête de page : texte à gauche, photo à droite */
.od-entete { background: var(--od-turquoise-clair); padding-top: 56px !important; padding-bottom: 56px !important; }
.od-entete .wp-block-columns { gap: 48px; margin-bottom: 0; }
.od-entete .wp-block-column:first-child { flex-basis: 56% !important; }
.od-entete .wp-block-column:last-child { flex-basis: 44% !important; }
.od-entete h1 { margin-bottom: .4em; }
.od-photo-entete { margin: 0; }
.od-photo-entete img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.od-surtitre { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: var(--od-turquoise-fonce); margin-bottom: .8em !important; }
.od-intro { font-size: 1.14rem; color: #3f4d58; }
.od-petit { font-size: .92rem; color: var(--od-gris); }
.od-centre { text-align: center; margin-left: auto !important; margin-right: auto !important; margin-top: 1.6em !important; }
.od-date { color: var(--od-gris); font-size: .92rem; }
.od-photo { margin: 0; }
.od-photo img { width: 100%; border-radius: 12px; display: block; }

/* cartes */
.od-cartes { gap: 28px; margin: 28px auto 8px; }
.od-carte { background: #fff; border: 1px solid var(--od-filet); border-top: 4px solid var(--od-turquoise); border-radius: 10px; padding: 26px 26px 10px; height: 100%; }
.od-carte > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.od-carte h3 { margin-top: 0; }
.od-carte ul { padding-left: 1.1em; }
.od-section--gris .od-carte { background: #fff; }

/* cinq piliers */
.od-piliers { gap: 22px; margin-top: 30px; text-align: center; }
.od-piliers .wp-block-column { background: #fff; border: 1px solid var(--od-filet); border-radius: 10px; padding: 24px 14px 8px; }
.od-icone { margin: 0 auto 10px !important; }
.od-icone img { width: 64px; height: 64px; }
.od-piliers h3 { margin: 0 0 .3em; font-size: 1.1rem; }
.od-piliers p { font-size: .95rem; color: var(--od-gris); }

/* listes */
.od-coches { list-style: none; padding-left: 0 !important; }
.od-coches li { position: relative; padding-left: 34px; }
.od-coches li::before { content: ''; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%; background: var(--od-turquoise); }
.od-coches li::after { content: ''; position: absolute; left: 7px; top: calc(.32em + 4px); width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.od-etapes { list-style: none; padding-left: 0 !important; counter-reset: od-etape; }
.od-etapes li { counter-increment: od-etape; position: relative; padding: 4px 0 10px 58px; min-height: 44px; }
.od-etapes li::before { content: counter(od-etape); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--od-turquoise); color: var(--od-nuit); font: 700 18px/40px 'Raleway', Arial, sans-serif; text-align: center; }

/* sommaire et encadrés */
.od-sommaire { background: var(--od-fond); border-left: 4px solid var(--od-turquoise); border-radius: 0 8px 8px 0; padding: 20px 24px 6px; margin-bottom: 40px !important; }
.od-sommaire > * { margin-left: 0 !important; }
.od-sommaire p { margin-bottom: .5em; }
.od-sommaire ul { columns: 2; column-gap: 32px; }
.od-sommaire li { break-inside: avoid; }
.od-encadre { background: var(--od-turquoise-clair); border-radius: 8px; padding: 16px 20px; margin-top: 2em !important; }

/* témoignages */
.od-temoignage { padding-top: 22px; }
.od-portrait { margin: 0 0 16px !important; }
.od-portrait img { width: 100%; height: 230px; object-fit: cover; object-position: 50% 30%; border-radius: 8px; display: block; background: #fff; }
.od-citation { border: 0; margin: 0; padding: 0; }
.od-citation p { font-size: .98rem; }
.od-citation cite { display: block; font-style: normal; font-size: .9rem; color: var(--od-gris); margin-bottom: 1em; }

/* boutons */
.od .wp-block-buttons { gap: 12px; margin: 1.4em 0 .4em; }
.od .wp-block-button__link { background: var(--od-bleu); color: #fff; border: 2px solid var(--od-bleu); border-radius: 6px; padding: 12px 22px; font-weight: 600; font-size: 16px; text-decoration: none; }
.od .wp-block-button__link:hover { background: var(--od-bleu-fonce); border-color: var(--od-bleu-fonce); color: #fff; }
.od .is-style-outline .wp-block-button__link { background: #fff; color: var(--od-bleu); }
.od .is-style-outline .wp-block-button__link:hover { background: var(--od-bleu); color: #fff; }

/* bandeau d'appel */
.od-appel { background: var(--od-nuit); color: #e8eef1; text-align: center; }
.od-appel h2 { color: #fff; margin-top: 0; }
.od-appel p { max-width: 640px !important; margin-left: auto !important; margin-right: auto !important; }
.od-appel .wp-block-buttons { justify-content: center; }
.od .od-appel .wp-block-button__link { background: var(--od-turquoise); border-color: var(--od-turquoise); color: var(--od-nuit); }
.od .od-appel .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--od-nuit); }
.od .od-appel .is-style-outline .wp-block-button__link { background: var(--od-nuit); border-color: #fff; color: #fff; }
.od .od-appel .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--od-nuit); }

/* pied de page */
.od-pied { background: var(--od-fond); border-top: 1px solid var(--od-filet); font-size: 15px; }
.od-pied-int { max-width: var(--od-largeur); margin: 0 auto; padding: 48px 24px 24px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.od-pied-logo { width: 160px; margin-bottom: 12px; }
.od-pied-titre { font-weight: 700; color: var(--od-nuit); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.od-pied ul { list-style: none; padding: 0; margin: 0; }
.od-pied li { margin-bottom: .5em; }
.od-pied a { color: var(--od-texte); text-decoration: none; }
.od-pied a:hover { color: var(--od-bleu); text-decoration: underline; }
.od-pied-bas { background: var(--od-nuit); color: #cfd8de; text-align: center; padding: 14px 24px; font-size: 14px; }
.od-pied-bas p { margin: 0; }
.od-pied-bas a { color: #fff; }

/* téléphone et tablette */
@media (max-width: 781px) {
	body.od { font-size: 16px; }
	.od-contenu > .alignfull { padding: 48px 20px; }
	.od-entete { padding-top: 32px !important; padding-bottom: 40px !important; }
	.od-entete .wp-block-column { flex-basis: 100% !important; }
	.od-sommaire ul { columns: 1; }
	.od-pied-int { grid-template-columns: 1fr; gap: 20px; }
	.od-entete-int { padding: 12px 20px; }
	.od-logo img { width: 140px; }
	.od-piliers .wp-block-column { padding-bottom: 4px; }
}
@media (min-width: 782px) and (max-width: 1100px) {
	.od-piliers { flex-wrap: wrap !important; }
	.od-piliers .wp-block-column { flex-basis: calc(33.33% - 16px) !important; flex-grow: 0; }
}
