/*
Theme Name: Aide Thermopompe
Description: Thème sur mesure d'Aide Thermopompe (aidethermopompe.ca), service indépendant de mise en relation entre propriétaires et entrepreneurs en thermopompe.
Version: 1.0.1
Text Domain: custom
*/

/* Montserrat hébergée localement (police variable 100-900, sous-ensemble latin), sans appel à Google Fonts */
@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("assets/fonts/montserrat-latin-variable.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Jetons de design : seules couleurs et seuls rayons permis dans le thème (CSS et JS d'effets) */
:root {
    --blanc: #FFFFFF;
    --bleu: #0B5CAD;
    --marine: #0B2A4A;
    --orange: #F26A1B; /* décor et gros chiffres ; petit texte seulement sur fond marine (--orange-action sur fond clair) */
    --orange-action: #C94F0C;
    --orange-action-survol: #B84309;
    --glace: #9AD8FF; /* froid des animations, sur fond marine */
    --texte: #1C2B3B;
    --texte-doux: #4F5D6C;
    --fond-doux: #F3F6F9;
    --ligne: #D6DEE7;
    --voile: #000000; /* voile sombre des bannières à image, toujours en color-mix() */

    --rayon-champ: 8px; /* boutons, champs, cartes du formulaire */
    --rayon-carte: 12px; /* cartes, encadrés, estimateur */
    --rayon-pilule: 999px; /* étiquettes et badges */

    --gutter-section: 0;
    --section-py: 5vh;
    --img-height: 235px;
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
    --header-height: 7rem;
    --titre-margin-bottom: 2.5rem;
    --content-margin-bottom: 1.6rem;
    --font-titres: "Montserrat", sans-serif;
    --font-titre-weight: 700;
    --font-titre-lh: 1.1em;
    --font-titre-spacing: 0em;
    --font-contenu: "Montserrat", sans-serif;
    --font-contenu-weight: 400;
    --font-contenu-lh: 1.5;
    --font-contenu-size: 1.8rem;
    --font-contenu-spacing: 0.02em;
    --h1-size: 4rem;
    --h2-size: 3rem;
    --h3-size: 2rem;
    --h4-size: 1.3rem;
    --h5-size: 2rem;
}
@media (min-width: 576px) {
    :root {
        --img-height: 300px;
    }
}
@media (min-width: 768px) {
    :root {
        --img-height: 400px;
    }
}
@media (min-width: 992px) {
    :root {
        --section-py: 10vh;
        --img-height: 300px;
    }
}
@media (min-width: 1200px) {
    :root {
        --header-height: 19rem;
        --img-height: 350px;
    }
}
@media (min-width: 1400px) {
    :root {
        /* --section-py: 20rem; */
        --img-height: 400px;
    }
}
@media (min-width: 1600px) {
    :root {
        --img-height: 500px;
    }
}
* {
    margin: 0;
    padding: 0;
}
html {
    font-size: 10px;
}
body {
    font-family: var(--font-contenu);
    font-weight: var(--font-contenu-weight);
    line-height: var(--font-contenu-lh);
    font-size: var(--font-contenu-size);
    letter-spacing: var(--font-contenu-spacing);
    color: var(--texte);
}
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-titres);
    font-weight: var(--font-titre-weight);
    line-height: var(--font-titre-lh);
    letter-spacing: var(--font-titre-spacing);
    margin-bottom: var(--titre-margin-bottom);
}
h1 {
    font-size: var(--h1-size);
}
section h1 span:first-of-type {
    font-size: 4rem;
    line-height: 3rem;
    letter-spacing: 0;
    color: var(--orange);
}
section h1 span:last-of-type {
    font-size: 2.5rem;
    line-height: 3rem;
    letter-spacing: 0;
    color: var(--bleu);
}
@media (min-width: 992px) {
    section h1 span:first-of-type {
        font-size: 7rem;
        line-height: 7rem;
    }
    section h1 span:last-of-type {
        font-size: 4rem;
        line-height: 5rem;
    }
}
h2 {
    font-size: var(--h2-size);
}
@media (min-width: 992px) {
    h2 {
        margin-bottom: 5rem;
    }
}
h2 span {
    display: block;
	line-height: var(--font-titre-lh);
}
h2 span:first-of-type {
    font-size: 4rem;
    line-height: 4.2rem;
    letter-spacing: 0;
    color: var(--orange);
}
h2 span:last-of-type {
    font-size: 2.5rem;
    line-height: 3rem;
    letter-spacing: 0;
    color: var(--bleu);
}
@media (min-width: 992px) {
    h2 span:first-of-type {
        font-size: 6.9rem;
        line-height: 7rem;
        white-space: nowrap;
    }
    h2 span:last-of-type {
        font-size: 4rem;
        line-height: 5rem;
    }
}
#expertise h2 span:last-of-type { text-wrap: balance; }

/* Effet « H2 Réchauffement » (assets/js/effets/h2-rechauffement.js) : classes plus précises que « .cta-box-final h2 span:last-of-type » */
.h2-rechauffe .h2-ligne1 .h2-mot {
    display: inline-block;
    white-space: nowrap;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}
.h2-rechauffe .h2-ligne1 .h2-lettre {
    /* inline-block pour la montée en transform (fluide) ; le crénage est reporté en marge gauche par le script */
    display: inline-block;
    font-size: inherit;
    line-height: inherit;
}
/* État de départ seulement sous .js-h2 (classe posée dans le <head>, retirée si le script ne s'exécute pas) */
.js-h2:not(.h2-pret) h2 > span:first-child:nth-last-child(2),
.js-h2:not(.h2-pret) h2 > span:last-child:nth-child(2) {
    opacity: 0;
}
.js-h2 .h2-rechauffe .h2-ligne1 .h2-lettre {
    color: color-mix(in srgb, var(--glace) 0%, transparent);
    transform: translateY(18px);
}
/* Ligne 2 : couleur du thème conservée, état de départ tenu par l'animation en pause (remplissage « both ») */
.js-h2 .h2-rechauffe .h2-ligne2 {
    animation: h2-rechauffe-ligne .8s cubic-bezier(.2,.7,.2,1) both paused;
}
/* État final = styles du thème ; les animations partent de l'état initial (« from ») */
.js-h2 .h2-anime .h2-ligne1 .h2-lettre {
    color: inherit;
    transform: none;
    animation: h2-rechauffe-lettre 1.4s cubic-bezier(.2,.7,.2,1) both;
}
.js-h2 .h2-anime .h2-ligne2 {
    animation-play-state: running;
}
@keyframes h2-rechauffe-lettre {
    from { color: color-mix(in srgb, var(--glace) 0%, transparent); transform: translateY(18px); }
    25%  { color: var(--glace); }
}
@keyframes h2-rechauffe-ligne {
    from { color: transparent; transform: translateY(24px); }
}
/* Été (.saison-ete, functions.php) : les lettres partent de l'orange */
.js-h2 .saison-ete .h2-anime .h2-ligne1 .h2-lettre {
    animation-name: h2-rafraichit-lettre;
}
@keyframes h2-rafraichit-lettre {
    from { color: color-mix(in srgb, var(--orange) 0%, transparent); transform: translateY(18px); }
    25%  { color: var(--orange); }
}
/* Effet R1 « Apparition au défilement » (assets/js/effets/apparition.js) : état de départ seulement sous .js-reveal, attribut retiré à la fin */
.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.js-reveal [data-reveal].revele {
    opacity: 1;
    transform: none;
}
@media (max-width: 767px) {
    .js-reveal [data-reveal] {
        transform: translateY(24px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .js-h2 .h2-rechauffe .h2-ligne1 .h2-lettre {
        color: inherit;
    }
    .js-h2 .h2-rechauffe .h2-ligne1 .h2-lettre,
    .js-h2 .h2-rechauffe .h2-ligne2 {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
h3,
.h3 {
    font-size: var(--h3-size);
    line-height: 25px;
    margin-bottom: 15px;
}
.h3 {
    font-weight: 700;
}
p,
ul,
ol,
dl {
    font-family: var(--font-contenu);
    font-weight: var(--font-contenu-weight);
    line-height: var(--font-contenu-lh);
    font-size: var(--font-contenu-size);
    letter-spacing: var(--font-contenu-spacing);
    margin-bottom: var(--content-margin-bottom);
}
ul,
li,
dl,
dt,
dd {
    list-style-type: none;
    padding: 0;
}
section ul li {
    position: relative;
    padding-left: 25px;
    margin-left: 10px;
    margin-bottom: 7px;
}
section ul li::marker {
    content: none;
    display: none;
}
section:not(#autres-projets) ul:not(.liste-fiches) li:after {
    content: "";
    display: block;
    position: absolute;
    top: 1.4rem;
    left: 0;
    width: 15px;
    height: 1px;
    background-color: var(--orange);
    transition: all 0.3s ease !important;
}
img {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
}
a {
    display: block;
    text-decoration: none;
    box-sizing: content-box;
    color: var(--bleu);
    transition: all 0.3s ease;
}
a[href^="tel:"] {
    display: inline-block;
}
a:hover {
    text-decoration: none;
    color: var(--orange-action);
    transition: all 0.3s ease;
}
p a {
    display: inline-block;
    color: var(--bleu);
}
p a:hover {
    text-decoration: underline;
}

/* Les boutons (.bouton, .bouton-contour, .lien-fleche) et le focus visible sont en fin de fichier */

.cta-horizontal {
    display: inline-block;
    position: relative;
    font-size: 1.4rem;
    line-height: 1.8rem;
    font-weight: 400;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding-left: 30px;
    color: var(--orange-action);
	text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease !important;
}
.cta-horizontal.is-checked {
    color: var(--blanc);
}
.cta-horizontal:hover {
    padding-left: 40px;
	text-decoration: none;
    transition: all 0.3s ease !important;
}
.cta-horizontal:after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 25px;
    height: 1px;
    background-color: var(--orange-action);
    transition: all 0.3s ease !important;
}
.cta-horizontal.is-checked:after {
    background-color: var(--blanc);
}
/* Filtres dans le bloc marine : texte blanc, trait orange pour le filtre actif */
.bloc-couleur .cta-horizontal {
    color: color-mix(in srgb, var(--blanc) 80%, transparent);
}
.bloc-couleur .cta-horizontal.is-checked {
    color: var(--blanc);
}
.bloc-couleur .cta-horizontal:after {
    background-color: color-mix(in srgb, var(--blanc) 80%, transparent);
}
.bloc-couleur .cta-horizontal.is-checked:after {
    background-color: var(--orange);
}
.cta-horizontal:hover:after {
    width: 35px;
    transition: all 0.3s ease !important;
}

section {
    color: var(--texte);
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
    padding-left: var(--gutter-section);
    padding-right: var(--gutter-section);
}
@media (min-width: 992px) {
    section {
        padding-left: calc(var(--gutter-section) - var(--bs-gutter-x));
        padding-right: calc(var(--gutter-section) - var(--bs-gutter-x));
    }
}

[id*="menu-"] .menu-item a {
    position: relative;
	display: inline-flex;
    color: var(--blanc);
    font-size: 1.4rem;
    line-height: 1.8rem;
    font-weight: 400;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin: 15px;
}
[id*="menu-"] ul li a::before,
[id*="menu-"] ul li a::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -4px;
    width: 0;
    height: 2px;
	background: var(--blanc);
    transition: width .3s ease;
}

[id*="menu-"] ul li a::before {
    left: 0;
}

[id*="menu-"] ul li a::after {
    right: 0;
}

/* Animation au survol ou activé */
[id*="menu-"] ul li > a:hover::before,
[id*="menu-"] ul li > a:hover::after,
[id*="menu-"] ul li.current-menu-item > a::before,
[id*="menu-"] ul li.current-menu-item > a::after {
    width: 50%;
}


#banniere-accueil,
#banniere {
	position: relative;
    margin-top: -70px;
    overflow: hidden;
    height: auto;
    min-height: 50vh;
}
@media (max-width: 991px) {
    #banniere-accueil iframe {
        display: none;
    }
    #banniere-accueil {
        background-color: var(--bleu);
    }
}
@media (min-width: 992px) {
    #banniere-accueil {
        height: 100vh;
    }
    #banniere-accueil iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100vw;
        height: 100vh;
        min-width: 177.78vh;
        min-height: 56.25vw;
        transform: translate(-50%, -50%);
        pointer-events: none;
    }
}
@media (max-width: 991px) {
    #banniere-accueil .h-100 {
        height: auto !important;
    }
}

