:root {
    --brand: #0f172a;
    --accent: #841726;
    --bg: #f8fafc;
    --txt: #0b1220
}

* {
    box-sizing: border-box
}

html {
    min-height: 100%
}

html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 17px;
        /* Légèrement plus grand pour une meilleure lisibilité mobile */
    }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background: var(--bg);
    color: var(--txt)
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem
}

header {
    background: var(--brand);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    height: 80px
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0
}

.nav a {
    opacity: .9;
    margin: 0 .6rem
}

.nav a:hover {
    opacity: 1
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700
}

.header-logo {
    height: 60px;
    width: auto
}


.brand img {
    height: 60px;
    width: auto
}

.hero {
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
    color: #fff;
    padding: 4rem 0
}

.hero h1 {
    font-size: clamp(1.8rem, 2.6vw, 3rem);
    margin: 0 0 .4rem
}

.hero p {
    opacity: .9;
    max-width: 800px
}

.cta {
    display: flex;
    gap: .6rem;
    margin-top: 1rem
}

.cta-center {
    justify-content: center;
}

.cta a {
    background: #fff;
    color: #111827;
    padding: .6rem .9rem;
    border-radius: .6rem;
    font-weight: 600
}

.section {
    padding: 2.2rem 0
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04)
}

footer {
    background: #0b1220;
    color: #9ca3af;
    padding: 2rem 0;
    margin-top: 3rem;
    font-size: 12px;
}

/* Footer helpers */
.footer-title {
    font-size: 1rem;
    color: #fff;
    text-align: center;
    margin: 0;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo-wrap {
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 64px;
    width: auto;
}

small,
time {
    color: #6b7280
}

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

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    cursor: pointer;
}

.card-link:hover,
.card-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
    border-color: #d1d5db;
    outline: none;
}

.card-media img {
    display: block;
    width: 100%;
    height: 100%;
    /* Ensure image fills the container height */
    object-fit: cover;
    border-radius: 8px;
}

.card-media {
    aspect-ratio: 16 / 9;
    /* Standard aspect ratio for consistent image sizing */
    overflow: hidden;
    /* Hide overflowing parts of the image */
    margin-bottom: 1rem;
    /* Space between image and card body */
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Distribute space evenly */
}

.product-card-body h3 {
    margin: 0;
}

.product-card-subtitle {
    margin: .15rem 0 .5rem 0;
    opacity: .8;
}

.product-card-selling {
    margin-bottom: .5rem;
}

.product-card-features {
    margin-bottom: .75rem;
    list-style-type: none;
    padding: 0;
    flex-grow: 1;
}

.product-card-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: auto;
    /* Push actions to the bottom */
}

.card-cta {
    font-weight: 600;
    opacity: .85;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    align-items: stretch;
}

.card-link:hover .card-cta,
.card-link:focus-visible .card-cta {
    opacity: 1;
    text-decoration: underline;
}

