/* ================================================
   CEDEQ – Feuille de styles principale
   Version 1.0
   ================================================ */

/* ── Polices de la charte (non activées) ─────────
   Pour passer aux polices du logo, remplacer --font-head
   par 'Cherione' et --font-body par 'Namu' plus bas.        */
@font-face {
    font-family: 'Cherione';
    src: url('../fonts/cherionebold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Namu';
    src: url('../fonts/namu-1750.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

/* ── Variables ────────────────────────────────── */
:root {
    /* Couleurs de la charte (relevées sur le logo CEDEQ) */
    --blue:        #203c90;
    --blue-dark:   #182f73;   /* survol uniquement */
    --blue-bg:     #eef1f9;
    --red:         #d12426;
    --red-dark:    #b01e20;   /* survol uniquement */
    --red-bg:      #fbe3e3;
    --blue-tag:    #dce3f4;   /* pastille bleue, aussi visible que la rouge */
    --white:       #ffffff;
    --black:       #0e0e1a;
    --text:        #1e2240;
    --text-muted:  #5b6478;
    --border:      #dde3f0;

    /* Espacements communs à toutes les pages */
    --space-tag:   20px;   /* sous un tag */
    --space-title: 20px;   /* sous un titre (= sous un tag) */
    --space-block: 40px;   /* avant liste / cases / bouton */
    --section-y:   120px;

    --radius-sm:   10px;
    --radius:      18px;
    --radius-lg:   28px;
    --radius-xl:   40px;

    --shadow-sm:   0 2px 8px rgba(32,60,144,.08);
    --shadow:      0 8px 32px rgba(32,60,144,.12);
    --shadow-lg:   0 24px 60px rgba(32,60,144,.18);

    --transition:  .35s cubic-bezier(.4,0,.2,1);

    /* Teinte des icônes PNG noires vers les couleurs de la charte */
    --icon-blue:   brightness(0) saturate(100%) invert(18%) sepia(42%) saturate(3700%) hue-rotate(218deg) brightness(91%) contrast(93%);
    --icon-red:    brightness(0) saturate(100%) invert(19%) sepia(88%) saturate(3600%) hue-rotate(350deg) brightness(88%) contrast(93%);
    --icon-white:  brightness(0) invert(1);
    --transition-fast: .2s ease;

    --font-head:   'Montserrat', sans-serif;
    --font-body:   'Inter', sans-serif;

    --container:   1240px;
    --header-h:    88px;
}

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 17px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}
/* Grands écrans : texte plus grand */
@media (min-width: 1440px) { html { font-size: 18px; } :root { --container: 1320px; } }
@media (min-width: 1800px) { html { font-size: 19px; } :root { --container: 1440px; } }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul { list-style: none; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ── Loader ────────────────────────────────────── */
.loader {
    position: fixed;
    inset: 0;
    background: var(--blue);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .5s ease, visibility .5s ease;
}
.loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-logo {
    /*width: 100px;*/
    animation: loaderPulse 1s ease infinite alternate;
}
@keyframes loaderPulse {
    from { transform: scale(.9); opacity: .6; }
    to   { transform: scale(1.05); opacity: 1; }
}

/* ── Container ────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .03em;
    /* Même interaction pour tous les boutons : rebond + ombre */
    transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover  { transform: translateY(-4px) scale(1.03); }
.btn:active { transform: translateY(0) scale(.98); }

.btn-primary {
    background: var(--blue);
    color: var(--white);
    border: 2px solid var(--blue);
    box-shadow: 0 4px 16px rgba(32,60,144,.25);
}
.btn-primary:hover {
    color: var(--white);
    box-shadow: 0 14px 34px rgba(32,60,144,.4);
}

.btn-red {
    background: var(--red);
    color: var(--white);
    border: 2px solid var(--red);
    box-shadow: 0 4px 16px rgba(209,36,38,.25);
}
.btn-red:hover {
    color: var(--white);
    box-shadow: 0 14px 34px rgba(209,36,38,.4);
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
}
.btn-outline:hover {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 14px 34px rgba(32,60,144,.3);
}

.btn-white {
    background: var(--white);
    color: var(--blue);
    border: 2px solid var(--white);
    box-shadow: 0 4px 16px rgba(14,14,26,.15);
}
.btn-white:hover { box-shadow: 0 14px 34px rgba(14,14,26,.28); }
/* Bouton blanc à texte rouge (footer, bandeaux) */
.btn-white--red { color: var(--red); }

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.7);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,.15);
    border-color: var(--white);
    box-shadow: 0 14px 34px rgba(14,14,26,.25);
}