#banniere.no-image {
    background-color: var(--marine);
}

#banniere h1 {
	font-size: 3.4rem;
    font-family: var(--font-titres);
    letter-spacing: 0;
    text-shadow: 0 0 40px color-mix(in srgb, var(--glace) 25%, transparent);
    color: var(--blanc);
    margin-bottom: var(--content-margin-bottom);
}

#banniere h1 span {
	display: block;
	font-size: 2.6rem;
	line-height: var(--font-titre-lh);
    color: var(--orange);
}

@media (min-width:992px) {
	#banniere h1 {
		font-size: 7rem;
	}

	#banniere h1 span {
		font-size: 5rem;
	}
}
@media (min-width: 992px) {

	#banniere {
	    height: 100vh;
	    margin-top: -70px;
	}

	#banniere .container,
	#banniere .row,
	#banniere .col-12 {
	    min-height: 100vh;
	}
}
#banniere-accueil img {
    position: absolute;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}
#banniere-accueil:before {
    content: "";
    display: block;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: color-mix(in srgb, var(--marine) 35%, transparent);
    z-index: 1;
    pointer-events: none;
}
@media (min-width: 992px) {
    #banniere-accueil:before {
        top: 0;
    }
}

@media (min-width: 992px) {
    #banniere-accueil,
    #banniere {
        position: relative;
        min-height: 0;
        height: 100vh;
        margin-top: 0;
    }
    #banniere .container,
    #banniere .row,
    #banniere .col-12 {
        min-height: 0;
    }
}
#banniere-accueil .texte-banniere {
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
}
@media (min-width: 992px) {
    #banniere-accueil .texte-banniere {
        padding: 0;
    }
}
#banniere-accueil h1 {
    font-family: var(--font-titres);
    font-weight: var(--font-titre-weight);
    letter-spacing: 0;
    color: var(--bleu);
    text-shadow: 1px 1px 7px var(--blanc);
}
#banniere-accueil h1 span:first-of-type {
    font-size: 4rem;
    line-height: 5rem;
    color: var(--bleu);
}
@media (min-width: 992px) {
    #banniere-accueil h1 span:first-of-type {
        font-size: 7rem;
        line-height: 8rem;
    }
}
#banniere-accueil h1 span:last-of-type {
    font-size: 2.5rem;
    line-height: 3.1rem;
    color: var(--orange);
}
@media (min-width: 992px) {
    #banniere-accueil h1 span:last-of-type {
        font-size: 4rem;
        line-height: 5rem;
    }
}

#banniere-accueil p,
#banniere p {
    color: var(--blanc);
}
/* Liens dans le texte des bannières (fond foncé) : blancs et soulignés */
#banniere-accueil p a,
#banniere p a {
    color: var(--blanc);
    text-decoration: underline;
}
#banniere .texte-banniere {
    height: auto;
    padding: 150px 0;
}
@media (min-width: 992px) {
    #banniere .texte-banniere {
        padding: 0;
    }
}
.scroll-to {
    display: inline-block;
    position: absolute;
    bottom: 85px;
    font-size: 1.4rem;
    line-height: 1.8rem;
    letter-spacing: 1.4px;
    color: var(--blanc);
    text-transform: uppercase;
}

.scroll-to:after {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    height: 0;
    background-color: var(--blanc);
    transition: all 0.3s ease;
}

.scroll-to:after {
    top: 45px;
    height: 0;
    bottom: 0;
    animation: scrolldownBottom 2s infinite;
    animation-delay: 0.5s;
}
@keyframes scrolldownBottom {
    0% {
        top: 42px;
        bottom: 0;
        height: 0;
    }
    50% {
        top: 42px;
        bottom: -45px;
        height: 45px;
    }
    100% {
        top: 87px;
        bottom: -45px;
        height: 0;
    }
}
@media (min-width: 992px) {

    .scroll-to {
		top: 85vh;
		margin-right: 50px;
    }
}

/* Bannière animée « Flux d'air » (assets/js/effets/flux-air.js) : sans JS, fond marine et titre normal */
#banniere.animation-flux-air {
    z-index: 0; /* contexte d'empilement propre : les calques restent sous l'en-tête (menu, logo) */
    height: auto;
    min-height: min(100svh, 820px);
    background-color: var(--marine);
}
#banniere.animation-flux-air .scroll-to {
    top: auto;
    bottom: 90px;
    text-shadow: 0 0 6px var(--marine), 0 0 14px var(--marine);
}
#banniere.animation-flux-air .container,
#banniere.animation-flux-air .container > .row,
#banniere.animation-flux-air .container > .row > .col-12 {
    min-height: min(100svh, 820px);
}
#banniere.animation-flux-air .container-fluid {
    position: relative;
    z-index: 2;
}
#banniere.animation-flux-air h1,
#banniere.animation-flux-air .flux-chaud {
    color: var(--blanc);
    text-shadow: 0 0 40px color-mix(in srgb, var(--glace) 25%, transparent);
}
#banniere.animation-flux-air h1 span {
    color: var(--glace);
}
#banniere.animation-flux-air .flux-titre {
    position: relative;
}
#banniere.animation-flux-air .flux-chaud {
    position: absolute;
    inset: 0;
    margin: 0;
    color: var(--orange);
    text-shadow: 0 0 50px color-mix(in srgb, var(--orange) 50%, transparent);
    clip-path: inset(-60px -60px -60px 50%);
    pointer-events: none;
}
#banniere.animation-flux-air .flux-chaud span {
    color: var(--orange);
}
.flux-canvas,
.flux-paroi,
.flux-lectures {
    position: absolute;
    pointer-events: none;
}
.flux-canvas {
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.flux-paroi {
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 1px;
    background: linear-gradient(color-mix(in srgb, var(--blanc) 0%, transparent), color-mix(in srgb, var(--blanc) 40%, transparent) 25%, color-mix(in srgb, var(--blanc) 40%, transparent) 75%, color-mix(in srgb, var(--blanc) 0%, transparent));
    will-change: transform;
}
.flux-paroi span {
    position: absolute;
    top: 120px;
    font-size: 1.2rem;
    white-space: nowrap;
}
.flux-paroi span:first-child {
    right: 12px;
    color: var(--glace);
}
.flux-paroi span:last-child {
    left: 12px;
    color: var(--orange);
}
.flux-lectures {
    right: clamp(20px, 4vw, 56px);
    bottom: 48px;
    z-index: 2;
    display: none;
    gap: clamp(28px, 4vw, 72px);
    font-variant-numeric: tabular-nums;
}
.flux-lectures div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.flux-lectures small {
    font-size: 1.2rem;
    color: color-mix(in srgb, var(--blanc) 70%, transparent);
}
.flux-lectures strong {
    min-width: 5.5ch;
    font-size: clamp(2.6rem, 3vw, 4.4rem);
    font-weight: 500;
}
.flux-lectures div:first-child strong {
    color: var(--glace);
}
.flux-lectures div:last-child strong {
    color: var(--orange);
}
@media (min-width: 768px) {
    .flux-lectures {
        display: flex;
    }
}
/* Été (.saison-ete) : chaud dehors (à gauche), frais dedans (à droite) */
.saison-ete #banniere.animation-flux-air h1 {
    text-shadow: 0 0 40px color-mix(in srgb, var(--orange) 25%, transparent);
}
.saison-ete #banniere.animation-flux-air h1 span,
.saison-ete .flux-paroi span:first-child,
.saison-ete .flux-lectures div:first-child strong {
    color: var(--orange);
}
.saison-ete #banniere.animation-flux-air .flux-chaud,
.saison-ete #banniere.animation-flux-air .flux-chaud span,
.saison-ete .flux-paroi span:last-child,
.saison-ete .flux-lectures div:last-child strong {
    color: var(--glace);
}
.saison-ete #banniere.animation-flux-air .flux-chaud {
    text-shadow: 0 0 50px color-mix(in srgb, var(--glace) 50%, transparent);
}
#intro p {
    font-size: 2.5rem;
    line-height: 3.1rem;
    letter-spacing: 0;
}
@media (min-width: 992px) {
    #intro p {
        font-size: 3rem;
        line-height: 3.8rem;
    }
}
.bloc-couleur {
    padding: 25px 30px 25px;
    background-color: var(--marine);
    color: var(--blanc);
}