/* Respecte l’accessibilité si l’utilisateur réduit les animations */
@media (prefers-reduced-motion: reduce) {
    .card-link {
        transition: none
    }

    .card-link:hover,
    .card-link:focus-visible {
        transform: none
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
}

.footer-nav,
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-nav li,
.footer-contact li {
    margin-bottom: .5rem;
}

.footer-nav a,
.footer-contact a {
    color: inherit;
    text-decoration: none;
}

.footer-nav a:hover,
.footer-contact a:hover {
    text-decoration: underline;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.kpi-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.kpi-item:hover,
.kpi-item:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    border-color: #d1d5db;
}

.kpi-total {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.kpi-value {
    font-size: clamp(1.6rem, 3.8vw, 2.4rem);
    font-weight: 800;
    letter-spacing: .5px;
}

.kpi-label {
    margin-top: .35rem;
    color: #475569;
}

.kpi-note {
    margin-top: .6rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibilité : animations réduites */
@media (prefers-reduced-motion: reduce) {
    .kpi-item {
        transition: none
    }

    .kpi-item:hover,
    .kpi-item:focus-within {
        transform: none
    }
}

/* Info cards */
.infocards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.infocard {
    display: flex;
    gap: .9rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem;
    align-items: flex-start;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.infocard:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    border-color: #d1d5db;
}

.infocard-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #eef2ff;
    color: #0f172a;
    flex: 0 0 auto;
}

.infocard-title {
    margin: .1rem 0 .15rem 0;
    font-size: 1.05rem
}

.infocard-text {
    margin: 0;
    color: #475569;
    line-height: 1.45
}

/* CTA row */
.cta-row {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: .3rem
}

.btn {
    display: inline-block;
    padding: .6rem .9rem;
    border-radius: .6rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease, color .14s ease;
}

.btn-primary {
    background: #0f172a;
    color: #fff
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18)
}

.btn-ghost {
    background: #fff;
    border-color: #e5e7eb;
    color: #0f172a
}

.btn-ghost:hover {
    background: #f8fafc;
    border-color: #d1d5db
}

/* Responsive */
@media (max-width: 768px) {
    .infocards-grid {
        grid-template-columns: 1fr
    }
}

/* Accessibilité : réduire animations si demandé */
@media (prefers-reduced-motion: reduce) {

    .infocard,
    .btn {
        transition: none
    }

    .infocard:hover,
    .btn-primary:hover {
        transform: none;
        box-shadow: none
    }
}

/* --- InfoCard cliquable --- */
.infocard-link {
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    display: flex;
    gap: .9rem;
    padding: 1rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.infocard-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    border-color: #d1d5db;
}

/* --- FAB (gauche) --- */
.fab {
    position: fixed;
    right: 16px;
    /* au lieu de left */
    bottom: 24px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem .9rem;
    border-radius: 999px;
    font-weight: 700;
    background: #0f172a;
    color: #fff;
    border: 0;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}


.fab .fab-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    animation: pulse 1.6s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: .4;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .6);
    display: grid;
    place-items: center;
    padding: 1rem;
    z-index: 60;
}

.modal-card {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .25);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem .5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2rem
}

.modal-close {
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #475569;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    padding: 1rem;
}

.modal-body label {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-weight: 600;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: .6rem .7rem;
    font: inherit;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    margin-top: .3rem;
}

.modal-status {
    margin: .3rem 0 0;
    color: #475569
}

/* Boutons réutilisables */
.btn {
    display: inline-block;
    padding: .6rem .9rem;
    border-radius: .6rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background: #0f172a;
    color: #fff
}

.btn-primary:hover {
    filter: brightness(1.08)
}

.btn-ghost {
    background: #fff;
    border-color: #e5e7eb;
    color: #0f172a
}

.btn-ghost:hover {
    background: #f8fafc;
    border-color: #d1d5db
}

/* Responsive */
@media (prefers-reduced-motion: reduce) {
    .fab .fab-dot {
        animation: none
    }
}

/* Position contact (bas-droite) */
.fab {
    right: 16px;
    bottom: 24px;
}

/* Variante phone : même style, autre couleur + au-dessus du contact */
.fab-phone {
    position: fixed;
    right: 16px;
    bottom: 120px;
    /* au-dessus du FAB contact */
    z-index: 60;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #16a34a;
    /* vert lisible */
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.fab-phone:hover,
.fab-phone:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .26);
}

.fab-phone::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, .35);
    animation: fabPulse 2.6s ease-in-out infinite;
}

/* Tooltip (réutilise .fab-tooltip existant) */
.fab-phone .fab-tooltip {
    right: 70px;
    bottom: 50%;
    transform: translateY(50%);
}

/* Affichage mobile seulement pour le FAB phone */
@media (min-width: 769px) {
    .fab-phone {
        display: none;
    }
}

/* Respect accessibilité */
@media (prefers-reduced-motion: reduce) {

    .fab-phone,
    .fab-phone::after {
        animation: none;
        transition: none;
    }

    .fab-phone:hover,
    .fab-phone:focus-visible {
        transform: none;
        box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
    }
}

