/* Éthanéo 2.0 — contenus (blocs WordPress). Chargé sur le site et dans l'éditeur. */
:root { --nuit: #102D39; --vert: #A6D94F; --vert-fonce: #4E7A12; --encre: #1C2B31; --gris: #5A6A70; --sable: #F4F3EE; --trait: #E1E4DE; --rayon: 6px; }

/* Largeurs : texte 720 px, large 1140 px, pleine largeur */
.contenu > *:not(article), .contenu article > *:not(.page-entete):not(.article-entete):not(.article-image):not(.article-bandeau) { max-width: 900px; margin-left: auto; margin-right: auto; }
.contenu .alignwide { max-width: 1200px !important; }
.contenu .alignfull { max-width: none !important; margin-left: -1.25rem !important; margin-right: -1.25rem !important; }
.editor-styles-wrapper { color: var(--encre); font: 1.125rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

/* Titres et texte */
.contenu h1, .editor-styles-wrapper h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -.02em; color: var(--nuit); margin-top: 0; margin-bottom: 1rem; }
.contenu h2, .editor-styles-wrapper h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.2; letter-spacing: -.01em; color: var(--nuit); margin-top: 2.8rem; margin-bottom: .9rem; }
.contenu h3, .editor-styles-wrapper h3 { font-size: 1.2rem; line-height: 1.3; color: var(--nuit); margin-top: 2rem; margin-bottom: .5rem; }
.contenu p, .contenu li { margin-top: 0; }
.contenu p { margin-bottom: 1.1rem; }
.contenu ul, .contenu ol { padding-left: 1.3rem; margin-top: 0; margin-bottom: 1.3rem; }
.contenu li { margin-bottom: .45rem; }
.contenu strong { color: var(--nuit); }
.has-nuit-color { color: var(--nuit) !important; } .has-vert-color { color: var(--vert) !important; } .has-blanc-color { color: #fff !important; }
.has-nuit-background-color { background-color: var(--nuit) !important; } .has-sable-background-color { background-color: var(--sable) !important; } .has-blanc-background-color { background-color: #fff !important; }
.has-petit-font-size { font-size: .875rem !important; } .has-grand-font-size { font-size: 1.25rem !important; } .has-tres-grand-font-size { font-size: 1.75rem !important; }

/* Chapô */
.is-style-chapo { font-size: 1.25rem; line-height: 1.55; color: #33464d; }

/* Boutons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; margin: 1.5rem auto; }
.wp-block-button__link { display: inline-block; background: var(--vert); color: var(--nuit) !important; border-radius: var(--rayon); padding: .85rem 1.35rem; font-weight: 700; text-decoration: none; line-height: 1.2; }
.wp-block-button__link:hover { background: #95c93c; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 2px solid currentColor; color: var(--nuit) !important; padding: .75rem 1.25rem; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--sable); }

/* Images */
.wp-block-image { margin: 2rem auto; }
.wp-block-image img { display: block; }
.wp-block-image figcaption { font-size: .85rem; color: var(--gris); margin-top: .5rem; }
.wp-block-image.is-style-arrondi img { border-radius: 10px; }

/* Colonnes */
.wp-block-columns { display: flex; gap: 2rem; margin: 2rem auto; }
.wp-block-column { flex: 1; min-width: 0; }
.wp-block-column > :first-child { margin-top: 0; }
.wp-block-columns.are-vertically-aligned-center { align-items: center; }
@media (max-width: 780px) { .wp-block-columns { flex-direction: column; gap: 1.2rem; } }

/* Chiffres clés : une ligne de repères séparés par des traits */
.wp-block-columns.is-style-chiffres { gap: 0; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.is-style-chiffres > .wp-block-column { padding: 1.3rem 1.5rem; border-left: 1px solid var(--trait); }
.is-style-chiffres > .wp-block-column:first-child { border-left: 0; padding-left: 0; }
.is-style-chiffres p { margin: 0; color: var(--gris); font-size: .95rem; }
.is-style-chiffres p strong { display: block; font-size: 1.6rem; line-height: 1.2; color: var(--nuit); margin-bottom: .2rem; }
@media (max-width: 780px) { .is-style-chiffres > .wp-block-column { border-left: 0; border-top: 1px solid var(--trait); padding: 1rem 0; } .is-style-chiffres > .wp-block-column:first-child { border-top: 0; } }

/* Encadré, note, bandeau */
.wp-block-group.is-style-encadre { background: var(--sable); border-left: 4px solid var(--vert); padding: 1.4rem 1.6rem; border-radius: 0 var(--rayon) var(--rayon) 0; margin: 2rem auto; }
.is-style-encadre > :last-child { margin-bottom: 0; }
.is-style-encadre h2, .is-style-encadre h3 { margin-top: 0; }
.wp-block-group.is-style-note { font-size: .9rem; color: var(--gris); border-top: 1px solid var(--trait); padding-top: 1rem; margin: 2.5rem auto 0; }
.wp-block-group.is-style-bandeau { background: var(--nuit); color: #e3eaec; padding: 3rem 1.5rem; margin: 3.5rem auto; }
.contenu .wp-block-group.is-style-bandeau.alignfull { padding-left: max(1.25rem, calc((100% - 1200px) / 2)); padding-right: max(1.25rem, calc((100% - 1200px) / 2)); }
.is-style-bandeau > * { max-width: 900px; margin-left: auto; margin-right: auto; }
.is-style-bandeau > .alignwide { max-width: 1200px; }
.is-style-bandeau h2, .is-style-bandeau h3, .is-style-bandeau strong { color: #fff; }
.is-style-bandeau h2 { margin-top: 0; }
.is-style-bandeau a:not(.wp-block-button__link) { color: #fff; }
.is-style-bandeau .wp-block-button.is-style-outline .wp-block-button__link { color: #fff !important; }
.is-style-bandeau .wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.08); }

/* Listes : étapes numérotées et coches */
ol.is-style-etapes { list-style: none; counter-reset: etape; padding-left: 0; }
ol.is-style-etapes > li { counter-increment: etape; position: relative; padding: 0 0 1.1rem 3.2rem; margin: 0; min-height: 2.4rem; }
ol.is-style-etapes > li::before { content: counter(etape); position: absolute; left: 0; top: -.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--nuit); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
ol.is-style-etapes > li:not(:last-child)::after { content: ""; position: absolute; left: 1.05rem; top: 2.3rem; bottom: .2rem; width: 2px; background: var(--trait); }
ul.is-style-coches { list-style: none; padding-left: 0; }
ul.is-style-coches > li { position: relative; padding-left: 1.8rem; }
ul.is-style-coches > li::before { content: ""; position: absolute; left: .15rem; top: .45rem; width: .55rem; height: .95rem; border: solid var(--vert-fonce); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* Tableaux */
.wp-block-table { margin: 2rem auto; overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.wp-block-table th, .wp-block-table td { padding: .7rem .8rem; border: 1px solid var(--trait); text-align: left; vertical-align: top; }
.wp-block-table thead th { background: var(--sable); color: var(--nuit); }
.wp-block-table.is-style-sobre th, .wp-block-table.is-style-sobre td { border-width: 0 0 1px; padding-left: 0; }
.wp-block-table.is-style-sobre thead th { background: none; border-bottom: 2px solid var(--nuit); }
.wp-block-table figcaption { font-size: .85rem; color: var(--gris); margin-top: .5rem; }

/* Questions / réponses */
.wp-block-details { margin: 0 auto; border-bottom: 1px solid var(--trait); padding: 1rem 0; }
.wp-block-details summary { font-weight: 700; color: var(--nuit); cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: .2rem; top: -.15rem; font-size: 1.4rem; font-weight: 400; color: var(--vert-fonce); }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details > :not(summary) { margin-top: .7rem; }
.wp-block-details > p:last-child { margin-bottom: 0; }
.wp-block-heading + .wp-block-details { border-top: 1px solid var(--trait); }

/* Séparateur, citations */
.wp-block-separator { border: 0; border-top: 1px solid var(--trait); margin: 3rem auto; }
.wp-block-quote { border-left: 3px solid var(--vert); margin: 2rem auto; padding: .2rem 0 .2rem 1.3rem; font-size: 1.1rem; }
.wp-block-quote cite { display: block; font-size: .85rem; color: var(--gris); font-style: normal; margin-top: .5rem; }

/* Couverture (en-tête de l'accueil) */
.wp-block-cover { position: relative; display: flex; align-items: center; min-height: 480px; padding: 3rem 1.25rem; overflow: hidden; margin: 0 auto 3rem; }
.wp-block-cover .wp-block-cover__image-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.wp-block-cover .wp-block-cover__background { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,45,57,.92) 0%, rgba(16,45,57,.75) 45%, rgba(16,45,57,.15) 100%) !important; opacity: 1 !important; }
.wp-block-cover__inner-container { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; color: #fff; }
.wp-block-cover__inner-container > * { max-width: 680px; }
.wp-block-cover h1 { color: #fff; }
.wp-block-cover p { color: #dfe8ea; font-size: 1.15rem; }
.wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link { color: #fff !important; }
.wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.1); }
.contenu .wp-block-cover.alignfull { margin-top: 0; }
@media (max-width: 700px) { .wp-block-cover { min-height: 420px; } .wp-block-cover .wp-block-cover__background { background: rgba(16,45,57,.82) !important; } }

/* Image + texte */
.wp-block-media-text { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; margin: 3rem auto; }
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 2; }
.wp-block-media-text__media img { width: 100%; border-radius: 10px; display: block; }
.wp-block-media-text__content > :first-child { margin-top: 0; }
@media (max-width: 780px) { .wp-block-media-text { grid-template-columns: 1fr; gap: 1.2rem; } .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 0; } }

/* Code court dans l'éditeur */
.editor-styles-wrapper .wp-block-shortcode { background: var(--sable); }

/* Bandeau photo en tête de page (bloc Couverture avec la classe bandeau-page) */
.wp-block-cover.bandeau-page { min-height: 340px; margin-bottom: 2.5rem; }
.wp-block-cover.bandeau-page .wp-block-cover__inner-container > * { max-width: 900px; margin-left: auto; margin-right: auto; }
.wp-block-cover.bandeau-page h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: .6rem; }
.wp-block-cover.bandeau-page p { font-size: 1.1rem; margin-bottom: 0; }
.wp-block-cover.bandeau-page .wp-block-buttons { margin: 1.4rem auto 0; }
.wp-block-cover.bandeau-page .wp-block-cover__background { background: linear-gradient(90deg, rgba(16,45,57,.9) 0%, rgba(16,45,57,.72) 55%, rgba(16,45,57,.35) 100%) !important; }

/* Images dans le texte des articles */
.article .wp-block-image img, .page .wp-block-image img { width: 100%; border-radius: 8px; }
@media (max-width: 700px) { .wp-block-cover.bandeau-page .wp-block-cover__background { background: rgba(16,45,57,.84) !important; } }