@media (min-width: 992px) {
    .bloc-couleur {
        width: calc(50vw - var(--bs-gutter-x) - 50px);
        padding: 25px 30px;
    }
}
@media (min-width: 1200px) {
    .bloc-couleur {
        padding: 45px 50px;
    }
    #formulaire .bloc-couleur {
        width: calc(50vw - var(--bs-gutter-x) + 60px);
    }
}
#grid-projets .element-item {
	display: flex;
	position: relative;
    padding: 0 8px;
    height: 200px;
    transition: all 0.3s ease;
    cursor: default;
}

#grid-projets .element-item .projet{
	background-position: center;
	border: 2px solid var(--orange);
	border-radius: var(--rayon-carte);
}


@media (min-width: 768px) {
    #grid-projets .element-item.odd {
        transition: all 0.3s ease;
    }
    #grid-projets .element-item.even {
        transition: all 0.3s ease;
    }
}
#grid-projets .element-item .projet {
	box-shadow: 0px 0px 10px 3px color-mix(in srgb, var(--marine) 20%, transparent);
    transition: all 0.3s ease;
}
#grid-projets .element-item:hover .projet {
    transition: all 0.3s ease;
}
#grid-projets .projet h3 {
	font-size: 1.4rem;
	line-height: 1.6rem;
    margin-bottom: 10px;
    color: var(--blanc);
}

#grid-projets .projet .lien-fleche {
	font-size: 1.4rem;
}
@media (min-width: 992px) {
    #grid-projets .element-item {
        height: 400px;
    }
    #grid-projets .element-item.odd {
        /* transform: translateY(0); */
        transition: all 0.3s ease;
    }
    #grid-projets .element-item.even {
        transition: all 0.3s ease;
    }

	#grid-projets .element-item .projet {
		box-shadow: 0px 0px 10px 3px color-mix(in srgb, var(--marine) 20%, transparent);
	}
	#grid-projets .element-item:hover .projet {
		box-shadow: 0px 0px 10px 3px color-mix(in srgb, var(--marine) 50%, transparent);
	}
	#grid-projets .projet h3 {
		font-size: 1.6rem;
	    color: var(--blanc);
	}
}
#details-single .details p {
    margin-bottom: 0;
}

.article {
    position: relative;
    height: 40vh;
}
.article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: color-mix(in srgb, var(--marine) 0%, transparent);
    transition: all ease 0.3s;
}
.article:hover:before {
    background-color: color-mix(in srgb, var(--marine) 50%, transparent);
    transition: all ease 0.3s;
}
@media (min-width: 480px) {
    .article {
        width: 100%;
        height: 400px;
    }
    .article.odd {
        transform: translateY(0);
    }
    .article.even {
        transform: translateY(50px);
    }
}
@media (min-width: 992px) {
    .article.odd {
        transform: translateY(0);
    }
    .article.even {
        transform: translateY(80px);
    }
}
@media (min-width: 992px) {
    .membre.odd {
        margin-top: 0;
    }
    .membre.even {
        margin-top: 80px;
    }
}
.intro {
    margin-top: 25vh;
}
@media (min-width: 992px) {
    .intro {
        margin-top: 30vh;
    }
}
.single h2 {
    font-family: var(--font-titres);
    margin-bottom: 3rem;
}

/* CUSTOM CSS TEMPLATE SUBVENTIONS */
.subvention-card {
    border: 1px solid var(--orange);
    border-radius: var(--rayon-carte);
    padding: 2rem;
    background: var(--blanc);
    display: flex;
    flex-direction: column;
}

.montant {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--bleu);
    margin: 1rem 0;
}

.programme {
    font-size: 0.9rem;
    color: var(--texte-doux);
    margin-bottom: 1rem;
}

.extrait {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* Info grids dans WYSIWYG */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.highlight-box {
    background: var(--fond-doux);
    border-left: 4px solid var(--bleu);
    padding: 2rem;
    margin: 2rem 0;
}

.subventions-disponibles {
    padding: 3rem 0;
    background: var(--fond-doux);
}
/* FIN CUSTOM CSS TEMPLATE SUBVENTIONS */

/* Tags (secteurs ou programmes) */
.termes-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.termes-tags .tag {
    background: var(--fond-doux);
    color: var(--bleu);
    padding: 0.25rem 0.75rem;
    border-radius: var(--rayon-pilule);
    font-size: 0.85rem;
    font-weight: 500;
}

/* PAGE SUBVENTIONS */
/* Tableau montants */
.tableau-montants {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.tableau-montants th {
    background: var(--bleu);
    color: var(--blanc);
    padding: 1rem;
    text-align: left;
}

.tableau-montants td {
    padding: 1rem;
    border-bottom: 1px solid var(--ligne);
}

/* Info grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.info-box {
    background: var(--fond-doux);
    border-left: 4px solid var(--bleu);
    padding: 1.5rem;
}

.info-box h3 {
    margin-top: 0;
    color: var(--bleu);
}

.info-box ul {
    margin: 1rem 0 0 0;
    padding-left: 1.25rem;
}

.info-box li {
    margin: 0.5rem 0;
}
/* FIN PAGE SUBVENTION */

/* ============================================
   SECTION SUBVENTIONS SECTEURS HOME (nouvelle)
   ============================================ */

#subventions-secteurs-home {
    padding: 5rem 0;
    background: var(--fond-doux);
}

.secteur-card-home {
    border: 3px solid var(--bleu);
    border-radius: var(--rayon-carte);
    padding: 2.5rem;
    background: var(--blanc);
    position: relative;
    transition: all 0.3s;
}

.secteur-card-home:hover {
    box-shadow: 0 10px 30px color-mix(in srgb, var(--bleu) 15%, transparent);
}

.secteur-card-home .badge {
    position: absolute;
    top: -15px;
    left: 2rem;
    background: var(--bleu);
    color: var(--blanc);
    padding: 0.5rem 1.5rem;
    border-radius: var(--rayon-pilule);
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.secteur-card-home h3 {
    margin-top: 1rem;
    /* font-size: 1.25rem; */
    color: var(--texte);
    font-weight: 500;
}

.secteur-card-home .montant-vedette {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--bleu);
    margin: 1.5rem 0 0.5rem 0;
    line-height: 1.2;
}

.secteur-card-home .detail {
    color: var(--texte-doux);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.secteur-card-home .count-info {
    color: var(--texte-doux);
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.secteur-card-home .count-info strong {
    color: var(--bleu);
    font-size: 1.3rem;
}

/* Liste des fiches du secteur : titre en lien, montant à droite */
.secteur-card-home .liste-fiches {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    border-top: 1px solid var(--ligne);
}
.secteur-card-home .liste-fiches li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--ligne);
    font-size: 1.4rem;
}
.secteur-card-home .liste-fiches a {
    color: var(--bleu);
    font-weight: 600;
}
.secteur-card-home .liste-fiches a:hover {
    color: var(--orange-action);
}
.secteur-card-home .liste-fiches-budget {
    color: var(--texte-doux);
}

/* ============================================
   SECTION EXPERTISE - Ajout count
   ============================================ */

.count-taxo {
    font-size: 1.2rem;
    color: var(--blanc);
    margin-top: 0.5rem;
}

.count-taxo strong {
    color: var(--orange);
}

/* ============================================
   SECTION CTA FINAL HOME (nouvelle)
   ============================================ */

.cta-box-final {
    background: var(--bleu);
    color: var(--blanc);
    border-radius: var(--rayon-carte);
    padding: 5rem 2rem;
	text-align: center;
	margin: auto;
}

.cta-box-final h2 {
    color: var(--blanc);
    margin-bottom: 1.5rem;
}

.cta-box-final h2 span:first-of-type {
	font-size: 5rem;
}

.cta-box-final h2 span:last-of-type {
	color: var(--blanc);
    display: block;
}

.cta-box-final p {
    font-size: 1.4rem;
    margin-bottom: 0;
    max-width: 700px;
    margin: auto;
}

.cta-buttons-final {
    margin-top: 2rem;
}

.cta-buttons-final .gap-3 {
    gap: 1rem;
}

/* Responsive */
@media (max-width: 991px) {
    .secteur-card-home {
        margin-bottom: 2rem;
    }

    .secteur-card-home .montant-vedette {
        font-size: 1.75rem;
    }

    .cta-box-final {
        padding: 4rem 2.5rem;
    }

    .cta-box-final h2 {
        font-size: 1.5rem;
    }


	.cta-box-final h2 span:first-of-type {
		font-size: 2.6rem;
	    line-height: 1.1em;
	}

	.cta-box-final h2 span:last-of-type{
		font-size: 2rem;
		line-height: 1.1em;
	}

    .cta-buttons-final {
        flex-direction: column !important;
    }
}

/* ==============================
   STRUCTURE GÉNÉRALE
================================ */

.wpcf7 label {
    display: block;
    font-weight: 600;
    /* font-size: 1.5rem; */
    margin: 20px 0 12px; /* réduit l’espace excessif */
    color: var(--blanc);
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* ==============================
   INPUTS / TEXTAREA / SELECT
================================ */

.wpcf7 input,
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    /* min-height: 50px; */
    background-color: transparent;
    border: 1px solid color-mix(in srgb, var(--blanc) 60%, transparent);
    border-radius: var(--rayon-champ);
    padding: 12px;
    color: var(--blanc);
    transition: all 0.2s ease;
}

.wpcf7 textarea {
    min-height: 150px;
    resize: vertical;
}

/* Focus plus premium */
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: var(--blanc);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--blanc) 10%, transparent);
}