/* --- FAB rond moderne --- */
.fab {
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 60;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 0;
    display: grid;
    place-items: center;
    background: #0f172a;
    /* brand */
    color: #fff;
    padding: 0;
    gap: 0;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    outline-offset: 3px;
}

.fab:hover,
.fab:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .26);
}

.fab svg {
    display: block;
}

/* Halo/onde soft pour attirer l’œil */
.fab::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(15, 23, 42, .35);
    animation: fabPulse 2.6s ease-in-out infinite;
}

@keyframes fabPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 23, 42, .35);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(15, 23, 42, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0);
    }
}

/* Tooltip discret */
.fab-tooltip {
    position: absolute;
    right: 70px;
    /* à gauche du bouton */
    bottom: 50%;
    transform: translateY(50%);
    background: #0f172a;
    color: #fff;
    border-radius: 8px;
    padding: .35rem .55rem;
    font-size: .85rem;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}

.fab:hover .fab-tooltip,
.fab:focus-visible .fab-tooltip {
    opacity: 1;
    transform: translateY(50%) translateX(-2px);
}

/* Accessibilité : réduire animations si demandé */
@media (prefers-reduced-motion: reduce) {

    .fab,
    .fab::after {
        animation: none;
        transition: none
    }

    .fab:hover,
    .fab:focus-visible {
        transform: none;
        box-shadow: 0 12px 28px rgba(0, 0, 0, .22)
    }
}

/* --- Modal (repris de ta version précédente, garde si déjà présent) --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .6);
    display: grid;
    place-items: center;
    padding: 1rem;
    z-index: 70;
}

.modal-card {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .25);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem .5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2rem
}

.modal-close {
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #475569;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    padding: 1rem;
}

.modal-body label {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-weight: 600;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: .6rem .7rem;
    font: inherit;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    margin-top: .3rem;
}

.modal-status {
    margin: .3rem 0 0;
    color: #475569
}

.btn {
    display: inline-block;
    padding: .6rem .9rem;
    border-radius: .6rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background: #0f172a;
    color: #fff
}

.btn-ghost {
    background: #fff;
    border-color: #e5e7eb;
    color: #0f172a
}

.btn-primary:hover {
    filter: brightness(1.08)
}

.btn-ghost:hover {
    background: #f8fafc;
    border-color: #d1d5db
}

/* Position finale du FAB téléphone (doit primer sur .fab) */
.fab.fab-phone {
    bottom: 100px;
    /* ajuste la distance souhaitée */
}

@media (max-width: 768px) {
    .nav nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--brand);
        padding: 1rem 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
    }

    .nav nav.nav-open {
        display: flex;
    }

    .nav nav a {
        margin: .5rem 1rem;
        padding: .5rem;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.8rem;
        cursor: pointer;
        padding: 0 .5rem;
        z-index: 1;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Page Specific Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-weight: 600;
    margin-bottom: .8rem;
    /* Add some space between labels */
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: .6rem .7rem;
    font: inherit;
    width: 100%;
    /* Make inputs take full width */
}