.btn-sm {
    padding: 10px 22px;
    font-size: .88rem;
}
.btn-lg {
    padding: 18px 44px;
    font-size: 1.1rem;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Typography ───────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
}

/* Échelle unique : 3 tailles de titres + 1 taille de texte courant */
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: var(--space-title); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Section helpers ─────────────────────────── */
.section { padding: var(--section-y) 0; }
.section-sm { padding: 60px 0; }
.section-blue { background: var(--blue); color: var(--white); }
.section-blue h1, .section-blue h2, .section-blue h3 { color: var(--white); }
.section-bg { background: var(--blue-bg); }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}
.section-title {
    margin-bottom: var(--space-title);
    color: var(--text);
}
.section-subtitle {
    color: var(--text);
    font-size: 1.05rem;
}

/* ── CEDEQ motif icône ───────────────────────── */
.cedeq-motif {
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    background: url('../clients/CEDEQ_Icon_Red_Blue_White.png') center / contain no-repeat;
}
.cedeq-motif::before,
.cedeq-motif::after { display: none; }

/* Tag / badge */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--blue-tag);
    color: var(--blue);
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: var(--space-tag);
}
.section-tag--red { background: var(--red-bg); color: var(--red); }
.section-bg .section-tag { background: var(--blue-tag); }
/* Sur fond bleu : pastille blanche, texte rouge (lisible) */
.why-section .section-tag,
.section-blue .section-tag {
    background: var(--white);
    color: var(--red);
}

/* ── Reading Progress ────────────────────────── */
.reading-progress {
    height: 3px;
    background: var(--red);
    width: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width .1s linear;
}

/* ── HEADER ──────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.site-header.scrolled {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}
.site-header.scrolled .logo-name,
.site-header.scrolled .logo-sub,
.site-header.scrolled .nav-link,
.site-header.scrolled .btn-outline.header-depannage {
    color: var(--text);
}
.site-header.scrolled .logo-circles svg circle { stroke: var(--blue); }
.site-header.scrolled .nav-link:hover { color: var(--blue); }
.site-header.scrolled .btn-outline.header-depannage { border-color: var(--blue); color: var(--blue); }
.site-header.scrolled .btn-outline.header-depannage:hover { background: var(--blue); color: var(--white); }

/* Header transparent (top of page) */
.site-header:not(.scrolled) .logo-name { color: var(--white); }
.site-header:not(.scrolled) .logo-sub  { color: rgba(255,255,255,.75); }
.site-header:not(.scrolled) .logo-circles svg circle { stroke: var(--white); }
.site-header:not(.scrolled) .nav-link  { color: rgba(255,255,255,.9); }
.site-header:not(.scrolled) .nav-link:hover { color: var(--white); }
.site-header:not(.scrolled) .btn-outline.header-depannage { border-color: var(--white); background: var(--white); color: var(--blue); }
.site-header:not(.scrolled) .btn-outline.header-depannage:hover { background: var(--white); color: var(--red); }
.header-depannage { font-variant-numeric: tabular-nums; }
.site-header:not(.scrolled) .nav-toggle span { background: var(--white); }

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--header-h);
}

/* Logo */
.logo { display: flex; align-items: center; flex-shrink: 0; }

/* Logo blanc (hero bleu) affiché, logo sombre caché */
.logo-img { display: block; }
.logo-img--light { display: block; }
.logo-img--dark  { display: none; }

/* Header scrollé (fond blanc) → logo sombre */
.site-header.scrolled .logo-img--light { display: none; }
.site-header.scrolled .logo-img--dark  { display: block; }