/* ==============================
   SELECT
================================ */

.wpcf7 select {
    appearance: none;
    background-color: transparent;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,...");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* ==============================
   RADIOS & CHECKBOX (CLEAN)
================================ */

.wpcf7-radio {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.wpcf7-radio label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    margin: 0;
    cursor: pointer;
}

/* Style custom simple */
.wpcf7-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--orange-action);
}

.wpcf7-spinner{
	position: absolute;
}
footer {
    width: 100%;
}
footer .footer {
    max-width: 100%;
    padding: 3rem 1.5rem;
    background-color: var(--marine);
    color: var(--blanc);
}
@media (min-width: 992px) {
    footer .footer {
        padding: 90px;
    }
}
@media (min-width: 992px) {
    footer .container {
        max-width: 1140px;
    }
}
.footer:before,
.footer:after {
    content: "";
    position: absolute;
    display: block;
    bottom: 0;
    width: 1.5rem;
    background-color: var(--marine);
}
.footer:before {
    top: 0;
    left: -15px;
}
.footer:after {
    top: 0;
    right: -15px;
}
@media (min-width: 992px) {
    .footer:before,
    .footer:after {
        display: none;
    }
}
footer .footer a,
footer .footer span {
    display: inline-block;
    color: var(--blanc);
	font-size: 1.4rem;
}
footer [id*="menu-"] .menu-item a {
    color: var(--blanc);
    font-size: 1.4rem;
    line-height: 1.8rem;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
	margin: 0;
    padding-bottom: 10px;
    transition: all 0.3s ease;
}
footer [id*="menu-"] .menu-item a:hover,
footer [id*="menu-"] .current-menu-item a {
    color: var(--blanc);
    text-decoration: underline;
    transition: all 0.3s ease;
}
footer ul {
    margin-bottom: 0;
}
footer .logo-pied {
    max-width: 220px;
    height: auto;
}
footer .texte-independance p {
    margin: 0;
    font-size: inherit;
}

@media (min-width: 992px) {
	footer .footer a,
	footer .footer span {
		display: inline-block;
		color: var(--blanc);
		font-size: 1.6rem;
	}
}

.reseaux-sociaux a:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.reseaux-sociaux a img {
	width: 20px;
	height: auto;
	object-fit: contain;
}

#droits {
    font-size: 1.4rem;
}
#droits a {
    display: inline-block;
}
#droits img {
    max-width: 100px;
    height: 20px;
    object-fit: contain;
}

.secteur-card-home {
    border: 3px solid var(--bleu);
    border-radius: var(--rayon-carte);
    padding: 2.5rem;
    background: var(--blanc);
    position: relative;
}

.secteur-card-home .badge {
    position: absolute;
    top: -15px;
    left: 2rem;
    background: var(--bleu);
    color: var(--blanc);
    padding: 0.5rem 1.5rem;
    border-radius: var(--rayon-pilule);
    font-weight: bold;
    font-size: 0.9rem;
}

.secteur-card-home h3 {
    margin-top: 1rem;
    font-size: 1.5rem;
    color: var(--texte);
}

.secteur-card-home .montant-vedette {
    font-size: 2rem;
    font-weight: bold;
    color: var(--bleu);
    margin: 1rem 0 0.5rem 0;
}

.secteur-card-home .detail {
    color: var(--texte-doux);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}


/* Responsive */
@media (max-width: 768px) {
    .tableau-montants {
        font-size: 1.4rem;
    }

    .tableau-montants th,
    .tableau-montants td {
        padding: 0.75rem 0.5rem;
    }

    .tableau-montants th {
        font-size: 0.85rem;
    }

	.tableau-montants td a {
		font-size: 1.8rem;
		color: var(--bleu);
	}
}

/* Version mobile : transformer en cards */
@media (max-width: 576px) {
    .tableau-montants thead {
        display: none;
    }

    .tableau-montants,
    .tableau-montants tbody,
    .tableau-montants tr,
    .tableau-montants td {
        display: block;
        width: 100%;
    }

    .tableau-montants tr {
        margin-bottom: 1.5rem;
        border: 1px solid var(--ligne);
        border-radius: var(--rayon-carte);
        padding: 1rem;
        background: var(--blanc);
    }

    .tableau-montants td {
        border: none;
        padding: 0.5rem 0;
        text-align: left;
    }

    .tableau-montants td:before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 0.25rem;
        color: var(--bleu);
        font-size: 0.85rem;
        text-transform: uppercase;
    }
}

/* ==========================================================================
   En-tête et menu « thermostat » (assets/js/effets/menu.js)
   Placé en fin de fichier : l'emporte sur les anciennes règles de l'en-tête
   et sur « [id*="menu-"] .menu-item a ».
   ========================================================================== */

#entete {
    --entete-texte: var(--blanc);
    --entete-survol: var(--orange);
    --focus: var(--blanc);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    transition: background-color .3s ease, box-shadow .3s ease;
}
/* La bannière passe sous l'en-tête transparent (l'ancien en-tête desktop était superposé, d'où margin-top: 0 à 992 px) */
#banniere-accueil,
#banniere {
    margin-top: -70px;
}
/* Fond blanc dès qu'on défile, sauf sur la bannière animée (marine) et menu ouvert */
.entete-defile:not(.menu-ouvert) body:not(.entete-sur-banniere) #entete {
    --entete-texte: var(--marine);
    --entete-survol: var(--orange-action);
    --focus: var(--bleu);
    background-color: color-mix(in srgb, var(--blanc) 96%, transparent);
    box-shadow: 0 1px 12px color-mix(in srgb, var(--marine) 12%, transparent);
}
.entete-barre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 100%;
    padding: 0 16px;
}
@media (min-width: 992px) {
    .entete-barre {
        padding: 0 40px;
    }
}
.entete-logo {
    display: block;
    min-width: 0;
}
.entete-logo img {
    display: block;
    width: auto;
    height: 28px;
    max-width: 100%;
}
@media (min-width: 768px) {
    .entete-logo img {
        height: 36px;
    }
}
/* Logo blanc tant que l'en-tête est transparent, logo couleur sur l'en-tête blanc */
.entete-logo .logo-couleur,
.entete-defile:not(.menu-ouvert) body:not(.entete-sur-banniere) .entete-logo .logo-blanc {
    display: none;
}
.entete-defile:not(.menu-ouvert) body:not(.entete-sur-banniere) .entete-logo .logo-couleur {
    display: block;
}
.entete-actions {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-shrink: 0;
}

/* Raccourcis (menu « Raccourcis d'en-tête »), masqués sous 1024 px */
#entete .raccourcis {
    display: none;
    align-items: center;
    gap: 28px;
    margin: 0;
}
@media (min-width: 1024px) {
    #entete .raccourcis {
        display: flex;
    }
}
.menu-ouvert #entete .entete-raccourcis {
    visibility: hidden;
}
#entete .raccourcis .menu-item a {
    display: inline-block;
    margin: 0;
    padding: 8px 0;
    font-family: var(--font-titres);
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--entete-texte);
}
#entete .raccourcis .menu-item a:hover,
#entete .raccourcis .menu-item a:focus-visible {
    color: var(--entete-survol);
    text-decoration: none;
}
#entete .raccourcis a::before,
#entete .raccourcis a::after {
    content: none;
}

