/* =========================================================
   GLOBAL STYLES RHONE FROID
========================================================= */



* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 21px;
}

a {
    color: inherit;
    text-decoration: none;
}

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

h2 {
    line-height: 28px;
}

/* =========================================================
   LAYOUT
========================================================= */

.container {
    width: min(1120px, 92%);
    margin: auto;
}

.section {
    padding: 50px 0;
}

.muted {
    background: var(--sand);
}


/* =========================================================
   BADGES & BUTTONS
========================================================= */

.badge {
    display: inline-flex;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
     background: #e5f8fb;
    color: var(--blue);
    font-size: 0.88rem;
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.85rem 1.15rem;
    border: 0;
    border-radius: 999px;

    font-weight: 800;
    cursor: pointer;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: var(--shadow);
    text-align: center;
    width: 188px;
    display: block;
    margin: 0 auto;
}

.btn-primary:hover {
    background: var(--blue-dark);
}

.btn-secondary {
    background: var(--white);
    color: var(--blue);
    border: 1px solid #d7e7ec;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(178 215 251 / 54%);
    backdrop-filter: blur(3px);
    border-bottom: 1px solid #d7e0e3;
}

.header-grid {
    min-height: 90px;

    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 18px;
    align-items: center;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    max-height: 80px;
    width: auto;
    display: block;
}

.logo-mark {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;
    border-radius: 16px;

    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: var(--white);
    font-weight: 900;
}

.logo small {
    display: block;
    margin-top: -4px;
    color: var(--muted);
}


/* =========================================================
   NAVIGATION
========================================================= */

.main-nav {
    display: flex;
    justify-content: center;
    gap: 22px;

    font-weight: 700;
}

.main-nav a:hover {
    color: var(--cyan);
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
}

.menu-toggle span {
    display: block;

    width: 28px;
    height: 3px;
    margin: 5px;

    background: var(--blue);
    border-radius: 3px;
}

p.breadcrumb {
    text-align: left;
    font-size: 16px !important;
    font-weight: 100 !important;
}

/* =========================================================
   HERO ACCUEIL 2026 (couches + parallax)
========================================================= */

.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: min(84vh, 740px);
    display: flex;
    align-items: center;
    padding: 88px 0 84px;
    background: #05202e;
}

/* Couche image (cible du parallax) */
.hero-bg {
    position: absolute;
    inset: -12% 0;
    z-index: -3;
    background-image: var(--hero-image, none);
    background-size: cover;
    background-position: center;
    transform: scale(1.15);
    will-change: transform;
}

/* Voile dégradé : lisibilité + teinte froide */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(3, 22, 33, 0.35) 0%, rgba(3, 22, 33, 0.55) 55%, rgba(3, 22, 33, 0.85) 100%),
        linear-gradient(115deg, rgba(1, 73, 108, 0.72) 0%, rgba(1, 167, 194, 0.25) 60%, rgba(3, 22, 33, 0) 100%);
}

/* Halos flottants */
.hero-blob {
    position: absolute;
    z-index: -1;
    width: 46vw;
    max-width: 620px;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    pointer-events: none;
    will-change: transform;
}