.contact-form .modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.contact-info h2 {
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info .footer-contact {
    list-style: none;
    padding: 0;
}

.contact-info .footer-contact li {
    margin-bottom: .5rem;
}

.contact-info .footer-contact li i {
    margin-right: .5rem;
    color: var(--accent);
}

.contact-info .footer-contact li a {
    color: inherit;
    text-decoration: none;
}

.contact-info .footer-contact li a:hover {
    text-decoration: underline;
}

/* Contact status messages */
.contact-status {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    font-weight: 500;
    transition: all .3s ease;
}

.contact-status-loading {
    background: #e1f5fe;
    border: 1px solid #4fc3f7;
    color: #0277bd;
}

.contact-status-success {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

.contact-status-error {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
}

.contact-status-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-status-message {
    line-height: 1.4;
}

.tags {
    margin: 1rem 0;
    display: flex;
    gap: .4rem;
    flex-wrap: wrap
}

.tag {
    padding: .3rem .7rem;
    border: 1px solid var(--accent);
    border-radius: 6px;
    cursor: pointer;
    background: #fff
}

.tag.active {
    background: var(--accent);
    color: #fff
}

.real-card img {
    border-radius: 8px;
    width: 100%;
    height: 180px;
    object-fit: cover
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: grid;
    place-items: center;
    z-index: 100
}

.lightbox {
    position: relative;
    max-width: 900px
}

.lightbox img {
    width: 100%;
    height: auto;
    border-radius: 12px
}

.lightbox .modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 2rem;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer
}

.velux-page .product-media {
    aspect-ratio: 4 / 3 !important;
    overflow: hidden;
    background: #f4f6f8;
}

.velux-page .product-media img {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-body h3 {
    margin: 0;
}

/* Utility margin top 1rem */
.mt-1 {
    margin-top: 1rem;
}

/* Visually hidden but still in DOM for SEO */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
}

/* --- New utilities for About page --- */
.intro-hero {
    position: relative;
    padding: 0;
    min-height: 56vh;
    display: grid;
    place-items: center;
    color: #fff;
}

.intro-banner {
    text-align: center;
    padding: 6rem 1rem;
}

.intro-hero h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 0;
}

.intro-hero p {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    opacity: .95;
    margin-top: .75rem;
}

.btn-white {
    display: inline-block;
    padding: .8rem 1.1rem;
    background: #fff;
    color: #111;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: filter .16s ease;
}

.btn-white:hover,
.btn-white:focus-visible {
    filter: brightness(0.95);
}

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

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

.pt-0 {
    padding-top: 0 !important;
}

.card-body-pad {
    padding: 14px 16px;
}

.card-flat {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
}

.card-elevate {
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid #e8eaef;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.card-elevate:hover,
.card-elevate:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.aspect-4-3 {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f6f8fa;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-bullets {
    margin: 0;
    padding-left: 1.1rem;
    color: #333;
    line-height: 1.5;
}

.mt-1-25 {
    margin-top: 1.25rem;
}

.bg-light {
    background: #fafbfc;
}

/* Obs.js: context-aware performance optimizations */

/* Disable animations and transitions on low battery */
.has-low-battery * {
    animation: none !important;
    transition: none !important;
}

/* Disable animations on low-end devices */
.has-low-end-device * {
    animation: none !important;
    transition: none !important;
}

/* Reduce image quality on slow connections */
.has-slow-2g img,
.has-2g img {
    filter: contrast(0.9) brightness(1.1);
}

/* Hide non-critical elements on data saver mode */
.has-save-data .badge-glass {
    display: none;
}

.has-save-data .fab::after {
    animation: none;
}

/* Simplified styles for small screens */
.has-small-screen .hero {
    padding: 2rem 0;
}

.has-small-screen .section {
    padding: 1.5rem 0;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.gap-05 {
    gap: .5rem;
}

.badge-glass {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    padding: .35rem .6rem;
    border-radius: 999px;
    font-size: .9rem;
    backdrop-filter: blur(4px);
}

.mt-05 {
    margin-top: .5rem;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: .75rem 1rem;
    margin-bottom: .6rem;
    background: #fff;
}

.faq-summary {
    cursor: pointer;
    font-weight: 700;
}

.faq-answer {
    margin-top: .5rem;
    color: #444;
    line-height: 1.5;
}

/* --- Programmation Velux --- */
.program-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
}

@media (max-width: 960px) {
    .program-grid {
        grid-template-columns: 1fr;
    }
}

.benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    margin: 1rem 0;
}

.benefit {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: .6rem .75rem;
    line-height: 1.4;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}

.chip {
    background: #eef2ff;
    border: 1px solid #dfe5ff;
    color: #2f3a8c;
    padding: .35rem .6rem;
    font-size: .9rem;
    border-radius: 999px;
}

.program-media {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    background: #f0f2f5;
}

.program-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mini-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}

.mini-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: .9rem;
}

.mini-card h4 {
    margin: 0 0 .25rem 0;
    font-size: 1rem;
}