/* Bouton Menu : libellé + anneau thermostat */
.bouton-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-titres);
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    color: var(--entete-texte);
    cursor: pointer;
}
.bouton-menu-anneau {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
}
.bouton-menu-anneau::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(var(--glace) 0deg, var(--orange) 220deg, var(--ligne) 220deg 360deg);
    transition: transform .4s cubic-bezier(.7,0,.2,1);
}
.bouton-menu:hover .bouton-menu-anneau::before,
.bouton-menu:focus-visible .bouton-menu-anneau::before {
    transform: rotate(-25deg);
}
.bouton-menu-coeur {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--marine);
}
.bouton-menu-coeur span {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 2px;
    background-color: var(--blanc);
    transition: transform .4s cubic-bezier(.7,0,.2,1), opacity .4s cubic-bezier(.7,0,.2,1);
}
.bouton-menu-coeur span:nth-child(1) { top: 14px; }
.bouton-menu-coeur span:nth-child(2) { top: 20px; }
.bouton-menu-coeur span:nth-child(3) { top: 26px; }
.bouton-menu[aria-expanded="true"] .bouton-menu-coeur span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.bouton-menu[aria-expanded="true"] .bouton-menu-coeur span:nth-child(2) {
    opacity: 0;
}
.bouton-menu[aria-expanded="true"] .bouton-menu-coeur span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Panneau plein écran : cercle qui s'ouvre depuis le bouton (--cx, --cy calculés par menu.js) */
.panneau-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    overflow-y: auto;
    padding: 110px 24px 48px;
    background: radial-gradient(circle at var(--cx, 100%) var(--cy, 0), color-mix(in srgb, var(--orange) 55%, transparent), transparent 48%), var(--marine);
    visibility: hidden;
    clip-path: circle(0 at var(--cx, 100%) var(--cy, 0));
    transition: clip-path .85s cubic-bezier(.7,0,.2,1), visibility 0s linear .85s;
}
.menu-ouvert .panneau-menu {
    visibility: visible;
    clip-path: circle(150% at var(--cx, 100%) var(--cy, 0));
    transition: clip-path .85s cubic-bezier(.7,0,.2,1), visibility 0s;
}
html.menu-ouvert {
    overflow: hidden;
}
html.menu-ouvert body {
    padding-right: var(--barre-defilement, 0);
}
.panneau-menu-contenu {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 899px) {
    .panneau-menu-contenu {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
}

/* Liens de premier niveau : montent un à un après l'ouverture du cercle */
#panneau-menu .menu-panneau {
    margin: 0;
}
#panneau-menu .menu-panneau > li {
    padding: 14px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--blanc) 12%, transparent);
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .2s ease, transform .2s ease;
}
.menu-ouvert #panneau-menu .menu-panneau > li {
    opacity: 1;
    transform: none;
    transition: opacity .6s cubic-bezier(.2,.7,.2,1) calc(.25s + var(--i, 0) * .07s), transform .6s cubic-bezier(.2,.7,.2,1) calc(.25s + var(--i, 0) * .07s);
}
#panneau-menu .menu-panneau > li > a {
    display: inline-block;
    margin: 0;
    font-family: var(--font-titres);
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--blanc);
    transition: color .25s ease, transform .25s ease;
}
@media (max-width: 759px) {
    #panneau-menu .menu-panneau > li > a {
        font-size: 30px;
    }
}
#panneau-menu .menu-panneau > li > a:hover,
#panneau-menu .menu-panneau > li > a:focus-visible {
    color: var(--orange);
    transform: translateX(10px);
    text-decoration: none;
}
#panneau-menu .menu-panneau a::before,
#panneau-menu .menu-panneau a::after {
    content: none;
}

/* Sous-menus sur une ligne sous leur parent */
#panneau-menu .sub-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin: 6px 0 0;
}
#panneau-menu .sub-menu .menu-item a {
    display: inline-block;
    margin: 0;
    font-family: var(--font-contenu);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: color-mix(in srgb, var(--blanc) 80%, transparent);
}
#panneau-menu .sub-menu .menu-item a:hover,
#panneau-menu .sub-menu .menu-item a:focus-visible {
    color: var(--orange);
    text-decoration: none;
}

/* Température extérieure et bloc d'appel à l'action, après les liens */
.panneau-menu-cote {
    display: flex;
    flex-direction: column;
    gap: 24px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .2s ease, transform .2s ease;
}
.panneau-menu-cta {
    padding: 32px;
    border: 1px solid color-mix(in srgb, var(--blanc) 14%, transparent);
    border-radius: var(--rayon-carte);
    background-color: color-mix(in srgb, var(--blanc) 6%, transparent);
}
.menu-ouvert .panneau-menu-cote {
    opacity: 1;
    transform: none;
    transition: opacity .6s cubic-bezier(.2,.7,.2,1) .45s, transform .6s cubic-bezier(.2,.7,.2,1) .45s;
}
.panneau-menu-cta p {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    color: color-mix(in srgb, var(--blanc) 80%, transparent);
    margin-bottom: 20px;
}
.panneau-menu-cta .panneau-menu-cta-titre {
    font-family: var(--font-titres);
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--blanc);
    margin-bottom: 12px;
}
.panneau-menu-bouton {
    margin-bottom: 14px;
}
.panneau-menu-cta .panneau-menu-mention {
    font-size: 14px;
    margin-bottom: 0;
}

/* Sans JS : pas de bouton, le panneau reste visible sous l'en-tête */
html:not(.js-menu) .bouton-menu {
    display: none;
}
html:not(.js-menu) .panneau-menu {
    position: static;
    visibility: visible;
    clip-path: none;
    padding: 40px 24px 110px;
}
html:not(.js-menu) #panneau-menu .menu-panneau > li,
html:not(.js-menu) .panneau-menu-cote {
    opacity: 1;
    transform: none;
}

/* Mouvement réduit : ouverture et fermeture instantanées, sans cercle ni montée */
@media (prefers-reduced-motion: reduce) {
    .panneau-menu,
    .menu-ouvert .panneau-menu {
        clip-path: none;
        transition: none;
    }
    #panneau-menu .menu-panneau > li,
    .menu-ouvert #panneau-menu .menu-panneau > li,
    .panneau-menu-cote,
    .menu-ouvert .panneau-menu-cote {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .bouton-menu-anneau::before,
    .bouton-menu-coeur span,
    #panneau-menu .menu-panneau > li > a {
        transition: none;
    }
}

/* Fil d'Ariane : en petit sous l'en-tête, en haut du contenu (sur la bannière) */
.fil-ariane {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 2;
    pointer-events: none;
}
.fil-ariane .rank-math-breadcrumb {
    display: inline-block;
}
.fil-ariane .rank-math-breadcrumb p {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: normal;
    color: color-mix(in srgb, var(--blanc) 85%, transparent);
}
.fil-ariane .rank-math-breadcrumb p a,
.fil-ariane .rank-math-breadcrumb p span {
    display: inline;
    font-family: var(--font-contenu);
    text-transform: none;
    color: inherit;
}
.fil-ariane .rank-math-breadcrumb p a:hover {
    color: var(--orange);
}

/* Effet T1 « Balayage » : orange sur les cartes de fiches, glace sur les rangées du tableau « Montants typiques », au survol et au focus clavier */
.subvention-card,
.tableau-montants tbody tr {
    background-image: linear-gradient(var(--orange), var(--orange));
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: background-size .7s cubic-bezier(.7,0,.2,1);
}
.subvention-card:hover,
.subvention-card:focus-within,
.tableau-montants tbody tr:hover,
.tableau-montants tbody tr:focus-within {
    background-size: 100% 100%;
}
.tableau-montants tbody tr {
    background-image: linear-gradient(var(--glace), var(--glace));
}
/* Tout le texte passe en marine dès le début du balayage : contraste AA sur le blanc, l'orange et la glace */
.subvention-card .contenu,
.subvention-card .contenu *,
.tableau-montants tbody td,
.tableau-montants tbody td * {
    transition: color .2s ease;
}
.subvention-card:hover .contenu,
.subvention-card:hover .contenu *,
.subvention-card:focus-within .contenu,
.subvention-card:focus-within .contenu *,
.tableau-montants tbody tr:hover td,
.tableau-montants tbody tr:hover td *,
.tableau-montants tbody tr:hover td::before,
.tableau-montants tbody tr:focus-within td,
.tableau-montants tbody tr:focus-within td *,
.tableau-montants tbody tr:focus-within td::before {
    color: var(--marine);
}
/* Le lien de la carte passe en marine sur le balayage orange */
.subvention-card:hover .lien-fleche,
.subvention-card:focus-within .lien-fleche {
    color: var(--marine);
}
@media (prefers-reduced-motion: reduce) {
    .subvention-card,
    .tableau-montants tbody tr {
        transition: none;
    }
}