.hero-blob-1 {
    top: -12%;
    right: -6%;
    background: radial-gradient(circle, var(--cyan, #01a7c2), transparent 68%);
    animation: heroFloat 14s ease-in-out infinite;
}

.hero-blob-2 {
    bottom: -18%;
    left: -8%;
    background: radial-gradient(circle, #3f8bff, transparent 68%);
    animation: heroFloat 18s ease-in-out infinite reverse;
}

@keyframes heroFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0, -38px, 0); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    color: #fff;
}

.home-hero .badge {
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    color: #eafcff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.home-hero .badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #37e6a4;
    animation: heroPulse 2s infinite;
}

@keyframes heroPulse {
    0%   { box-shadow: 0 0 0 0 rgba(55, 230, 164, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(55, 230, 164, 0); }
    100% { box-shadow: 0 0 0 0 rgba(55, 230, 164, 0); }
}

.home-hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(2.1rem, 5.2vw, 3.6rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.home-hero p {
    max-width: 46ch;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 500;
    line-height: 1.6;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

/* Boutons du hero (surcharge le centrage global) */
.home-hero .btn-primary {
    width: auto;
    display: inline-flex;
    margin: 0;
    padding: 0.95rem 1.6rem;
    background: linear-gradient(135deg, var(--cyan, #01a7c2), #0b7fa8);
    box-shadow: 0 12px 30px rgba(1, 167, 194, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-hero .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(1, 167, 194, 0.6);
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    padding: 0.95rem 1.5rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-weight: 800;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

/* Carte info vitrée */
.hero-card {
    padding: 30px;
    color: #fff;
    background: rgba(11, 40, 55, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    border-radius: var(--radius, 24px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-4px);
}

.hero-card h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.3rem;
}

.hero-card > p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.96rem;
    line-height: 1.55;
}

.hero-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px;
}

.hero-list li {
    position: relative;
    padding-left: 30px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
}

.hero-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(1, 167, 194, 0.25);
    border: 1px solid var(--cyan, #01a7c2);
}

.hero-list li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 5px;
    width: 4px;
    height: 8px;
    border: solid var(--cyan, #01a7c2);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.check-list {
    padding-left: 1.1rem;
}

/* Indicateur de scroll */
.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    z-index: 1;
}

.hero-scroll span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: #fff;
    animation: heroScroll 1.8s ease-in-out infinite;
}

@keyframes heroScroll {
    0%   { opacity: 0; transform: translateY(0); }
    30%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(14px); }
}

/* Base des cartes claires (conservée) */
.card,
.contact-card {
    padding: 28px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Hero des pages internes (tailles préservées) */
.page-hero h1 {
    margin: 20px auto;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.1;
    color: #fff;
}

/* =========================================================
   CARTES & GRILLES
========================================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card h2,
.card h3 {
    margin-top: 0;
    color: var(--blue-dark);
}

.card a {
    color: var(--cyan);
    font-weight: 800;
}

.card a:hover {
    color: var(--blue-dark);
}

.split,
.final-cta-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}
.card.review{
    font-size: 15px;
    margin: 9px;
    line-height: 17px;
    padding: 15px;
    text-align: center;
}


/* =========================================================
   HERO PAGES INTERNES
========================================================= */

.page-hero {
    padding: 35px 0;
    color:#fff;
    text-align:center;
    background: var(--page-hero-background);
}


.page-hero p {
    color: #d9eef4;
    backdrop-filter: none;
    background: none;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb {
    font-size: 0.9rem;
}

.breadcrumb a {
    text-decoration: none;
}


/* =========================================================
   CTA FINAL
========================================================= */

.final-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 50px 0px 0px 0px;
    padding: 64px 0;
    color: #fff;
    background: #06222f;
}

/* Image de fond des compresseurs (cible du parallax via home.js) */
.cta-bg {
    position: absolute;
    inset: -22% 0;
    z-index: -2;
    background: url('/assets/img/backgrounds/compresseurs.webp') center/cover no-repeat;
    transform: scale(1.15);
    will-change: transform;
}

/* Voile sombre pour la lisibilité du texte */
.cta-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(4, 20, 28, 0.55), rgba(4, 20, 28, 0.75)),
        linear-gradient(110deg, rgba(1, 73, 108, 0.55), rgba(4, 20, 28, 0.15));
}

/* Texte en blanc sur le fond sombre */
.final-cta h2 {
    color: #fff;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.88);
}


/* =========================================================
   GALERIE
========================================================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.gallery-item {
    margin: 0;
    display: flex;
    flex-direction: column;

    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.gallery-link {
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 230px;
    display: block;
    object-fit: cover;
}

.gallery-item figcaption {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 193px;
    padding: 15px;
}

.gallery-item figcaption strong {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #222;
    line-height: 1.3;
}

.gallery-item figcaption > span {
    margin-bottom: 12px;
    color: #666;
    line-height: 1.5;
}

.gallery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    align-items: center;
}

.gallery-category,
.gallery-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;

    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.gallery-category {
    background: var(--sand);
    color: var(--blue);
}

.gallery-badge {
    background: #ffd54f;
    color: #222;
}

/* Filtres galerie */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.gallery-filters a {
    padding: 9px 14px;
    border-radius: 999px;
background: var(--sand);
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.gallery-filters a.active,
.gallery-filters a:hover {
    background: #0b4f6c;
    color: #fff;
}


/* =========================================================
   FORMULAIRE CONTACT
========================================================= */

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form label {
    display: grid;
    gap: 6px;

    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;

    border: 1px solid #d6e2e6;
    border-radius: 14px;

    font: inherit;
}

.contact-form textarea {
    min-height: 150px;
}

.honeypot {
    display: none;
}


/* =========================================================
   AVIS & CONTENU LEGAL
========================================================= */

.review strong {
    color: #f5a400;
}

.legal h2 {
    color: var(--blue);
}
.avis-buttons {
    margin: 40px auto 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 60%;
    text-align: center;
}
.avis-rating {
    text-align: center;
    margin: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0b4f6c;
}

.avis-rating span {
    display: block;
    font-size: .9rem;
    font-weight: 400;
    color: #666;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding-top: 56px;
    background: var(--footer);
    color: #dbe8ec;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.site-footer h2,
.site-footer h3 {
    color: var(--white);
}

.site-footer a {
    display: block;
    margin: 0.4rem 0;

    color: #dbe8ec;
}

.footer-bottom {
    margin-top: 35px;
    font-size: 14px;
    padding: 15px 10px 10px 10px;
    text-align: center;
    color: #aac2c945;
    border-top: 1px solid rgb(167 158 158 / 12%);
}


/* =========================================================
   MOBILE CALL
========================================================= */

a.btn.btn-call.mobile-only {
    display: none;
}
/* Bouton appel flottant mobile */
.mobile-call {
  display: none;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .site-header {
        padding: 5px 15px;
    }

    .header-grid {
        min-height: 75px;
        grid-template-columns: auto auto;
    }

    .logo img {
        max-height: 75px;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-grid,
    .split,
    .final-cta-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cards,
    .gallery,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .home-hero {
        padding: 64px 0;
    }

    .section {
        padding: 52px 0;
    }
}


/* =========================================================
   MENU MOBILE OUVERT
========================================================= */

@media (max-width: 768px) {
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 85px;
    right: 16px;
    left: auto;

    width: 190px;
    padding: 20px;

    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--blue);
    box-shadow: var(--shadow);

    flex-direction: column;
    align-items: center;
    z-index: 1000;
  }
}


/* =========================================================
   COOKIES
========================================================= */

.cookies-banner {
    display: none;
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    max-width: 580px;
    margin: auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #d7e7ec;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.cookies-banner.is-visible {
    display: block;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 15px;
}

/* ==========================
   LIGHTBOX
========================== */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.4);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

.pagination a {
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef5f8;
    color: var(--blue);
    font-weight: 700;
}

.pagination a.active {
    background: var(--blue);
    color: #fff;
}

.gallery-modes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 0px;
    height: 0px;
}

.gallery-modes a {
    padding: 1px 10px;
    border-radius: 9px;
    border: 1px solid var(--white);
    /* background: #f4f7f8; */
    color: var(--muted);
    font-weight: 700;
}

.gallery-modes a.active,
.gallery-modes a:hover {
    background: var(--sand);
    color: var(--blue);
    border: 1px solid var(--blue);
}

/* Mode grille classique */
.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Mode grandes cartes */
.gallery-large {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.gallery-large .gallery-item img {
    height: 320px;
}

/* Mode maÃƒÂ§onnerie */
.gallery-masonry {
    display: block;
    columns: 3 260px;
    column-gap: 24px;
}

.gallery-masonry .gallery-item {
    break-inside: avoid;
    margin-bottom: 24px;
}

.gallery-masonry .gallery-item img {
    height: auto;
}

.thumbs-small .gallery-item img {
    height: 180px;
}

.thumbs-normal .gallery-item img {
    height: 230px;
}

.thumbs-large .gallery-item img {
    height: 320px;
}

.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 860px) {
    .cols-2,
    .cols-3,
    .cols-4 {
        grid-template-columns: 1fr;
    }
}

.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width:860px) {
    .cols-2,
    .cols-3,
    .cols-4 {
        grid-template-columns: 1fr;
    }
}