/* Nav links */
.main-nav { margin-left: auto; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    white-space: nowrap;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-link:hover { background: rgba(32,60,144,.08); }
.nav-item.active > .nav-link { color: var(--blue); }
.site-header:not(.scrolled) .nav-item.active > .nav-link { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-link-dropdown { display: flex; align-items: center; gap: 5px; }
.dropdown-arrow { width: 12px; height: 8px; transition: transform var(--transition-fast); }
.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: 100%;                         /* collé au trigger — plus de gap */
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 18px 12px 12px;           /* padding-top = espace visuel sous le trigger */
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    pointer-events: none;
    border: 1px solid var(--border);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}
/* Pont invisible qui comble l'espace entre le trigger et le menu */
.nav-dropdown:hover .dropdown-menu::before,
.nav-dropdown.open .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: .92rem;
    font-weight: 600;
    color: var(--text);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.dropdown-item:hover, .dropdown-item.active {
    background: var(--blue-bg);
    color: var(--blue);
}
.dropdown-icon { width: 24px; height: 24px; object-fit: contain; filter: var(--icon-blue); }
.dropdown-item--chauffage,
.dropdown-item--chauffage:hover,
.dropdown-item--chauffage.active { color: var(--red); }
.dropdown-item--chauffage:hover { background: var(--red-bg); }
.dropdown-item--chauffage .dropdown-icon { filter: var(--icon-red); }

/* Header CTAs */
.header-ctas { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Burger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    margin-left: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14,14,26,.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}
.nav-overlay.active { opacity: 1; visibility: visible; }

/* ── HERO ─────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--blue);
    padding-bottom: 140px;   /* laisse de la place pour les cartes services en overlap */
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(32,60,144,.88) 0%, rgba(32,60,144,.7) 50%, rgba(32,60,144,.25) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
    padding-top: var(--header-h);
}
/* Capsule « 10 ans de bons tuyaux » */
.hero-capsule {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 50px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(14,14,26,.25);
    margin-bottom: 28px;
    animation: fadeUp .8s ease both;
}
.hero-capsule img { height: 30px; width: auto; }
.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-title);
    animation: fadeUp .8s .2s ease both;
}
.nowrap { white-space: nowrap; }
.hero-text {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 0;
    animation: fadeUp .8s .35s ease both;
}
.hero-scroll {
    position: absolute;
    bottom: 160px;   /* au-dessus des cartes services qui remontent de 140px */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,.6);
    animation: fadeIn 1s 1.2s ease both;
}
.hero-scroll svg { width: 48px; height: 48px; animation: bounceDown 1.5s ease infinite; }

/* ── RONDS DU LOGO (décor) ────────────────────────
   Arcs reprenant la forme et l'épaisseur du logo CEDEQ.
   Utilisation : <span class="ring ring--red ring--tr"></span>
   dans une section en position:relative; overflow:hidden.   */
.ring {
    position: absolute;
    width: var(--ring-size, 320px);
    aspect-ratio: 200 / 106.7;
    background: url('../img/arc-red.svg') center / contain no-repeat;
    pointer-events: none;
    z-index: 0;
    /* --ring-rot : orientation de base ; --ring-x/y/spin : mouvement au défilement (main.js) */
    transform: translate(var(--ring-x, 0px), var(--ring-y, 0px)) rotate(calc(var(--ring-rot, 0deg) + var(--ring-spin, 0deg)));
    will-change: transform;
}
.ring--blue  { background-image: url('../img/arc-blue.svg'); }
.ring--white { background-image: url('../img/arc-white.svg'); opacity: .12; }
.ring--flip  { --ring-rot: 180deg; }
/* positions */
.ring--tr { top: -10px; right: -60px; --ring-rot: 180deg; }   /* arc bas, collé en haut à droite */
.ring--bl { bottom: -10px; left: 8%; }                        /* arc haut, posé en bas à gauche */
.ring--br { bottom: -10px; right: 6%; }
.ring--tl { top: -10px; left: -60px; --ring-rot: 180deg; }
.ring + .container, .ring ~ .container { position: relative; z-index: 1; }

/* ── CARDS SERVICES ───────────────────────────── */
.services-strip {
    background: transparent;
    padding: 0 0 60px;
    position: relative;
    z-index: 10;
    margin-top: -140px;   /* remonte de 140px dans la hero */
}
.services-strip .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }

/* Variante valeurs (Maîtrise / Clé en main / Finitions) */
.service-card--value {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: var(--icon-blue);
    margin: 0 auto var(--space-tag);
}
.service-card h3 {
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 1.05rem;
    color: var(--blue);
    margin-bottom: 12px;
}
.service-card p { font-size: .95rem; color: var(--text); margin: 0; }