/* Température extérieure « Dehors à [ville] » (includes/meteo-dehors.php, assets/js/effets/meteo.js) : en-tête à partir de 1180 px, panneau du menu à toutes les largeurs */
.meteo-dehors {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    font-family: var(--font-contenu);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.meteo-dehors[hidden],
.meteo-mention-banniere[hidden],
.flux-lectures div[hidden] {
    display: none;
}
.meteo-libelle {
    opacity: .75;
}
/* Liste des villes : texte souligné en pointillé suivi de « ▾ » ; les options gardent les couleurs du contenu */
.meteo-choix {
    position: relative;
    display: inline-flex;
}
.meteo-choix::after {
    content: "▾";
    position: absolute;
    right: 0;
    bottom: .1em;
    pointer-events: none;
}
.meteo-ville {
    margin: 0;
    padding: 0 1.1em 0 0;
    border: 0;
    border-bottom: 1px dashed currentColor;
    background: none;
    font: inherit;
    color: inherit;
    appearance: none;
    field-sizing: content; /* largeur de la ville choisie (navigateurs récents ; sinon celle de la plus longue) */
    cursor: pointer;
}
.meteo-ville:disabled {
    cursor: default;
}
.meteo-ville option {
    color: var(--texte);
    background-color: var(--blanc);
}
.meteo-ville:focus-visible,
.meteo-valeur:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}
.meteo-valeur {
    min-width: 6ch;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
}
.meteo-valeur:hover {
    color: var(--entete-survol);
    text-decoration: none;
}
.meteo-entete {
    display: none;
    font-size: 13px;
    line-height: 1;
    color: var(--entete-texte);
}
@media (min-width: 1180px) {
    .meteo-entete:not([hidden]) {
        display: flex;
    }
    /* Le logo garde sa largeur quand le bloc s'ajoute */
    .entete-logo {
        flex-shrink: 0;
    }
}
/* De 1180 à 1279 px : bloc compact (sans « Dehors à ») et espacements réduits, pour ne pas serrer les raccourcis */
@media (min-width: 1180px) and (max-width: 1279px) {
    .entete-actions {
        gap: 20px;
    }
    #entete .raccourcis {
        gap: 20px;
    }
    .meteo-entete .meteo-libelle {
        display: none;
    }
}
.menu-ouvert .meteo-entete {
    visibility: hidden;
}
/* Panneau du menu : au-dessus de l'appel à l'action (.panneau-menu-cote) */
.meteo-panneau {
    font-size: 16px;
    line-height: 1.3;
    color: color-mix(in srgb, var(--blanc) 80%, transparent);
}
.meteo-panneau .meteo-valeur {
    font-family: var(--font-titres);
    font-size: 26px;
    color: var(--blanc);
}
.meteo-panneau .meteo-valeur:hover {
    color: var(--orange);
}
/* Mention de source sous les bannières qui affichent une température */
.meteo-mention-banniere {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
    color: color-mix(in srgb, var(--blanc) 70%, transparent);
}
.meteo-mention-banniere a {
    color: inherit;
    text-decoration: underline;
}
#banniere.animation-flux-air > .meteo-mention-banniere {
    position: absolute;
    left: clamp(20px, 4vw, 56px);
    bottom: 16px;
    z-index: 2;
}

/* Effet M1 « Thermomètre des étapes » (assets/js/effets/thermometre-etapes.js) : à partir de 992 px, décoratif */
.thermo-etapes {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    pointer-events: none;
    perspective: 800px;
    --c: var(--glace);
    --lueur: 40px;
    --rot: 0deg;
}
/* Tube, graduations et réservoir pivotent ensemble selon la progression (rotateY −6° → 6°) */
.thermo-etapes-corps {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotateY(var(--rot));
}
.thermo-etapes-valeur {
    font-family: var(--font-titres);
    font-size: clamp(56px, 6vw, 96px);
    line-height: .8;
    font-weight: 800;
    color: var(--glace);
    white-space: nowrap;
}
.thermo-etapes-tube {
    position: relative;
    display: block;
    width: 30px;
    height: min(52vh, 460px);
    border: 1px solid color-mix(in srgb, var(--marine) 15%, transparent);
    border-radius: 999px;
    overflow: hidden;
    /* Verre : bord gauche éclairé, bord droit dans l'ombre */
    background: linear-gradient(to right, color-mix(in srgb, var(--blanc) 55%, transparent), color-mix(in srgb, var(--blanc) 12%, transparent) 50%, color-mix(in srgb, var(--marine) 12%, transparent));
    box-shadow: inset -3px 0 6px color-mix(in srgb, var(--marine) 15%, transparent), inset 3px 0 4px color-mix(in srgb, var(--blanc) 60%, transparent);
}
.thermo-etapes-mercure {
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: 0;
    height: 6%;
    border-radius: 999px 999px 0 0;
    /* Cylindre (bords foncés, centre éclairci) par-dessus un dégradé fixe à la hauteur du tube : la colonne ne fait que le dévoiler */
    background:
        linear-gradient(to right, color-mix(in srgb, var(--marine) 20%, transparent), color-mix(in srgb, var(--blanc) 35%, transparent) 45%, color-mix(in srgb, var(--marine) 20%, transparent)),
        linear-gradient(to top, var(--glace) 0%, var(--orange) 100%);
    background-size: 100% 100%, 100% min(52vh, 460px);
    background-position: bottom;
    background-repeat: no-repeat;
}
.thermo-etapes-reflet {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 7px;
    width: 3px;
    border-radius: 3px;
    background: var(--blanc);
    opacity: .7;
    filter: blur(1px);
}
.thermo-etapes-graduations {
    position: absolute;
    top: 0;
    left: calc(50% + 22px);
    height: min(52vh, 460px);
}
.thermo-etapes-graduations span {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translateY(50%);
    font-family: var(--font-titres);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: var(--texte-doux);
    white-space: nowrap;
}
.thermo-etapes-graduations span::before {
    content: "";
    width: 8px;
    height: 2px;
    border-radius: 1px;
    background: var(--texte-doux);
}
.thermo-etapes-reservoir {
    position: relative;
    display: block;
    width: 64px;
    height: 64px;
    margin-top: -30px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c), var(--blanc) 45%), var(--c) 45%, color-mix(in srgb, var(--c), var(--marine) 30%));
    box-shadow: 0 10px 22px color-mix(in srgb, var(--marine) 25%, transparent), 0 0 var(--lueur) var(--c);
}
/* Point de reflet en haut à gauche */
.thermo-etapes-reservoir::after {
    content: "";
    position: absolute;
    top: 13px;
    left: 15px;
    width: 12px;
    height: 9px;
    border-radius: 50%;
    background: var(--blanc);
    opacity: .8;
    filter: blur(1px);
    transform: rotate(-30deg);
}
@media (prefers-reduced-motion: reduce) {
    .thermo-etapes-corps {
        transform: none;
    }
}
/* Le conteneur .overflow-hidden des gabarits empêcherait le sticky : clip rogne pareil sans créer de zone de défilement */
.overflow-hidden:has(.section-etapes) {
    overflow: clip !important;
}
/* Étapes : un H3 et ce qui le suit, toujours lisibles ; le filet et le numéro passent à l'orange quand le mercure les atteint */
.etapes-actives .etape {
    min-height: 28vh;
    padding: 24px 0;
    border-top: 2px solid var(--ligne);
    transition: border-color .5s ease;
}
.etapes-actives .etape-numero {
    color: var(--texte-doux);
    transition: color .5s ease;
}
.etapes-actives .etape.atteinte {
    border-top-color: var(--orange);
}
.etapes-actives .etape.atteinte .etape-numero {
    color: var(--orange);
}
@media (prefers-reduced-motion: reduce) {
    .etapes-actives .etape,
    .etapes-actives .etape-numero {
        transition: none;
    }
}
/* Été (.saison-ete) : le mercure descend de 30° à 22°, du --orange au --bleu (--glace serait illisible sur fond clair) */
.saison-ete .thermo-etapes {
    --c: var(--orange);
}
.saison-ete .thermo-etapes-valeur {
    color: var(--orange);
}
.saison-ete .thermo-etapes-mercure {
    height: 92%;
    background-image:
        linear-gradient(to right, color-mix(in srgb, var(--marine) 20%, transparent), color-mix(in srgb, var(--blanc) 35%, transparent) 45%, color-mix(in srgb, var(--marine) 20%, transparent)),
        linear-gradient(to top, var(--bleu) 0%, var(--orange) 100%);
}
.saison-ete .etapes-actives .etape.atteinte {
    border-top-color: var(--bleu);
}
.saison-ete .etapes-actives .etape.atteinte .etape-numero {
    color: var(--bleu);
}