.error-404{
    text-align:center;
    max-width:700px;
    margin:0 auto;
}

.error-code{
    font-size:clamp(4rem,10vw,8rem);
    font-weight:800;
    line-height:1;
    color:var(--blue);
    margin-bottom:20px;
}

/* 314IPSILON - RHONE FROID - style.css */

/* =========================================================
   TARIFS
========================================================= */

.table-scroll {
    overflow-x: auto;
}

.tarifs-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tarifs-table th {
    background: var(--blue);
    color: var(--white);
    text-align: left;
    padding: 14px 16px;
}

.tarifs-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e8ecef;
    vertical-align: top;
}

.tarifs-table tr:last-child td {
    border-bottom: 0;
}

.tarifs-table .tarif-prix {
    white-space: nowrap;
    font-weight: 700;
    color: var(--blue);
}

.tarif-detail {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 400;
}

.tarifs-note {
    margin-top: 18px;
    color: var(--muted);
    font-size: .95rem;
}

/* =========================================================
   TITRES DE SECTION + CARTES SERVICES (2026)
========================================================= */

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.section-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--blue-dark));
}

.cards .card {
    --accent: #0aa6d6;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Forme SVG décorative propre à chaque carte (derrière le texte) */
.card-shape {
    position: absolute;
    top: -34px;
    right: -34px;
    width: 165px;
    height: 165px;
    z-index: -1;
    color: var(--accent);
    opacity: 0.12;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s ease;
}

.cards .card:hover .card-shape {
    opacity: 0.18;
    transform: rotate(12deg) scale(1.06);
}

/* Une couleur par nature de service (assortie à l'icone) */
.cards .card--froid     { --accent: #0aa6d6; }
.cards .card--clim      { --accent: #12b3a6; }
.cards .card--chaleur   { --accent: #ff7a3d; }
.cards .card--entretien { --accent: #23ab6b; }
.cards .card--gaz       { --accent: #7b6cff; }

/* Barre d'accent en haut, qui se remplit au survol */
.cards .card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.cards .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 46px rgba(11, 79, 108, 0.16);
    box-shadow: 0 24px 46px color-mix(in srgb, var(--accent) 32%, transparent);
}

.cards .card:hover::before {
    transform: scaleX(1);
}

/* Carte en colonne : le lien "En savoir plus" est poussé en bas et
   s'aligne donc sur le bas de la carte (les cartes d'une même ligne
   ont déjà la même hauteur grâce à la grille). */
.cards .card:not(.review) {
    display: flex;
    flex-direction: column;
}

.cards .card a {
    display: inline-block;
    margin-top: 12px;
    color: var(--accent);
}

.cards .card:not(.review) a {
    margin-top: auto;
    align-self: flex-start;
}

/* Pastille d'icone SVG */
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    border-radius: 16px;
    color: var(--accent);
    background: #eef4f8;
    background: color-mix(in srgb, var(--accent) 13%, #ffffff);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.cards .card:hover .card-icon {
    transform: rotate(-8deg) scale(1.1);
}

/* Arrivee directionnelle au scroll (gauche / bas / droite en alternance) */
.has-js .cards .card.reveal:not(.is-visible):nth-child(3n+1) {
    transform: translateX(-46px);
}

.has-js .cards .card.reveal:not(.is-visible):nth-child(3n+2) {
    transform: translateY(46px);
}

.has-js .cards .card.reveal:not(.is-visible):nth-child(3n) {
    transform: translateX(46px);
}

/* Le glissement des cartes ne doit jamais créer de scroll horizontal */
#services {
    overflow-x: clip;
}

/* Mobile (colonne unique) : arrivée verticale seulement, pas de glissé latéral */
@media (max-width: 860px) {
    .has-js .cards .card.reveal:not(.is-visible):nth-child(n) {
        transform: translateY(34px);
    }
}

/* =========================================================
   REVELATION AU SCROLL
========================================================= */

/* Masquage seulement si JS est actif (sinon tout reste visible) */
.has-js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.has-js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.cards .card.reveal:nth-child(2) { transition-delay: 0.08s; }
.cards .card.reveal:nth-child(3) { transition-delay: 0.16s; }
.cards .card.reveal:nth-child(4) { transition-delay: 0.24s; }
.cards .card.reveal:nth-child(5) { transition-delay: 0.32s; }

/* Entrée du hero : on n'anime QUE la position (pas l'opacité) pour que le
   contenu reste toujours visible, même si les animations ne jouent pas. */
.hero-content {
    animation: heroRise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}

.hero-card {
    animation: heroRise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.12s backwards;
}

@keyframes heroRise {
    from { transform: translateY(22px); }
    to   { transform: none; }
}

/* =========================================================
   RESPONSIVE HERO
========================================================= */

@media (max-width: 860px) {
    .home-hero {
        min-height: auto;
        padding: 100px 0 80px;
        text-align: center;
    }

    .hero-grid {
        gap: 30px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .home-hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-list {
        text-align: left;
    }

    .hero-scroll {
        display: none;
    }
}

/* =========================================================
   ACCESSIBILITE : mouvement reduit
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .has-js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-content,
    .hero-card,
    .hero-blob,
    .hero-scroll span,
    .home-hero .badge::before {
        animation: none;
    }

    .hero-bg {
        transform: scale(1.05);
    }
}