.cta-row {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

/* --- Galerie Velux --- */
.gallery-section {
    --outer-pad: 8px;
    /* marge latérale MOBILE (très compacte) */
    --gap: .6rem;
    /* espacement MOBILE */
    --thumb-min: 220px;
    /* largeur min d'une tuile */
    --thumb-min-h: 200px;
    /* hauteur mini */
    --thumb-ratio: 4 / 3;
    /* ratio uniforme des vignettes */
}

@media (min-width: 480px) {
    .gallery-section {
        --outer-pad: 12px;
        --gap: .75rem;
    }
}

@media (min-width: 768px) {
    .gallery-section {
        --outer-pad: 20px;
        --gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .gallery-section {
        --outer-pad: 28px;
        --gap: 1.25rem;
        --thumb-min: 300px;
        --thumb-min-h: 260px;
    }
}

.gallery-section {
    padding: .5rem 0 1.25rem;
}

.gallery-wrap.container {
    max-width: 1200px;
    margin-inline: auto;
    padding-left: var(--outer-pad) !important;
    padding-right: var(--outer-pad) !important;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--thumb-min), 1fr));
    gap: var(--gap);
}

.thumb {
    position: relative;
    aspect-ratio: var(--thumb-ratio);
    min-height: var(--thumb-min-h);
    border-radius: 12px;
    overflow: hidden;
    background: #f4f6f8;
    border: 1px solid #e6e9ee;
}

.thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: transparent;
    transition: transform .25s ease;
}

.thumb:hover img {
    transform: scale(1.02);
}

@media (max-width: 380px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@supports not (aspect-ratio: 1 / 1) {
    .thumb {
        height: var(--thumb-min-h);
    }
}

/* Cookies (src/consent/consent.css) */
:root { --cc-accent: #841726; --cc-accent-fg: #fff; }


/* ==========================================================================
   Ajouts pour la version PHP (rendu serveur)
   ========================================================================== */

main {
    flex: 1 1 auto;
}

.text-center {
    text-align: center;
}

/* Accessibilité : lien d'évitement + focus visible */
.skip-link {
    position: absolute;
    left: .5rem;
    top: -4rem;
    z-index: 100;
    background: #fff;
    color: #0f172a;
    padding: .6rem .9rem;
    border-radius: .5rem;
    font-weight: 600;
}

.skip-link:focus {
    top: .5rem;
}

:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

header :focus-visible,
footer :focus-visible,
.site-top :focus-visible,
.intro-hero :focus-visible {
    outline-color: #fff;
}

/* Bandeau d'annonce + bouton d'urgence (réglages banner_on / emergency_on) */
.site-banner {
    background: #fef3c7;
    color: #78350f;
    text-align: center;
    padding: .55rem 1rem;
    font-size: .95rem;
    font-weight: 600;
}

.site-banner p {
    margin: 0;
}

.emergency-bar {
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: .45rem 1rem;
}

.emergency-call {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    font-weight: 700;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Menu : lien actif */
.nav nav a[aria-current="page"] {
    opacity: 1;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.menu-toggle {
    min-width: 44px;
    min-height: 44px;
}

/* Icônes SVG inline (remplacent FontAwesome) */
.icon {
    display: inline-block;
    height: 1em;
    vertical-align: -.125em;
    fill: currentColor;
    flex: none;
}

.icon-spin {
    animation: icon-spin 1s linear infinite;
}

@keyframes icon-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Piège à robots : champ hors écran (jamais display:none) */
.hp-field {
    position: absolute !important;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.modal-overlay[hidden] {
    display: none;
}

button.fab {
    font: inherit;
}

.contact-status[hidden] {
    display: none;
}

.contact-errors {
    margin: 0;
    padding-left: 1.1rem;
}

.contact-info .footer-contact .icon {
    margin-right: .3rem;
}

/* Apparition douce (remplace AOS) : actif uniquement si JS est présent */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease-out, transform .6s ease-out;
    transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal="zoom"] {
    transform: scale(.94);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

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

    .icon-spin {
        animation: none;
    }
}

/* Section « Processus » (ancien <style> du composant Processus.jsx) */
.process-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 640px) {
    .process-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .process-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

.process-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transform: translateY(6px);
    opacity: 0;
    animation: fadeUp .6s ease forwards;
}

.process-card:nth-child(1) { animation-delay: .05s; }
.process-card:nth-child(2) { animation-delay: .15s; }
.process-card:nth-child(3) { animation-delay: .25s; }
.process-card:nth-child(4) { animation-delay: .35s; }

.process-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
}

.process-card .icon-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #f4f4f5;
    color: #111;
}

.process-card .icon-wrap svg {
    font-size: 20px;
}

.process-card .content {
    line-height: 1.5;
    color: #111;
}

.process-card .content strong {
    font-weight: 600;
}

.process-card .content span {
    color: #555;
}

@keyframes fadeUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .process-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Pied de page : texte discret mais lisible (contraste ≥ 4.5:1 sur fond sombre) */
.footer small {
    color: #9ca3af;
}

/* Actualités */
.news-card img {
    border-radius: 8px;
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: .75rem
}

.news-card h2 {
    font-size: 1.15rem;
    margin: 0
}

.news-card p {
    margin: 0
}

.news-pager {
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem
}

.news-pager .tag {
    text-decoration: none;
    color: inherit
}

.news-article {
    max-width: 46rem;
    margin: 1.25rem auto 0;
    line-height: 1.7
}

.news-article h2 {
    margin: 1.75rem 0 .5rem
}

.news-figure {
    margin: 0 0 1.25rem
}

.news-figure img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px
}