/* Effet F1 « Formulaire en 3 étapes » (assets/js/effets/formulaire-etapes.js) : classe .f1-actif posée par le script */
.f1-entete {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 8px;
}
.f1-compteur {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--blanc) 80%, transparent);
}
.f1-jauge {
    display: flex;
    align-items: center;
}
.f1-jauge-barre {
    position: relative;
    width: 96px;
    height: 4px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--blanc) 25%, transparent);
    overflow: hidden;
}
/* Même dégradé fixe que M1, dévoilé par la largeur du niveau */
.f1-jauge-niveau {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4%;
    background: linear-gradient(to right, var(--glace) 0%, var(--orange) 100%) left / 96px 100% no-repeat;
    transition: width .5s ease;
}
/* Été (.saison-ete) : dégradé inversé, de l'orange vers la glace */
.saison-ete .f1-jauge-niveau {
    background-image: linear-gradient(to right, var(--orange) 0%, var(--glace) 100%);
}
.f1-etape {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
/* Étape 2 : champs de l'autre projet (maison ou bâtiment) cachés par le script ; .wpcf7 label les afficherait sinon */
.f1-etape > [hidden] {
    display: none;
}
.f1-titre {
    float: none;
    width: 100%;
    margin: 0 0 4px;
    padding: 0;
    font-family: var(--font-titres);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--blanc);
}
.f1-titre:focus {
    outline: none;
}
/* Messages d'erreur de CF7 lisibles sur le marine du bloc (le rouge par défaut n'a pas assez de contraste) */
.f1-actif .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 1.4rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--orange) 25%, var(--blanc));
}
.f1-entree {
    animation: f1-entree .26s ease both;
}
@keyframes f1-entree {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: none; }
}
/* Étape 1 : la liste déroulante reste dans le formulaire (envoi, message d'erreur), les cartes la remplacent à l'écran */
.f1-cache,
.f1-projet-source select {
    display: none;
}
.wpcf7 .f1-projet-source {
    margin: 0;
}
.f1-cartes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
}
@media (min-width: 576px) {
    .f1-cartes {
        grid-template-columns: 1fr 1fr;
    }
}
.f1-carte {
    padding: 16px 18px;
    border: 1px solid color-mix(in srgb, var(--blanc) 35%, transparent);
    border-radius: var(--rayon-champ);
    background: color-mix(in srgb, var(--blanc) 4%, transparent);
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    color: var(--blanc);
    transition: background-color .2s ease, border-color .2s ease;
}
.f1-carte:hover {
    border-color: var(--blanc);
    background: color-mix(in srgb, var(--blanc) 10%, transparent);
}
.f1-carte[aria-pressed="true"] {
    border-color: var(--orange-action);
    background: var(--orange-action);
}
.f1-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 32px;
}
.f1-actions .submit {
    position: relative;
    flex: 1 1 240px;
}
.f1-suivant {
    margin-left: auto;
}
/* Liens dans un formulaire sur fond bleu (consentement, etc.) : la règle globale « a » les rend bleus et en bloc */
.wpcf7 .consentement a,
.bloc-couleur .wpcf7 a {
    display: inline;
    color: var(--blanc);
    text-decoration: underline;
}
.bloc-couleur .wpcf7 ::placeholder {
    color: color-mix(in srgb, var(--blanc) 70%, transparent);
}
/* Consentement : case à gauche, alignée sur la première ligne du texte ; la case et le libellé sont cliquables (label) */
.wpcf7 .consentement .wpcf7-list-item {
    display: block;
    margin: 0;
}
.wpcf7 .consentement label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0 0;
    text-align: left;
    cursor: pointer;
}
.wpcf7 .consentement input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: .2em 0 0;
    padding: 0;
    accent-color: var(--orange-action);
    cursor: pointer;
}
/* F1 : la jauge pulse doucement pendant l'envoi */
.f1-jauge.f1-envoi .f1-jauge-niveau {
    animation: f1-pulsation 1.2s ease-in-out infinite;
}
@keyframes f1-pulsation {
    50% { opacity: .45; }
}
.f1-actions .wpcf7-submit:disabled {
    cursor: default;
    opacity: .7;
}
/* Page Merci : « 21° » au-dessus du H1 */
.merci-21 {
    display: block;
    margin-bottom: 16px;
    font-family: var(--font-titres);
    font-size: clamp(88px, 12vw, 168px);
    font-weight: 800;
    line-height: .8;
    color: var(--orange);
    text-shadow: 0 0 48px color-mix(in srgb, var(--orange) 45%, transparent);
    animation: merci-21 .9s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes merci-21 {
    from { opacity: 0; transform: translateY(24px); color: var(--glace); text-shadow: none; }
    to { opacity: 1; transform: none; }
}
/* Été (.saison-ete) : « 22° » en glace, qui part de l'orange */
.saison-ete .merci-21 {
    color: var(--glace);
    text-shadow: 0 0 48px color-mix(in srgb, var(--glace) 45%, transparent);
    animation-name: merci-22;
}
@keyframes merci-22 {
    from { opacity: 0; transform: translateY(24px); color: var(--orange); text-shadow: none; }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .f1-entree,
    .merci-21,
    .saison-ete .merci-21,
    .f1-jauge.f1-envoi .f1-jauge-niveau {
        animation: none;
    }
    .f1-jauge-niveau,
    .f1-carte,
    .f1-retour,
    .f1-suivant {
        transition: none;
    }
}

/* Estimateur de subvention ([estimateur_subvention], assets/js/effets/estimateur.js) : carte marine, halo orange (E1) */
.estimateur {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4vw, 56px);
    border-radius: var(--rayon-carte);
    background: var(--marine);
    color: var(--blanc);
    text-align: left;
}
.estimateur-halo {
    position: absolute;
    left: 75%;
    top: 55%;
    width: 140%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, color-mix(in srgb, var(--orange) 45%, transparent), color-mix(in srgb, var(--orange) 0%, transparent));
    opacity: .25;
    pointer-events: none;
}
.estimateur-statique,
.estimateur-outil {
    position: relative;
}
.estimateur-actif .estimateur-statique {
    display: none;
}
.estimateur-tableau {
    width: 100%;
    margin-bottom: 24px;
    border-collapse: collapse;
}
.estimateur-tableau caption {
    caption-side: top;
    padding: 0 0 16px;
    color: color-mix(in srgb, var(--blanc) 80%, transparent);
}
.estimateur-tableau th,
.estimateur-tableau td {
    padding: 12px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--blanc) 18%, transparent);
    vertical-align: top;
}
.estimateur-tableau th {
    padding-right: 24px;
    font-weight: 600;
}
.estimateur-outil:not([hidden]) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 992px) {
    .estimateur-outil:not([hidden]) {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 56px;
        align-items: center;
    }
}
.estimateur-reglages {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.estimateur-groupe {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.estimateur-legende,
.estimateur-curseur label {
    float: none;
    display: block;
    width: auto;
    margin: 0 0 12px;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--blanc) 85%, transparent);
}
.estimateur-cartes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 576px) {
    .estimateur-cartes {
        grid-template-columns: 1fr 1fr;
    }
}
.estimateur-carte {
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--blanc) 30%, transparent);
    border-radius: var(--rayon-champ);
    background: color-mix(in srgb, var(--blanc) 4%, transparent);
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    color: var(--blanc);
    transition: background-color .2s ease, border-color .2s ease;
}
.estimateur-carte:hover {
    border-color: var(--blanc);
    background: color-mix(in srgb, var(--blanc) 10%, transparent);
}
.estimateur-carte[aria-pressed="true"] {
    border-color: var(--orange-action);
    background: var(--orange-action);
}
.estimateur-panneau:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.estimateur-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 20px 8px 0;
    cursor: pointer;
}
.estimateur-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--orange-action);
}
.estimateur-curseur {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 16px;
}
.estimateur-curseur output {
    font-family: var(--font-titres);
    font-weight: 700;
    white-space: nowrap;
}
.estimateur-curseur input[type="range"],
.estimateur-curseur .estimateur-note {
    grid-column: 1 / -1;
}
.estimateur-curseur input[type="range"] {
    width: 100%;
    height: 28px;
    margin: 0;
    accent-color: var(--orange-action);
    cursor: pointer;
}
.estimateur-note {
    margin: 8px 0 0;
    font-size: 1.4rem;
    color: color-mix(in srgb, var(--blanc) 70%, transparent);
}
/* Interrupteur : case native (role="switch") dessinée en glissière */
.estimateur-interrupteur {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    cursor: pointer;
}
.estimateur-interrupteur input {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 24px;
    margin: 0;
    border: 1px solid color-mix(in srgb, var(--blanc) 50%, transparent);
    border-radius: var(--rayon-pilule);
    background: color-mix(in srgb, var(--blanc) 15%, transparent);
    appearance: none;
    cursor: pointer;
    transition: background-color .2s ease;
}
.estimateur-interrupteur input::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--blanc);
    transition: transform .2s ease;
}
.estimateur-interrupteur input:checked {
    border-color: var(--orange-action);
    background: var(--orange-action);
}
.estimateur-interrupteur input:checked::after {
    transform: translateX(20px);
}
.estimateur-resultat {
    container-type: inline-size;
}
.estimateur-resultat p {
    margin: 0;
}
.estimateur-jusqua {
    font-size: 1.8rem;
    color: color-mix(in srgb, var(--blanc) 85%, transparent);
}
.estimateur-chiffre {
    font-family: var(--font-titres);
    font-size: clamp(48px, 8vw, 128px);
    font-size: min(128px, 20cqi); /* « 54 000 $ » ≈ 4,6 em : tient dans la colonne */
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.02em;
    color: var(--orange);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.estimateur .estimateur-detail {
    margin-top: 12px;
    font-weight: 600;
}
.estimateur .estimateur-mention {
    margin-top: 16px;
    font-size: 1.4rem;
    line-height: 1.5;
    color: color-mix(in srgb, var(--blanc) 75%, transparent);
}
.estimateur .estimateur-federal {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid color-mix(in srgb, var(--blanc) 18%, transparent);
}
.estimateur .cta-secondaire {
    margin-top: 24px;
}
@media (prefers-reduced-motion: reduce) {
    .estimateur-carte,
    .estimateur-interrupteur input,
    .estimateur-interrupteur input::after {
        transition: none;
    }
}
/* Accueil : section de l'estimateur, après « Trouvez votre subvention » ; page : contenu sous la bannière */
#estimateur-accueil,
.contenu-page {
    padding: 5rem 0;
}
/* Fiches : lien « Calculer mon montant » sous la section Montant */
.lien-calculateur {
    margin-top: 8px;
}
/* Effet A5 « Dégel » (assets/js/effets/degel.js) : « 404 » décoratif au-dessus du H1 de la page 404 ; givré et figé sans JS */
.degel {
    display: flex;
    gap: 2vw;
    margin-bottom: 8px;
    font-family: var(--font-titres);
    font-weight: 900;
    font-size: clamp(88px, 22vw, 200px);
    line-height: 0.9;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}
.degel-lettre {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.degel-chiffre {
    display: inline-block;
    color: var(--glace);
    text-shadow: 0 0 18px color-mix(in srgb, var(--glace) 35%, transparent), 0 0 2px var(--blanc);
    will-change: transform;
}
.degel-temp {
    font-family: var(--font-contenu);
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: color-mix(in srgb, var(--blanc) 70%, transparent);
}
/* Bannière animée « Maison en coupe » (includes/maison-coupe.php, assets/js/effets/maison-coupe.js) : texte à gauche, maison à droite ;
   sous 768 px, la maison passe sous le texte. Sans JS : fond marine et maison à 21 °C */
#banniere.animation-maison-coupe {
    z-index: 0; /* contexte d'empilement propre : la neige reste sous l'en-tête */
    height: auto;
    min-height: min(100svh, 820px);
    background-color: var(--marine);
}
#banniere.animation-maison-coupe .container,
#banniere.animation-maison-coupe .container > .row,
#banniere.animation-maison-coupe .container > .row > .col-12 {
    min-height: min(100svh, 820px);
}
#banniere.animation-maison-coupe .container-fluid {
    position: relative;
    z-index: 2;
}
#banniere.animation-maison-coupe .container > .row > .col-12 {
    flex-direction: column;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 24px;
    padding-top: 110px;
    padding-bottom: 40px;
}
#banniere.animation-maison-coupe h1 {
    color: var(--blanc);
    text-shadow: 0 0 40px color-mix(in srgb, var(--glace) 25%, transparent);
}
#banniere.animation-maison-coupe h1 span {
    color: var(--orange);
}
#banniere.animation-maison-coupe .scroll-to {
    display: none;
}
/* La colonne dégage déjà l'en-tête : pas de second espace au-dessus du texte */
#banniere.animation-maison-coupe .texte-banniere {
    padding-top: 0;
}
/* Mobile : H1, texte et bouton principal visibles sans défiler à 375 × 667 */
@media (max-width: 767px) {
    #banniere.animation-maison-coupe .container > .row > .col-12 {
        padding-top: 88px;
    }
    #banniere.animation-maison-coupe .texte-banniere p {
        font-size: 1.6rem;
    }
}
.maison-coupe {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
    max-width: 440px;
}
/* Hauteur réservée dès le HTML (pas de décalage de mise en page) */
.maison-svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 640 / 580;
    overflow: visible;
    font-family: var(--font-contenu);
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}
/* Dessin de la maison : couleurs tirées des jetons (sans JS et en mouvement réduit, état final de l'hiver) */
.maison-sol {
    fill: color-mix(in srgb, var(--blanc) 4%, transparent);
}
.maison-toit,
.maison-appareil {
    fill: color-mix(in srgb, var(--marine) 88%, var(--bleu));
}
.maison-toit,
.maison-fenetres {
    stroke: color-mix(in srgb, var(--blanc) 60%, transparent);
}
.maison-murs,
.maison-fenetres,
.maison-helice {
    fill: var(--marine);
}
.maison-coupe [data-piece] {
    fill: color-mix(in srgb, var(--orange) 28%, transparent);
    stroke: color-mix(in srgb, var(--blanc) 50%, transparent);
}
.maison-ligne-sol {
    stroke: color-mix(in srgb, var(--blanc) 45%, transparent);
}
.maison-coupe [data-chaleur],
.maison-tuyau {
    stroke: var(--orange);
}
.maison-givre-vitre {
    fill: color-mix(in srgb, color-mix(in srgb, var(--glace), var(--blanc)) 55%, transparent);
}
.maison-givre-etoile {
    stroke: var(--blanc);
}
.maison-appareil,
.maison-helice,
.maison-ventilateur path {
    stroke: var(--glace);
}
.maison-etiquette {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    fill: color-mix(in srgb, var(--blanc) 65%, transparent);
}
.maison-dehors {
    font-size: 26px;
    font-weight: 600;
    fill: var(--glace);
}
.maison-temps {
    font-size: 19px;
    font-weight: 600;
    fill: var(--blanc);
}
/* Bouton : place réservée sans JS et en mouvement réduit, affiché par le script */
.maison-rallumer {
    visibility: hidden;
}
.maison-rallumer::before {
    content: "↻ ";
}
.maison-rallumer.maison-rallumer-actif {
    visibility: visible;
}
.maison-neige {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}
/* État froid avant l'affichage, seulement si le script va animer (classe js-reveal posée dans le <head>, absente en mouvement réduit) */
.js-reveal .maison-coupe [data-piece] {
    fill: color-mix(in srgb, var(--glace) 8%, transparent);
}
.js-reveal .maison-coupe [data-chaleur] {
    opacity: 0;
}
.js-reveal .maison-coupe [data-givre] {
    opacity: 1;
}
.js-reveal .maison-coupe [data-temp] {
    visibility: hidden;
}
/* Été (.saison-ete) : chaud dehors, pièces qui passent de l'orange à la glace, ondes fraîches, sans givre */
.saison-ete .maison-dehors {
    fill: var(--orange);
}
.saison-ete .maison-coupe [data-piece] {
    fill: color-mix(in srgb, var(--glace) 28%, transparent);
}
.js-reveal .saison-ete .maison-coupe [data-piece] {
    fill: color-mix(in srgb, var(--orange) 8%, transparent);
}
.saison-ete .maison-coupe [data-chaleur],
.saison-ete .maison-tuyau {
    stroke: var(--glace);
}
.saison-ete .maison-coupe [data-givre] {
    display: none;
}
.maison-coupe .meteo-mention-banniere {
    text-align: right;
}
@media (min-width: 768px) {
    #banniere.animation-maison-coupe .container > .row > .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
        flex-direction: row;
        align-items: center !important;
        justify-content: space-between !important;
        gap: clamp(32px, 5vw, 72px);
    }
    #banniere.animation-maison-coupe .texte-banniere {
        flex: 1 1 50%;
    }
    /* Deux colonnes : H1 plus petit que la bannière pleine largeur (7rem) */
    #banniere.animation-maison-coupe h1 {
        font-size: clamp(4.2rem, 4.4vw, 6.4rem);
    }
    #banniere.animation-maison-coupe h1 span {
        font-size: clamp(2.8rem, 3vw, 4.4rem);
    }
    #banniere.animation-maison-coupe .texte-banniere .col-lg-8 {
        width: 100%;
    }
    .maison-coupe {
        flex: 1 1 45%;
        max-width: 560px;
    }
}