/* ── ABOUT STRIP ──────────────────────────────── */
.about-strip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-image-wrap {
    position: relative;
    isolation: isolate;
}
.about-image-main {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}
.about-image-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--white);
    color: var(--blue);
    border-radius: var(--radius);
    padding: 22px 28px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.about-image-badge img { height: 64px; width: auto; display: block; }
.about-image-badge .badge-number {
    display: block;
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
}
.about-image-badge .badge-label {
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* Décor : arc du logo derrière la photo */
.about-image-wrap::before {
    content: '';
    position: absolute;
    top: -46px;
    left: -46px;
    width: 150px;
    aspect-ratio: 200 / 106.7;
    background: url('../img/arc-red.svg') center / contain no-repeat;
    z-index: -1;
}
.about-image-wrap--blue::before { background-image: url('../img/arc-blue.svg'); }

.about-content .section-tag { margin-bottom: var(--space-tag); }
.about-content h2 { margin-bottom: var(--space-title); }
.about-content p { margin-bottom: 16px; color: var(--text); }
.about-content > .btn { margin-top: var(--space-block); }

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin-top: var(--space-block);
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.feature-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: var(--blue-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon img { width: 30px; height: 30px; object-fit: contain; filter: var(--icon-blue); }
.page-chauffage .feature-icon { background: var(--red-bg); }
.page-chauffage .feature-icon img { filter: var(--icon-red); }
.feature-text h4 { font-size: .95rem; margin: 0; }

/* ── STATS ────────────────────────────────────── */
.stats-section {
    background: var(--blue);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}
.stats-section .ring--tr { --ring-size: 240px; right: -70px; }
.stats-section .ring--bl { --ring-size: 170px; left: -40px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.stat-number {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}
.stat-suffix { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.stat-label {
    font-size: .95rem;
    color: var(--white);
    margin-top: 10px;
    letter-spacing: .02em;
}

/* ── PRESTATIONS GRID ─────────────────────────── */
.prestations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.prestation-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    background: var(--white);
    border-top: 4px solid var(--blue);
    transition: transform var(--transition), box-shadow var(--transition);
}
.prestation-card--red { border-top-color: var(--red); }
.prestation-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.prestation-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}
.prestation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.prestation-card:hover .prestation-image img { transform: scale(1.05); }

.prestation-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(32,60,144,.6), transparent 60%);
}
.prestation-card--red .prestation-image-overlay { background: linear-gradient(to top, rgba(209,36,38,.55), transparent 60%); }

.prestation-body { padding: 40px; }
.prestation-body h3 { margin-bottom: 16px; }
.prestation-body p { color: var(--text); font-size: .95rem; margin-bottom: 20px; }

.prestation-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: var(--space-block);
}
.prestation-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .95rem;
    color: var(--text);
}
.prestation-feature::before {
    content: '';
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: var(--blue);
    border-radius: 50%;
}
.prestation-card--red .prestation-feature::before { background: var(--red); }

/* ── SOLUTION CARDS (chauffage/sanitaire pages) ──
   Flex centré : une ligne incomplète se centre sous les autres */
.solutions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
}
.solution-card {
    flex: 0 1 calc((100% - 56px) / 3);
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue);
}
.solution-card-header {
    background: var(--blue-bg);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background var(--transition);
}
.solution-card:hover .solution-card-header { background: var(--blue); }
.solution-card-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}
.solution-card-icon img { width: 36px; height: 36px; object-fit: contain; filter: var(--icon-blue); }
.solution-card-header h3 {
    font-size: 1.15rem;
    color: var(--text);
    transition: color var(--transition);
}
.solution-card:hover .solution-card-header h3 { color: var(--white); }
.solution-card-body { padding: 28px 32px 32px; flex: 1; display: flex; flex-direction: column; }
.solution-card-body .btn { margin-top: auto; align-self: flex-start; }
.solution-card-body p { color: var(--text); font-size: .95rem; margin-bottom: 20px; }
.solution-card-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}
.solution-card-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .95rem;
    color: var(--text);
}
.solution-card-feature::before {
    content: '✓';
    color: var(--blue);
    font-weight: 800;
    font-size: .8rem;
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: var(--blue-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── WHY CEDEQ (sections bleues) ──────────────── */
.why-section {
    background: var(--blue);
    padding: var(--section-y) 0;
    position: relative;
    overflow: hidden;
}
.why-section .ring--tr { --ring-size: 340px; right: -40px; }
.why-section .ring--bl { --ring-size: 220px; left: -40px; }
.why-section h2 { color: var(--white); }
.why-section .why-intro { color: var(--white); margin-bottom: 0; }

/* Grille : en-tête au-dessus, puis cartes + photo alignées sur la même hauteur */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "head ."
        "list media";
    column-gap: 80px;
    row-gap: 48px;
    position: relative;
    z-index: 1;
}
.why-grid--reverse {
    grid-template-areas:
        ". head"
        "media list";
}
.why-head  { grid-area: head; }
.why-list  { grid-area: list; }
.why-media { grid-area: media; position: relative; }

.why-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.why-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    background: rgba(255,255,255,.08);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.14);
    transition: background var(--transition), transform var(--transition);
}
.why-item:hover {
    background: rgba(255,255,255,.14);
    transform: translateX(6px);
}
.why-item-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.why-item-icon img { width: 32px; height: 32px; object-fit: contain; filter: var(--icon-blue); }
.page-chauffage .why-item-icon img { filter: var(--icon-red); }
.why-item-text h4 { color: var(--white); margin-bottom: 4px; }
.why-item-text p  { color: var(--white); opacity: .85; font-size: .95rem; margin: 0; }