/* ---- Page article ---- */
.news-hero { min-height: 36vh; background: var(--brand) }
.news-kicker { margin: 0 0 .5rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8 }
.news-kicker a { color: inherit; text-decoration: none }
.news-crumbs { max-width: 46rem; margin: 0 auto; font-size: .9rem; color: #6b7280 }
.news-crumbs a { color: inherit }
.news-crumbs span { color: #111827 }
.news-body { font-size: 1.08rem; text-align: left }
.news-body p { margin: 0 0 1.1rem }
.news-body h2 { margin: 2.25rem 0 .6rem; font-size: 1.5rem; line-height: 1.3; text-align: left }
.news-body h2:first-child { margin-top: .5rem }
.news-body > p:first-child { font-size: 1.2rem; color: #374151 }
.news-body > h2:first-child + p { font-size: inherit; color: inherit }

/* ---- Page Actualités : grille moderne ---- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.news-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}
.news-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.news-media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #111827 0%, #841726 100%);
    overflow: hidden;
}
.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.news-card:hover .news-media img {
    transform: scale(1.04);
}
.news-media-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .85);
}
.news-body {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.25rem 1.25rem 1.5rem;
    flex: 1;
}
.news-body time {
    font-size: .85rem;
    font-weight: 600;
    color: #841726;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.news-body h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
}
.news-body p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}
.news-cta {
    margin-top: auto;
    padding-top: .5rem;
    font-weight: 700;
    color: #841726;
}
.news-card--featured {
    grid-column: 1 / -1;
}
.news-card--featured > a {
    flex-direction: row;
}
.news-card--featured .news-media {
    flex: 0 0 55%;
    aspect-ratio: auto;
    min-height: 320px;
}
.news-card--featured .news-body {
    justify-content: center;
    padding: 2rem;
}
.news-card--featured h2 {
    font-size: 1.8rem;
}
@media (max-width: 900px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-card--featured > a { flex-direction: column; }
    .news-card--featured .news-media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
    .news-card--featured .news-body { padding: 1.25rem; }
    .news-card--featured h2 { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
    .news-card, .news-media img { transition: none; }
    .news-card:hover { transform: none; }
}

/* ---- CTA « Parlons de votre projet » ---- */
.cta-block { padding-top: 0 }
.cta-block .container { text-align: center }
.cta-logo { width: 88px; height: auto; margin: 0 auto .5rem; display: block }
.cta-buttons { display: flex; gap: .75rem; justify-content: center; margin-top: .5rem; flex-wrap: wrap }