/* ==========================================================================
   Composant bouton : une seule action principale par écran.
   .bouton = action principale (plein orange) ; .bouton-contour = action secondaire (contour, couleur héritée) ;
   .lien-fleche = le reste (texte bleu suivi de « → »).
   Les anciennes classes (.cta-primaire, .cta-secondaire, .cta-contour, etc.) sont des alias le temps de la refonte, sans style propre.
   Placé en fin de fichier : l'emporte sur les règles de l'en-tête, du menu et de CF7 de même spécificité.
   ========================================================================== */
.bouton,
.cta-primaire,
.cta-secondaire,
#entete .raccourcis .raccourci-cta a,
.panneau-menu-bouton,
.f1-suivant,
.wpcf7 input[type="submit"],
.bouton-contour,
.cta-contour,
.f1-retour,
.maison-rallumer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: var(--rayon-champ);
    font-family: var(--font-contenu);
    font-size: 1.6rem;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.bouton,
.cta-primaire,
.cta-secondaire,
#entete .raccourcis .raccourci-cta a,
.panneau-menu-bouton,
.f1-suivant,
.wpcf7 input[type="submit"] {
    border-color: var(--orange-action);
    background-color: var(--orange-action);
    color: var(--blanc);
}
.bouton:hover,
.cta-primaire:hover,
.cta-secondaire:hover,
#entete .raccourcis .raccourci-cta a:hover,
.panneau-menu-bouton:hover,
.f1-suivant:hover,
.wpcf7 input[type="submit"]:hover {
    border-color: var(--orange-action-survol);
    background-color: var(--orange-action-survol);
    color: var(--blanc);
    text-decoration: none;
}
.bouton-contour,
.cta-contour,
.f1-retour,
.maison-rallumer {
    border-color: currentColor;
    background-color: transparent;
    color: inherit;
}
.bouton-contour:hover,
.cta-contour:hover,
.f1-retour:hover,
.maison-rallumer:hover {
    background-color: color-mix(in srgb, currentColor 12%, transparent);
    color: inherit;
    text-decoration: none;
}
/* Bannières (fond foncé) : le contour hérite du blanc */
#banniere {
    color: var(--blanc);
}

.lien-fleche {
    display: inline-block;
    font-weight: 600;
    color: var(--bleu);
    text-decoration: none;
}
.lien-fleche::after {
    content: "\00a0→";
}
.lien-fleche:hover,
a:hover > .lien-fleche {
    color: var(--bleu);
    text-decoration: underline;
}
/* Sur fond foncé (bloc bleu, cartes sur image) */
.bloc-couleur .lien-fleche,
.bloc-couleur .lien-fleche:hover,
#grid-projets .lien-fleche,
#grid-projets a:hover > .lien-fleche {
    color: var(--blanc);
}
.bloc-couleur .lien-fleche::after {
    color: var(--orange);
}

/* Focus visible identique partout : --bleu sur fond clair, blanc sur fond foncé */
:focus-visible {
    outline: 2px solid var(--focus, var(--bleu));
    outline-offset: 3px;
}
#banniere,
#banniere-accueil,
.bloc-couleur,
.cta-box-final,
footer .footer,
.panneau-menu,
.estimateur,
#grid-projets .projet {
    --focus: var(--blanc);
}

/* Section Accordéons : <details> natifs, fermés par défaut, sans JS */
.accordeons-intro {
    margin-bottom: 24px;
}
.accordeons {
    border: 1px solid var(--ligne);
    border-radius: var(--rayon-carte);
    background-color: var(--blanc);
}
.accordeon + .accordeon {
    border-top: 1px solid var(--ligne);
}
.accordeon summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
}
.accordeon summary::-webkit-details-marker {
    display: none;
}
.accordeon summary h3 {
    margin: 0;
}
.accordeon summary::after {
    content: "+";
    flex-shrink: 0;
    color: var(--orange-action);
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1;
}
.accordeon[open] summary::after {
    content: "\2212";
}
.accordeon summary:hover h3 {
    color: var(--orange-action);
}
.accordeon-reponse {
    padding: 0 24px 20px;
}
.accordeon-reponse > :last-child {
    margin-bottom: 0;
}