/* Variante claire (fond bleu clair) */
.why-list--light .why-item { background: var(--white); border-color: var(--border); }
.why-list--light .why-item-icon { background: var(--blue-bg); }
.why-list--light .why-item-text h4,
.why-list--light .why-item-text p { color: var(--text); opacity: 1; }

/* Photo(s) : calées exactement sur la hauteur de la liste de cases */
.why-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.why-media > .why-image:first-child { position: absolute; inset: 0; }
.why-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.why-image--small {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 190px;
    height: 190px;
    min-height: 0;
    border-radius: var(--radius);
    border: 4px solid var(--white);
    z-index: 2;
}
.why-grid--reverse .why-image--small { left: auto; right: -30px; }

/* ── GALLERY GRID ─────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(32,60,144,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.gallery-item:hover .gallery-item-overlay { background: rgba(32,60,144,.5); }
.page-chauffage .gallery-item:hover .gallery-item-overlay { background: rgba(209,36,38,.5); }
.gallery-item-overlay svg {
    width: 32px;
    height: 32px;
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item-overlay svg { opacity: 1; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    transition: background var(--transition-fast);
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ── VALEURS ──────────────────────────────────── */
.valeurs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.valeur-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    border: 2px solid var(--border);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.valeur-card:hover {
    transform: translateY(-6px);
    border-color: var(--blue);
    box-shadow: var(--shadow);
}
.valeur-icon {
    width: 72px;
    height: 72px;
    background: var(--blue-bg);
    border-radius: 50%;
    margin: 0 auto var(--space-tag);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.valeur-card:hover .valeur-icon { background: var(--blue); }
.valeur-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: var(--icon-blue);
    transition: filter var(--transition);
}
.valeur-card:hover .valeur-icon img { filter: var(--icon-white); }
.valeur-card h3 { font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.valeur-card p  { font-size: .95rem; color: var(--text); }

/* ── TEAM SECTION ─────────────────────────────── */
.team-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: var(--section-y);
}
.team-intro-grid h2 { margin-bottom: var(--space-title); }
.team-intro-grid .why-list { margin-top: var(--space-block); }
.team-images {
    position: relative;
    height: 520px;
}
.team-img-main {
    position: absolute;
    width: 78%;
    height: 82%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    bottom: 0;
    left: 0;
    box-shadow: var(--shadow-lg);
}
.team-img-secondary {
    position: absolute;
    width: 44%;
    height: 52%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    top: 0;
    right: 0;
    box-shadow: var(--shadow);
    border: 4px solid var(--white);
}

/* ── CTA BANNER / BANDE BLEUE ─────────────────── */
.cta-banner {
    background: var(--blue);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner .ring--tr { --ring-size: 260px; right: -80px; }
.cta-banner .ring--bl { --ring-size: 200px; left: -50px; }
.cta-banner h2 { color: var(--white); }
.cta-banner p  { color: var(--white); max-width: 600px; margin: 0 auto 40px; font-size: 1.05rem; }
.cta-banner .cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }

/* Bande « Ils nous font confiance » */
.trust-band { padding: var(--section-y) 0; }
.trust-band .section-header { margin-bottom: 48px; }
.trust-band .section-title,
.trust-band .section-subtitle { color: var(--white); }
.trust-logos {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px;
    background: rgba(255,255,255,.08);
    border: 1px dashed rgba(255,255,255,.3);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-style: italic;
}

/* ── CONTACT FORM ─────────────────────────────── */
.contact-section { padding: var(--section-y) 0; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

/* Bloc dépannage (même style partout) */
.depannage-box {
    background: var(--red);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.depannage-box h2 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.btn-phone { font-variant-numeric: tabular-nums; }

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.contact-info-ico {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: var(--blue-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-info-ico svg { width: 24px; height: 24px; color: var(--blue); }
.contact-info-item h4 { font-size: .78rem; color: var(--text-muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: .08em; }
.contact-info-item a, .contact-info-item p { font-weight: 600; font-size: 1rem; color: var(--text); margin: 0; }
.contact-info-item a:hover { color: var(--blue); }

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 240px;
    box-shadow: var(--shadow);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* Form */
.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.contact-form-card h3 { margin-bottom: 8px; }
.form-panel > p { color: var(--text); margin-bottom: 32px; }

.form-tabs {
    display: flex;
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
}
.form-tab {
    flex: 1;
    padding: 14px 20px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    background: var(--white);
    color: var(--text);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.form-tab.active { background: var(--blue); color: var(--white); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(32,60,144,.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input[type="file"] {
    padding: 14px;
    border: 2px dashed var(--blue);
    background: var(--blue-bg);
    cursor: pointer;
}
.form-group--consent { margin-bottom: 24px; }
.form-group--consent .form-check { font-size: .88rem; color: var(--text-muted); align-items: flex-start; gap: 10px; }
.form-group--consent input { margin-top: 2px; }
.btn-block { width: 100%; justify-content: center; }
.hp-field { display: none; }

.form-checkboxes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 500;
}
.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: var(--blue);
    border-radius: 4px;
    cursor: pointer;
}

.form-success {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: var(--radius);
    padding: 20px;
    color: #2e7d32;
    font-weight: 600;
    text-align: center;
    margin-top: 16px;
}
.form-error {
    background: #fff3f4;
    border: 2px solid #f44336;
    border-radius: var(--radius);
    padding: 16px;
    color: #c62828;
    font-size: .9rem;
    margin-top: 16px;
}

/* ── PAGE HERO (pages internes) ───────────────── */
.page-hero {
    background: var(--blue);
    padding: 180px 0 110px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.page-chauffage .page-hero { background: var(--red); }

/* Diaporama photo en fond (chauffage / sanitaire) */
.page-hero-slides { position: absolute; inset: 0; }
.page-hero-slides span {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroSlide 18s infinite;
}
.page-hero-slides span:nth-child(2) { animation-delay: 6s; }
.page-hero-slides span:nth-child(3) { animation-delay: 12s; }
@keyframes heroSlide {
    0%   { opacity: 0; transform: scale(1.06); }
    6%   { opacity: 1; }
    33%  { opacity: 1; }
    40%  { opacity: 0; transform: scale(1); }
    100% { opacity: 0; }
}
.page-hero-slides::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(32,60,144,.82);
}
.page-chauffage .page-hero-slides::after { background: rgba(209,36,38,.82); }

/* Arrondi bas en SVG (net, sans pixellisation) */
.page-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 70px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 70V58C480 -18 960 -18 1440 58V70Z' fill='%23fff'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
    z-index: 2;
}
.page-hero .ring { z-index: 1; }
.page-hero .ring--tr { --ring-size: 260px; top: calc(var(--header-h) + 60px); right: -100px; --ring-rot: 205deg; }   /* incliné, sur l'angle, sous le menu */
.page-hero .ring--bl { --ring-size: 180px; left: 6%; bottom: 40px; }
.page-chauffage .page-hero .ring--red { background-image: url('../img/arc-white.svg'); opacity: .4; }
.page-hero .container { position: relative; z-index: 3; }
.page-hero h1 { color: var(--white); margin-bottom: var(--space-title); }
.page-hero p   { color: var(--white); max-width: 640px; margin: 0 auto; font-size: 1.1rem; }

/* Thème rouge de la page Chauffage */
.page-chauffage .solution-card:hover .solution-card-header { background: var(--red); }
.page-chauffage .solution-card:hover { border-color: var(--red); }
.page-chauffage .solution-card-feature::before { color: var(--red); background: var(--red-bg); }
.page-chauffage .solution-card-icon img { filter: var(--icon-red); }
.page-chauffage .section-tag { background: var(--red-bg); color: var(--red); }
.page-chauffage .why-section .section-tag { background: var(--white); color: var(--red); }

/* ── INSTAGRAM SECTION ────────────────────────── */
.instagram-section {
    padding: var(--section-y) 0;
    background: var(--white);
}
.instagram-section .section-header { margin-bottom: 48px; }
.instagram-section .section-subtitle { margin-bottom: 24px; }
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.insta-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
    display: block;
}
.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.insta-item:hover img { transform: scale(1.12); }
.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(32,60,144,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.insta-item:hover .insta-overlay { background: rgba(32,60,144,.55); }
.insta-overlay svg {
    width: 28px;
    height: 28px;
    opacity: 0;
    transition: opacity var(--transition);
}
.insta-item:hover .insta-overlay svg { opacity: 1; }
.instagram-btn svg { width: 20px; height: 20px; }

/* ── SITE FOOTER ──────────────────────────────── */
.site-footer { background: var(--blue); color: var(--white); position: relative; overflow: hidden; }
.site-footer .ring--tr { --ring-size: 260px; right: -30px; }
.footer-top { padding: 90px 0 80px; position: relative; z-index: 1; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
    gap: 50px;
}

.footer-brand .footer-logo { display: block; margin-bottom: 24px; }
.footer-brand .footer-logo img { height: 46px; width: auto; }
.footer-10ans { height: 34px; width: auto; margin-bottom: 28px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background var(--transition), color var(--transition), transform .45s cubic-bezier(.34,1.56,.64,1);
}
.footer-socials a svg { width: 20px; height: 20px; }
.footer-socials a:hover { background: var(--white); color: var(--red); transform: translateY(-3px); }

.footer-heading { font-family: var(--font-head); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-nav li  { margin-bottom: 10px; }
.footer-nav a   { font-size: .95rem; color: rgba(255,255,255,.85); transition: color var(--transition-fast), padding-left var(--transition-fast); }
.footer-nav a:hover { color: var(--white); padding-left: 5px; }

.footer-contact-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: .95rem;
    color: rgba(255,255,255,.85);
}
.footer-contact-list svg { width: 18px; height: 18px; min-width: 18px; color: var(--white); flex-shrink: 0; margin-top: 3px; }
.footer-contact-list a { color: rgba(255,255,255,.85); }
.footer-contact-list a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 24px 0;
    position: relative;
    z-index: 1;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-copy,
.footer-sep,
.footer-legal-link { font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-legal-link:hover { color: var(--white); }

/* ── SCROLL REVEAL ANIMATIONS ─────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Délais en cascade */
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* Animations keyframes */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(8px); }
}

/* ── ALERT / MESSAGES ─────────────────────────── */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: .92rem;
    margin-bottom: 20px;
}
.alert-success { background: #e8f5e9; border: 1.5px solid #81c784; color: #2e7d32; }
.alert-error   { background: #fff3f4; border: 1.5px solid #e57373; color: #c62828; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 1200px) {
    .header-inner { gap: 16px; }
    .nav-list { gap: 0; }
    .nav-link { padding: 10px 10px; }
}

@media (max-width: 1100px) {
    .solution-card { flex-basis: calc((100% - 28px) / 2); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .valeurs-grid { grid-template-columns: repeat(2, 1fr); }
    .header-depannage .header-depannage-num { display: none; }
}

@media (max-width: 900px) {
    :root { --header-h: 70px; --section-y: 90px; }

    .header-inner { gap: 0; }
    .logo-img { height: 42px !important; }

    /* Pousse le groupe devis+burger vers la droite */
    .header-ctas { margin-left: auto; gap: 8px; }

    .header-depannage,
    .header-devis {
        width: 38px;
        height: 38px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        flex-shrink: 0;
    }
    .header-devis-label { display: none; }
    .header-devis-icon { width: 18px; height: 18px; }

    .nav-toggle {
        display: flex;
        margin-left: 8px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--white);
        z-index: 999;
        padding: calc(var(--header-h) + 16px) 24px 32px;
        transform: translateY(-110%);
        transition: transform var(--transition);
        box-shadow: 0 12px 40px rgba(0,0,0,.12);
        border-radius: 0 0 24px 24px;
        overflow-y: auto;
    }
    .main-nav.open { transform: translateY(0); }

    .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav-link { color: var(--text) !important; font-size: 1.1rem; padding: 14px 16px; }
    .nav-item.active > .nav-link { color: var(--text) !important; background: none; }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        left: auto !important;
        box-shadow: none;
        border: none;
        background: var(--blue-bg);
        border-radius: var(--radius);
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: all;
        display: none !important;
        padding: 8px;
        margin-top: 4px;
        width: 100%;
    }
    .nav-dropdown.open .dropdown-menu {
        display: block !important;
        transform: none !important;
        position: static !important;
        left: auto !important;
    }

    .about-strip-grid,
    .team-intro-grid,
    .prestations-grid,
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }

    .why-grid,
    .why-grid--reverse {
        grid-template-columns: 1fr;
        grid-template-areas: "head" "list" "media";
        row-gap: 40px;
    }
    .why-media { height: 380px; }

    /* Texte d'abord, image ensuite sur mobile */
    .about-strip-grid .about-image-wrap { order: 2; }

    .about-image-badge { right: 12px; bottom: -16px; }
    .team-images { height: 360px; }
    .why-image--small { width: 130px; height: 130px; bottom: -20px; left: -10px; }
    .why-grid--reverse .why-image--small { right: -10px; }

    .services-strip .container { grid-template-columns: 1fr; }
    .services-strip { margin-top: -60px; }

    .instagram-grid { grid-template-columns: repeat(3, 1fr); }

    .hero-scroll { bottom: 74px; }
    .ring { --ring-size: 180px !important; }
}

@media (max-width: 640px) {
    .solution-card { flex-basis: 100%; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .valeurs-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-card { padding: 28px 20px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-banner .cta-btns { flex-direction: column; align-items: center; }
    .hero-capsule img { height: 24px; }
    h1 { font-size: 2.1rem; }
    .nowrap { white-space: normal; }
    .page-hero { padding: 140px 0 90px; }
}

/* ── Compléments ──────────────────────────────── */
img[src*="icons/cedeq/"] { filter: none !important; }

/* Atouts (sous les textes d'intro) : icône seule, plus grande */
.feature-icon,
.page-chauffage .feature-icon { width: 48px; height: 48px; min-width: 48px; background: none; }
.feature-icon img { width: 44px; height: 44px; }

/* Icônes des cases sur fond bleu */
.why-item-icon img { width: 36px; height: 36px; }

/* Logo « 10 ans de bons tuyaux » centré en bas du footer */
.footer-10ans-wrap { display: flex; justify-content: center; margin-bottom: 18px; }
.footer-10ans { height: 40px; width: auto; margin: 0; }

/* Info-bulle « numéro copié » (clic sur un numéro depuis un ordinateur) */
.phone-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translate(-50%, 20px);
    background: var(--text);
    color: var(--white);
    padding: 14px 22px;
    border-radius: 50px;
    font-size: .95rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
    z-index: 9500;
}
.phone-toast.show { opacity: 1; transform: translate(-50%, 0); }
.about-image-main--center { object-position: 50% 50%; }
.why-cta { align-self: flex-start; margin-top: 16px; }
.press-placeholder {
    background: var(--blue-bg);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    color: var(--text);
    border: 2px dashed var(--border);
}
.press-placeholder svg { width: 44px; height: 44px; margin: 0 auto 16px; color: var(--blue); }

/* Valeurs : icônes CEDEQ plus grandes ; au survol le fond reste clair (icônes en couleur) */
.valeur-icon { width: 92px; height: 92px; }
.valeur-icon img { width: 54px; height: 54px; }
.valeur-card:hover .valeur-icon { background: var(--blue-tag); }

/* ── Pages légales ────────────────────────────── */
.page-hero--sm { padding: 160px 0 100px; }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin: 48px 0 16px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text); }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1rem; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { margin-top: 48px; font-size: .9rem; color: var(--text-muted) !important; }
.form-check a { color: var(--blue); text-decoration: underline; }
.dv-consent a { color: white; text-decoration: underline; }
