/* ========== BARRE DE DÉFILEMENT ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #2ecc71; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #27ae60; }
* { scrollbar-width: thin; scrollbar-color: #2ecc71 #f1f1f1; }
.dark-mode::-webkit-scrollbar-track { background: #1a1a1a; }
.dark-mode::-webkit-scrollbar-thumb { background: #27ae60; }
* { scrollbar-color: #2ecc71 #f1f1f1; }

/* ========== RESET & BASE ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #fff; color: #111; transition: background 0.3s, color 0.3s; }
body.dark-mode { background: #121212; color: #eee; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* ========== BARRE DE PROGRESSION ========== */
.progress-container { position: fixed; top: 0; width: 100%; height: 4px; background: rgba(0,0,0,0.05); z-index: 1000; pointer-events: none; }
.progress-bar { height: 4px; background: #C1272D; width: 0; }

/* ========== NAVBAR ========== */
.navbar { background: rgba(255,255,255,0.96); position: sticky; top: 0; z-index: 1100; backdrop-filter: blur(2px); border-bottom: 1px solid #ececec; }
.dark-mode .navbar { background: rgba(18,18,18,0.96); }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; max-width: 1280px; margin: 0 auto; flex-wrap: wrap; gap: 12px; }
/* Logo texte (rétrocompatibilité si un thème en garde un) */
.logo:not(.logo--brand-img) h1 { font-size: 1.8rem; font-weight: 800; }
.logo:not(.logo--brand-img) h1::first-letter { color: #C1272D; }
.logo:not(.logo--brand-img) span { font-size: 0.85rem; color: #C1272D; display: block; }
.logo.logo--brand-img {
    display: flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
    flex-shrink: 0;
}
.logo.logo--brand-img .logo__img {
    height: 44px;
    width: auto;
    max-width: min(220px, 46vw);
    object-fit: contain;
}
@media (min-width: 769px) {
    .logo.logo--brand-img .logo__img { height: 52px; max-width: 240px; }
}
.dark-mode .logo.logo--brand-img .logo__img {
    filter: brightness(1.08) contrast(1.02);
}
.nav-links {
    display: flex;
    gap: clamp(12px, 2vw, 24px);
    list-style: none;
    flex: 1 1 auto;
    flex-wrap: wrap;
    min-width: 0;
    justify-content: center;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
}
.nav-links li { position: relative; z-index: 1; }
.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: inherit;
    transition: 0.2s;
    display: inline-block;
    padding: 4px 2px;
    position: relative;
    z-index: 1;
}
.nav-links a:hover { color: #C1272D; outline: 2px solid #C1272D; border-radius: 4px; }
.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: #C1272D; }
.nav-controls {
    display: flex;
    gap: 12px;
    margin-left: auto;
    align-items: center;
    flex: 0 0 auto;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Desktop : menu au centre, icônes à droite — sans chevauchement */
@media (min-width: 901px) {
    .nav-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        column-gap: 16px;
        row-gap: 8px;
        flex-wrap: nowrap;
    }
    .nav-container > .logo { grid-column: 1; grid-row: 1; }
    .nav-container > .nav-links { grid-column: 2; grid-row: 1; justify-content: center; }
    .nav-container > .nav-controls { grid-column: 3; grid-row: 1; margin-left: 0; }
    .nav-container > .menu-toggle { display: none; }
}
.theme-toggle, .lang-toggle, .admin-btn { background: #C1272D; color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.theme-toggle:hover, .lang-toggle:hover, .admin-btn:hover { transform: scale(1.05); }

/* ========== BOUTONS ========== */
.btn { display: inline-block; background: #C1272D; color: #fff; padding: 12px 32px; border-radius: 40px; text-decoration: none; font-weight: 600; border: none; cursor: pointer; transition: 0.2s; }
.btn:hover { background: #9e1e24; transform: translateY(-2px); }
.btn.small { padding: 6px 16px; font-size: 0.8rem; }

/* ========== HERO ========== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 88px;
    background: #1a1e24;
}
/* Hero accueil : texte gauche + image circulaire droite */
.hero--pageaccueil.hero--split {
    background: linear-gradient(135deg, #141820 0%, #1e2632 48%, #141820 100%);
    padding: clamp(48px, 8vw, 96px) 0;
    min-height: 0;
    overflow: hidden;
}
.hero--split__inner {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 42%);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-content--split {
    text-align: left;
    max-width: 36em;
}
.hero-content--split .badge {
    margin-left: 0;
    margin-right: auto;
}
.hero--split .hero-lead {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: none;
}
.hero--split .hero-content h1 {
    color: #fff;
    text-shadow: none;
}
.hero--split .hero-stats {
    justify-content: flex-start;
}
.hero--split .hero-cta {
    justify-content: flex-start;
}
.hero--split .stat-item {
    color: rgba(255, 255, 255, 0.92);
}
.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero__circle-frame {
    width: clamp(240px, 36vw, 420px);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
    background: #0d1117;
}
.hero__circle-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.hero--pageaccueil.hero--photo-full {
    background: #141820;
    min-height: 0;
    padding: 0;
    display: block;
    overflow: hidden;
}
.hero--pageaccueil.hero--photo-full::before {
    display: none;
}
.hero__photo-wrap {
    position: relative;
    width: 100%;
    line-height: 0;
    background: #141820;
}
.hero__photo-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center top;
    filter: brightness(1.18) contrast(1.08) saturate(1.06);
}
.hero__overlay {
    position: absolute;
    inset: 0;
    /* Voile léger : image nette, texte lisible au centre */
    background:
        radial-gradient(ellipse 85% 70% at 50% 45%, rgba(8, 12, 20, 0.42) 0%, rgba(8, 12, 20, 0.18) 55%, transparent 78%),
        linear-gradient(180deg, rgba(6, 10, 18, 0.22) 0%, rgba(8, 12, 20, 0.08) 55%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}
.dark-mode .hero__overlay {
    background:
        radial-gradient(ellipse 85% 70% at 50% 45%, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 78%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.1) 55%, transparent 100%);
}
.dark-mode .hero__photo-img {
    filter: brightness(1.12) contrast(1.06) saturate(1.04);
}
.hero--pageaccueil__inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px clamp(16px, 4vw, 32px) 56px;
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
    pointer-events: none;
}
.hero--pageaccueil__inner .hero-content {
    pointer-events: auto;
}
@media (min-width: 900px) {
    .hero--pageaccueil__inner {
        padding: 48px 0 56px;
    }
}
.hero--pageaccueil .hero-content--over-image {
    max-width: min(720px, 92%);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 36px);
    text-align: center;
}
.hero--pageaccueil .hero-content--over-image .badge {
    margin-left: auto;
    margin-right: auto;
}
.hero--pageaccueil .hero-lead {
    margin-left: auto;
    margin-right: auto;
}
.hero--pageaccueil .hero-stats {
    justify-content: center;
}
.hero--pageaccueil .hero-cta {
    justify-content: center;
}
.hero-content { flex: 1; min-width: 280px; }
.badge {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 8px 18px;
    border-radius: 40px;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.hero--pageaccueil .hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.75), 0 0 48px rgba(0, 0, 0, 0.45);
}
.hero-lead {
    font-size: 1.125rem;
    line-height: 1.65;
    max-width: 36em;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65), 0 0 32px rgba(0, 0, 0, 0.35);
}
.hero--pageaccueil .hero-stats {
    display: flex;
    gap: 28px;
    margin: 28px 0 8px;
    flex-wrap: wrap;
}
.hero--pageaccueil .stat-item {
    font-weight: 700;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
}
.hero--pageaccueil .stat-number {
    font-size: 2rem;
    display: inline-block;
    margin-right: 4px;
    font-variant-numeric: tabular-nums;
    color: #ff6b70;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 24px; }
.btn--primary { box-shadow: 0 8px 24px -8px rgba(193, 39, 45, 0.55); }
.hero--pageaccueil .btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.45);
    padding: 10px 28px;
}
.hero--pageaccueil .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-2px);
}

/* ========== VISION & EXPERTISE ========== */
.vision-section { padding: 72px 0; }
.vision-content {
    max-width: 920px;
    margin: 0 auto;
}
.vision-content .section-head {
    margin-bottom: 8px;
}
.vision-lead {
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.75;
    color: #333;
    margin: 8px auto 22px;
    max-width: 720px;
}
.vision-bullets {
    margin: 0 auto;
    padding-left: 1.35rem;
    max-width: 720px;
    color: #333;
}
.vision-bullets li {
    margin-bottom: 12px;
    line-height: 1.65;
}
.vision-bullets li:last-child { margin-bottom: 0; }
.dark-mode .vision-lead,
.dark-mode .vision-bullets,
.dark-mode .vision-bullets li {
    color: #ddd;
}

.expertise-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; margin-top: 28px; }
.expertise-card { background: #fff; border-radius: 28px; padding: 32px 24px; flex: 1; min-width: 230px; box-shadow: 0 12px 30px rgba(0,0,0,0.05); border: 1px solid #e9eef3; transition: 0.2s; }
.expertise-card:hover { transform: translateY(-5px); }
.dark-mode .expertise-card { background: #1e1e1e; border-color: #333; }
.expertise-card i { font-size: 2.5rem; color: #C1272D; margin-bottom: 18px; }
.expertise-card h4 { font-size: 1.25rem; margin-bottom: 12px; }
.expertise-card img { width: 100%; border-radius: 16px; margin-top: 15px; object-fit: cover; max-height: 150px; }

/* ========== SERVICES ========== */
.alt-bg { background: #F8F9FA; }
.dark-mode .alt-bg { background: #0a0a0a; }
.services-list { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; }
.service-card {
    background: #fff;
    border-radius: 28px;
    padding: 30px;
    flex: 1;
    border-bottom: 4px solid #C1272D;
    box-shadow: 0 12px 24px -12px rgba(0,0,0,0.08);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 36px -12px rgba(193, 39, 45, 0.18);
}
.dark-mode .service-card { background: #1e1e1e; }
.service-card .number { font-size: 2.8rem; font-weight: 800; color: #e0e0e0; margin-bottom: 10px; }
.service-card h3 { font-size: 1.5rem; margin: 10px 0 15px; }
.service-card h3 i { color: #C1272D; margin-right: 8px; }
.service-card ul { list-style: none; }
.service-card li { margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.service-card li i { color: #C1272D; width: 20px; }
/* Bloc type plaquette (bandeau rouge) — accueil */
#services .section-title {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}
#services .service-card {
    border-bottom: none;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 0 0 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.dark-mode #services .service-card {
    border-color: #333;
}
#services .service-card .number {
    display: none;
}
#services .service-card h3 {
    background: #C1272D;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 20px 0;
    padding: 14px 20px;
    border-radius: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
#services .service-card h3 i {
    color: #fff;
    margin-top: 2px;
    flex-shrink: 0;
}
#services .service-card ul {
    padding: 0 clamp(24px, 4vw, 32px) 4px;
}
#services .service-card li {
    align-items: flex-start;
    font-size: 0.98rem;
    line-height: 1.5;
    color: #111;
}
.dark-mode #services .service-card li {
    color: #e6e6e6;
}
#services .service-card li i {
    margin-top: 4px;
    flex-shrink: 0;
}

/* ========== PRODUITS & FILTRES ========== */
.filter-buttons { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
    background: #f0f0f0;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.filter-btn.active, .filter-btn:hover { background: #C1272D; color: #fff; }
.filter-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(193, 39, 45, 0.25); }
.filter-btn.active { box-shadow: 0 4px 14px rgba(193, 39, 45, 0.35); }
.products-grid, .skeleton-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.products-grid--carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 12px;
    scroll-behavior: smooth;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}
.products-grid--carousel:active { cursor: grabbing; }
.product-card {
    background: #fff;
    border-radius: 20px;
    padding: 0;
    text-align: center;
    border: 1px solid #eef2f6;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 42px rgba(193, 39, 45, 0.14);
}
.dark-mode .product-card { background: #1e1e1e; border-color: #333; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35); }
.products-grid--carousel .product-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}
.product-card__media {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    background: #ececec;
    line-height: 0;
    position: relative;
}
.dark-mode .product-card__media { background: #2a2a2a; }
.product-card__media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card__media--empty i {
    font-size: 3rem;
    color: #ccc;
}
.product-card__media .media-img,
.product-card__media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-card__media .media-img,
.product-card:hover .product-card__media img {
    transform: scale(1.07);
}
.product-card__body {
    padding: 16px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.product-card h3,
.product-card h4 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.35;
    color: #1a1a1a;
}
.dark-mode .product-card h3,
.dark-mode .product-card h4 { color: #f0f0f0; }
.product-card__body > p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
}
.dark-mode .product-card__body > p { color: #aaa; }
.product-stock { font-weight: 700; font-size: 0.9rem; margin: 4px 0 8px; }
.product-stock--in { color: #1e7e34; }
.product-stock--out { color: #C1272D; }
.dark-mode .product-stock--in { color: #6fcf97; }
.dark-mode .product-stock--out { color: #ff8a8a; }
.product-card i.fa-box { font-size: 2.8rem; color: #C1272D; }
.filter-spinner { text-align: center; margin: 20px 0; font-size: 1.5rem; color: #C1272D; }
.recent-products { margin-top: 60px; padding: 20px; background: #f8f9fa; border-radius: 28px; }
.dark-mode .recent-products { background: #1e1e1e; }
.recent-list { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 15px; }
.recent-item { background: #e9ecef; padding: 8px 16px; border-radius: 40px; font-size: 0.9rem; cursor: pointer; }
.dark-mode .recent-item { background: #2c2c2c; }

/* ========== BLOG ========== */
.blog-section { background: #fff; padding: 80px 0; }
.dark-mode .blog-section { background: #121212; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

/* Blog accueil — défilement continu */
.blog-marquee-wrap {
    overflow: hidden;
    width: 100%;
    margin: 0 -8px;
    padding: 8px 0 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.blog-marquee-wrap--active .blog-marquee__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    width: max-content;
    will-change: transform;
    -webkit-animation: blog-marquee-scroll var(--blog-marquee-duration, 40s) linear infinite;
    animation: blog-marquee-scroll var(--blog-marquee-duration, 40s) linear infinite;
}
.blog-marquee-wrap--js .blog-marquee__track {
    -webkit-animation: none !important;
    animation: none !important;
}
@media (hover: hover) {
    .blog-marquee-wrap--active:not(.blog-marquee-wrap--js):hover .blog-marquee__track {
        -webkit-animation-play-state: paused;
        animation-play-state: paused;
    }
}
.blog-section .blog-marquee-wrap,
.blog-section .blog-marquee__track {
    content-visibility: visible;
    contain: none;
}
.blog-marquee__track--static {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}
.blog-card--marquee {
    flex: 0 0 300px;
    width: 300px;
    max-width: 85vw;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.blog-card--marquee:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(193, 39, 45, 0.12);
}
.blog-card--marquee .blog-card__media {
    width: 100%;
    height: 180px;
    margin: 0 0 12px;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    line-height: 0;
    background: #ececec;
}
.dark-mode .blog-card--marquee .blog-card__media {
    background: #2a2a2a;
}
.blog-card--marquee .blog-card__media .blog-card__img,
.blog-card--marquee .blog-card__media .media-img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
    display: block;
}
.dark-mode .blog-card--marquee {
    background: #1e1e1e;
}
@-webkit-keyframes blog-marquee-scroll {
    0% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
    100% { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
}
@keyframes blog-marquee-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
.blog-card { background: #fafafa; border-radius: 24px; padding: 28px; text-align: center; transition: 0.2s; cursor: pointer; }
.blog-card:hover { transform: translateY(-5px); }
.dark-mode .blog-card { background: #1e1e1e; }
.blog-card i { font-size: 2.5rem; color: #C1272D; margin-bottom: 15px; }
.blog-card img { width: 100%; border-radius: 16px; margin: 15px 0; max-height: 180px; object-fit: cover; }
.blog-card--marquee img { margin: 0; border-radius: 0; max-height: none; }
.blog-card p { margin: 12px 0; }
.blog-card small { color: #999; display: block; margin-top: 5px; }
.read-more { color: #C1272D; text-decoration: none; font-weight: 600; display: inline-block; margin-top: 12px; }

/* ========== TÉMOIGNAGES ========== */
.testimonials-slider {
    background: linear-gradient(180deg, #f8f9fb 0%, #eef1f5 100%);
    padding: 88px 0 96px;
}
.dark-mode .testimonials-slider {
    background: linear-gradient(180deg, #0a0a0a 0%, #121212 100%);
}
.section-head--testimonials .section-sub.testimonials-intro {
    margin-bottom: 36px;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.testimonial-swiper {
    padding-bottom: 52px;
    margin-top: 8px;
}
.testimonial-swiper .swiper-slide {
    background: transparent;
    height: auto;
    box-sizing: border-box;
}
.testimonial-swiper-next,
.testimonial-swiper-prev {
    color: #C1272D;
}
.testimonial-swiper .swiper-pagination-bullet-active {
    background: #C1272D;
}
.testimonial-card {
    margin: 0;
    background: #fafcff;
    border-radius: 20px;
    padding: 32px 28px 28px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(17, 24, 39, 0.08);
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(193, 39, 45, 0.12);
}
.dark-mode .testimonial-card {
    /* Cartes lisibles en mode sombre (évite l’effet « blocs noirs » confus) */
    background: #2a2d36;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.testimonial-card__photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}
.testimonial-card__quote-icon {
    display: block;
    color: #C1272D;
    font-size: 1.75rem;
    opacity: 0.85;
    margin-bottom: 16px;
    line-height: 1;
}
.testimonial-card__text {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #2a2a2a;
    margin: 0 0 20px;
    font-style: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.dark-mode .testimonial-card__text {
    color: #f0f0f0;
}
.testimonial-card__author {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    font-style: normal;
}
.dark-mode .testimonial-card__author {
    color: #fafafa;
}
@media (max-width: 640px) {
    .testimonial-card {
        min-height: auto;
        padding: 24px 20px;
    }
}

/* ========== CONTACT ========== */
.contact-section { background: #000; color: #fff; }
.contact-grid { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 30px; }
.contact-infos { background: rgba(255,255,255,0.08); border-radius: 28px; padding: 30px; flex: 1; }
.ville-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 14px; margin: 20px 0; }
.ville-item { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.08); padding: 10px 15px; border-radius: 40px; }
.ville-item i { color: #C1272D; width: 24px; }
.ville-item a { color: #fff; text-decoration: none; }
.contact-email { background: #C1272D; display: inline-flex; align-items: center; gap: 12px; padding: 10px 24px; border-radius: 50px; margin-top: 20px; }
.share-buttons, .pdf-download, .app-downloads { margin-top: 25px; }
.share-buttons h4, .pdf-download h4, .app-downloads h4 { margin-bottom: 10px; font-size: 1rem; }
.share-buttons a { background: rgba(255,255,255,0.2); width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; margin-right: 8px; transition: 0.2s; color: white; }
.share-buttons a:hover { background: #C1272D; transform: scale(1.05); }
.app-downloads a { display: inline-block; background: #C1272D; padding: 6px 12px; border-radius: 40px; margin: 5px; color: white; text-decoration: none; font-size: 0.8rem; }
.contact-extra { background: rgba(255,255,255,0.05); border-radius: 28px; padding: 30px; flex: 1; }
.form-group { margin-bottom: 18px; position: relative; }
.contact-extra input, .contact-extra select, .contact-extra textarea { width: 100%; padding: 12px; border-radius: 40px; border: none; background: #1e1e1e; color: #fff; font-family: inherit; }
.error-message { color: #ff6b6b; font-size: 0.75rem; margin-top: 5px; margin-left: 15px; }
#map { height: 350px; width: 100%; border-radius: 28px; margin-top: 30px; }

/* Carte des bureaux (accueil, après contact) */
.offices-map-section { padding: 80px 0; }
.map-offices-wrap {
    margin-top: 8px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.dark-mode .map-offices-wrap {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.45);
}
#map-offices.map-offices-leaflet {
    height: min(52vh, 480px);
    width: 100%;
    min-height: 300px;
    z-index: 1;
    background: #e8eef3;
}
.dark-mode #map-offices.map-offices-leaflet {
    background: #1a1a1a;
}
.offices-map-section .leaflet-container {
    font-family: inherit;
}
@media (max-width: 600px) {
    #map-offices.map-offices-leaflet {
        height: 320px;
        min-height: 260px;
    }
}

/* ========== FOOTER ========== */
.site-footer { background: #111; color: #b0b0b0; padding: 40px 20px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-newsletter input { padding: 8px 16px; border-radius: 40px; border: none; margin-right: 8px; }
.footer-newsletter button { background: #C1272D; border: none; padding: 8px 16px; border-radius: 40px; color: #fff; cursor: pointer; }
.footer-social h4 { color: #bbb; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.02em; }
.social-links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 22px; }
.social-links a {
    color: #fff;
    font-size: 1.3rem;
    transition: color 0.2s;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}
/* Petit trait sous chaque icône (style « Suivez-nous ») */
.social-links a::after {
    content: '';
    display: block;
    width: 14px;
    height: 2px;
    background: #fff;
    margin-top: 6px;
    border-radius: 1px;
    opacity: 0.95;
}
.social-links a:hover { color: #C1272D; }
.social-links a:hover::after { background: #C1272D; }

/* ========== BACK TO TOP & WHATSAPP ========== */
.back-to-top { position: fixed; bottom: 30px; right: 30px; background: #C1272D; color: #fff; width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 99; }
.back-to-top.show { opacity: 1; visibility: visible; }
.whatsapp-float { position: fixed; bottom: 30px; left: 30px; background: #25D366; color: #fff; width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; z-index: 99; transition: 0.2s; }
.whatsapp-float:hover { transform: scale(1.05); background: #128C7E; }

/* ========== POPUP, MODAL, LIGHTBOX ========== */
.welcome-popup { position: fixed; bottom: 20px; right: 20px; background: #fff; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); max-width: 320px; z-index: 1000; animation: fadeInUp 0.5s; }
.dark-mode .welcome-popup { background: #1e1e1e; }
.popup-content { padding: 20px; text-align: center; position: relative; }
.popup-close { position: absolute; top: 10px; right: 15px; font-size: 1.5rem; cursor: pointer; }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 2000; }
.modal-content { background: #fff; padding: 30px; border-radius: 28px; max-width: 500px; width: 90%; position: relative; }
.dark-mode .modal-content { background: #1e1e1e; }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; cursor: pointer; }
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center; z-index: 10050; cursor: zoom-out; }
.lightbox-img { position: relative; z-index: 1; max-width: 90%; max-height: 90%; object-fit: contain; pointer-events: none; }
.lightbox-close { position: absolute; top: 20px; right: 24px; z-index: 10051; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; line-height: 1; color: #fff; cursor: pointer; background: rgba(0,0,0,0.55); border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); user-select: none; font-family: inherit; padding: 0; margin: 0; pointer-events: auto; }
.lightbox-close:hover { background: rgba(193,39,45,0.95); border-color: rgba(255,255,255,0.6); }
.event-card__thumb--zoom {
    cursor: zoom-in;
    border: 0;
    padding: 0;
    background: transparent;
    display: block;
    width: 100%;
    text-align: left;
}
.event-card__thumb--zoom:focus-visible {
    outline: 3px solid #C1272D;
    outline-offset: 3px;
    border-radius: 12px;
}

/* ========== ADMIN PANEL (amélioré) ========== */
.admin-panel { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center; z-index: 2000; overflow-y: auto; padding: 20px; }
.admin-content { background: #fff; padding: 30px; border-radius: 28px; max-width: 800px; width: 100%; max-height: 90vh; overflow-y: auto; }
.dark-mode .admin-content { background: #1e1e1e; }
.admin-tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tab-btn { background: #e0e0e0; border: none; padding: 8px 16px; border-radius: 40px; cursor: pointer; }
.admin-tab-btn.active { background: #C1272D; color: white; }
.admin-tab { display: none; }
.admin-tab.active { display: block; }
.admin-form { background: #f5f5f5; padding: 20px; border-radius: 20px; margin-top: 15px; }
.dark-mode .admin-form { background: #2a2a2a; }
.admin-form input, .admin-form textarea, .admin-form select { width: 100%; margin-bottom: 10px; padding: 8px; border-radius: 40px; border: 1px solid #ddd; }
.admin-item { background: #f9f9f9; padding: 15px; border-radius: 20px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.dark-mode .admin-item { background: #2a2a2a; }
.admin-item button { margin-left: 10px; background: #C1272D; border: none; padding: 5px 12px; border-radius: 40px; color: white; cursor: pointer; }
.cancel-form { background: #999 !important; }
#closeAdminBtn { margin-top: 20px; background: #333; color: white; border: none; padding: 8px 20px; border-radius: 40px; cursor: pointer; }

/* ========== SKELETON ========== */
.skeleton-card { background: #f0f0f0; border-radius: 24px; padding: 24px; animation: pulse 1.2s infinite; }
.skeleton-icon, .skeleton-title, .skeleton-desc { background: #e0e0e0; border-radius: 12px; }
.skeleton-icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; }
.skeleton-title { height: 24px; width: 80%; margin: 12px auto; }
.skeleton-desc { height: 16px; width: 90%; margin: 8px auto; }
@keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } }

/* ========== Formulaire contact (accueil + global) ========== */
#form-feedback.form-feedback,
.form-feedback {
    margin-top: 14px;
    min-height: 0;
}
.contact-form-msg {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.45;
}
.contact-form-msg i { margin-right: 8px; }
.contact-form-msg--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.contact-form-msg--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.dark-mode .contact-form-msg--success {
    background: rgba(39, 174, 96, 0.2);
    color: #a8e6c1;
    border-color: rgba(39, 174, 96, 0.45);
}
.dark-mode .contact-form-msg--error {
    background: rgba(231, 76, 60, 0.18);
    color: #ffb4b4;
    border-color: rgba(231, 76, 60, 0.4);
}

.newsletter-feedback {
    margin-top: 10px;
    font-size: 0.9rem;
    min-height: 1.25em;
}
.newsletter-feedback--ok { color: #2ecc71; }
.newsletter-feedback--err { color: #e74c3c; }
.dark-mode .newsletter-feedback--ok { color: #6fcf97; }
.dark-mode .newsletter-feedback--err { color: #ff8a80; }

/* ========== Pages intérieures : images & grilles fluides ========== */
.blog-page img,
.events-page img,
.projects-page img,
.partners-page img,
.products-page img,
.jobs-page img,
.downloads-page img {
    max-width: 100%;
    height: auto;
}
.events-page .swiper,
.blog-page .swiper {
    overflow: hidden;
}

/* ========== RESPONSIVE ========== */
/* Tablette (portrait paysage, iPad, etc.) */
@media (min-width: 801px) and (max-width: 1024px) {
    .hero__photo-wrap {
        aspect-ratio: 2 / 1;
        max-height: min(72vh, 680px);
        min-height: 260px;
    }
    .hero--pageaccueil__inner {
        align-items: center;
        justify-content: center;
        padding: 32px 0 40px;
    }
    .hero--pageaccueil .hero-content--over-image {
        max-width: min(640px, 88%);
    }
    .hero--pageaccueil .hero-content h1 {
        font-size: clamp(1.75rem, 3.2vw, 2.35rem);
    }
    .hero-lead {
        font-size: 1.05rem;
        max-width: 32em;
    }
    .hero--pageaccueil .hero-stats {
        gap: 20px 28px;
    }
    .hero--pageaccueil .stat-number {
        font-size: 1.75rem;
    }
}

@media (max-width: 900px) {
    .hero--split__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content--split {
        text-align: center;
        max-width: none;
        order: 1;
    }
    .hero-content--split .badge {
        margin-left: auto;
        margin-right: auto;
    }
    .hero--split .hero-stats,
    .hero--split .hero-cta {
        justify-content: center;
    }
    .hero__visual {
        order: 2;
    }
    .hero__circle-frame {
        width: min(280px, 78vw);
    }
}

@media (max-width: 800px) {
    .container,
    .nav-container { padding-left: 16px; padding-right: 16px; }
    .nav-links { display: none; flex-direction: column; width: 100%; order: 3; background: rgba(255,255,255,0.98); padding: 20px 0; }
    .dark-mode .nav-links { background: rgba(18,18,18,0.98); }
    .nav-links.active { display: flex; }
    .nav-controls { order: 2; margin-left: auto; }
    .menu-toggle { display: block; order: 1; }
    .hero--pageaccueil__inner {
        align-items: center;
        justify-content: center;
        padding: 28px 0 36px;
    }
    .hero--pageaccueil .hero-content--over-image {
        max-width: 94%;
        padding: 0 20px;
    }
    .hero--pageaccueil .hero-content h1 {
        font-size: clamp(1.45rem, 6.5vw, 2rem);
        margin-bottom: 12px;
    }
    .hero-lead {
        font-size: 0.95rem;
        line-height: 1.55;
    }
    .hero--pageaccueil .hero-stats {
        gap: 12px 18px;
        margin-top: 18px;
    }
    .hero--pageaccueil .stat-item {
        font-size: 0.9rem;
        flex: 1 1 auto;
        min-width: calc(50% - 12px);
    }
    .hero-cta .btn--primary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .hero-content h1 { font-size: 2rem; }
    .contact-grid, .footer-grid { flex-direction: column; text-align: center; }
    .ville-list { grid-template-columns: 1fr; }
    .back-to-top, .whatsapp-float { width: 40px; height: 40px; bottom: 20px; font-size: 1.2rem; }
    .whatsapp-float { left: 20px; }
    .admin-content { padding: 15px; }
    section { padding: 56px 0; }
    .hero { padding: 64px 0 56px; }
    .hero--pageaccueil .hero-stats { gap: 16px 22px; }
    .hero--pageaccueil .stat-number { font-size: 1.55rem; }
    .services-list { flex-direction: column; align-items: stretch; }
    .service-card { flex: 1 1 auto; min-width: 0; width: 100%; max-width: 100%; }
    .footer-newsletter form { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
    .footer-newsletter input, .footer-newsletter button { margin-right: 0; width: 100%; }
}

@media (max-width: 480px) {
    .hero--pageaccueil__inner {
        padding: 22px 0 28px;
    }
    .hero--pageaccueil .stat-item {
        min-width: 100%;
    }
    .hero--pageaccueil .stat-number {
        font-size: 1.4rem;
    }
    .badge {
        font-size: 0.78rem;
        padding: 6px 14px;
        margin-bottom: 14px;
    }
    .filter-buttons { gap: 8px; }
    .filter-btn { padding: 8px 14px; font-size: 0.85rem; }
    .products-grid, .blog-grid { grid-template-columns: 1fr; }
    .contact-extra input, .contact-extra select { border-radius: 12px; }
    .contact-extra textarea { border-radius: 16px; }
}
.section-title {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 14px;
    color: #111111;
}
.dark-mode .section-title {
    color: #f0f0f0;
}
.section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #C1272D, #e85d63);
}
.section-sub { text-align: center; max-width: 700px; margin: 0 auto 48px; font-size: 1.1rem; line-height: 1.6; opacity: 0.82; }
.contact-section .section-title {
    color: #ffffff;
}
.contact-section .section-sub {
    color: rgba(255, 255, 255, 0.92);
    opacity: 1;
}
.contact-section .section-title::after {
    background: linear-gradient(90deg, #ffffff, rgba(193, 39, 45, 0.95));
}
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Animations au défilement (sections, cartes) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}
.btn--primary,
.btn.btn--primary {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn--primary:hover,
.btn.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(193, 39, 45, 0.35);
}
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
    .product-card:hover,
    .service-card:hover,
    .blog-card--marquee:hover { transform: none; }
    .product-card:hover .product-card__media .media-img,
    .product-card:hover .product-card__media img { transform: none; }
    .filter-btn:hover,
    .btn--primary:hover { transform: none; box-shadow: none; }
    .blog-marquee-wrap--active .blog-marquee__track { animation: none !important; }
}

/* ========== Pages utilitaires ========== */
.text-center { text-align: center; }
.is-hidden { display: none !important; }
.page-error { padding: 100px 0 80px; }
.page-error__code {
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    color: #C1272D;
    line-height: 1;
    margin-bottom: 8px;
    opacity: 0.9;
}

/* ========== UX : accessibilité & navigation ========== */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus,
.skip-link:focus-visible {
    width: auto;
    height: auto;
    margin: 0;
    left: 0;
    top: 0;
    z-index: 10001;
    padding: 12px 20px;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    background: #C1272D;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}
:focus-visible {
    outline: 3px solid #C1272D;
    outline-offset: 2px;
}
.btn:focus-visible,
.nav-links a:focus-visible,
.filter-btn:focus-visible {
    outline: 3px solid #C1272D;
    outline-offset: 2px;
}
.menu-toggle {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(193, 39, 45, 0.35);
    background: transparent;
}
.menu-toggle[aria-expanded="true"] {
    background: rgba(193, 39, 45, 0.12);
}
@media (max-width: 800px) {
    .nav-links.active {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
        border-radius: 0 0 16px 16px;
        border: 1px solid #ececec;
        border-top: none;
    }
    .dark-mode .nav-links.active {
        border-color: #333;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    }
    .nav-links li a {
        display: block;
        padding: 12px 8px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
}

/* ========== Accueil : sections dynamiques ========== */
.recent-projects-section, .partners-section { padding: 80px 0; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 30px; }
.projects-carousel-wrap {
    margin-top: 30px;
    padding-bottom: 48px;
}
.home-projects-swiper .swiper-slide {
    height: auto;
}
.home-projects-swiper .swiper-pagination-bullet-active {
    background: #C1272D;
}
.project-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: transform 0.3s; padding: 20px; text-align: center; }
.project-card--carousel {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.project-card--carousel .btn.small {
    margin-top: auto;
}
.project-card:hover { transform: translateY(-5px); }
.dark-mode .project-card { background: #1e1e1e; }
.project-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }
.project-icon { font-size: 3rem; color: #C1272D; margin: 20px 0; }
.project-tech { font-size: 0.8rem; color: #888; margin: 10px 0; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 30px; }
.event-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: transform 0.3s; display: flex; padding: 20px; gap: 15px; }
.event-card:hover { transform: translateY(-5px); }
.dark-mode .event-card { background: #1e1e1e; }
.event-card.event-card--home { align-items: stretch; gap: 18px; }
.event-card.event-card--home .event-card__thumb {
    flex: 0 0 clamp(110px, 28%, 170px);
    width: clamp(110px, 28%, 170px);
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #e8eaed;
    align-self: stretch;
}
.dark-mode .event-card.event-card--home .event-card__thumb { background: #2a2d36; }
.event-card.event-card--home .event-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.event-card.event-card--home .event-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.event-card.event-card--home .event-card__row { display: flex; gap: 14px; align-items: flex-start; flex: 1; }
.event-card.event-card--home .event-card__content { flex: 1; min-width: 0; text-align: left; }
.event-card.event-card--home .event-card__title { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.3; }
.event-card.event-card--home .event-card__excerpt { margin: 0 0 10px; font-size: 0.95rem; line-height: 1.5; color: #555; }
.dark-mode .event-card.event-card--home .event-card__excerpt { color: #bbb; }
.event-date-badge { background: #C1272D; color: white; border-radius: 12px; text-align: center; padding: 10px; min-width: 60px; flex-shrink: 0; }
.event-day { font-size: 1.8rem; font-weight: bold; display: block; line-height: 1; }
.event-month { font-size: 0.8rem; text-transform: uppercase; display: block; margin-top: 4px; }
.partners-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; align-items: center; margin-top: 30px; }
.partner-logo-card { background: white; border-radius: 12px; padding: 20px 30px; min-width: 150px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s; }
.partner-logo-card:hover { transform: translateY(-3px); }
.dark-mode .partner-logo-card { background: #1e1e1e; }
.partner-logo-card img { max-width: 100px; max-height: 60px; object-fit: contain; }
.partner-name { font-weight: bold; color: #C1272D; }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { background: white; border-radius: 12px; margin-bottom: 15px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.dark-mode .faq-item { background: #1e1e1e; }
.faq-question { padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.3s; }
.faq-question:hover { background: rgba(193,39,45,0.05); }
.faq-question h3 { font-size: 1rem; margin: 0; }
.faq-answer { padding: 0 20px 20px 20px; color: #666; line-height: 1.6; }
.dark-mode .faq-answer { color: #aaa; }
.loading-spinner { text-align: center; padding: 40px; color: #C1272D; }
.no-data { text-align: center; padding: 40px; color: #888; }
.text-center { text-align: center; }
@media (max-width: 768px) {
    .event-card { flex-direction: column; text-align: center; }
    .event-card.event-card--home .event-card__thumb { width: 100%; max-width: none; flex: none; aspect-ratio: 16 / 9; max-height: 220px; }
    .event-card.event-card--home .event-card__row { flex-direction: column; align-items: center; }
    .event-card.event-card--home .event-card__content { text-align: center; }
    .event-date-badge { display: inline-flex; width: auto; gap: 10px; justify-content: center; }
    .partners-logos { gap: 20px; }
    .partner-logo-card { padding: 15px 20px; min-width: 120px; }
}
@media (max-width: 520px) {
    .projects-grid { grid-template-columns: 1fr; }
    .events-grid { grid-template-columns: 1fr; }
}

/* Images : chargement progressif et connexions lentes */
.media-img-wrap {
    background: #ececec;
    position: relative;
}
.dark-mode .media-img-wrap { background: #2a2a2a; }
.media-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #ececec;
}
.media-img-wrap--modal .media-img {
    max-height: 300px;
    width: 100%;
    object-fit: cover;
}
.media-img--error,
.media-img[src=""] {
    min-height: 120px;
    object-fit: contain;
    opacity: 0.5;
}
.blog-card .media-img {
    min-height: 180px;
}
#produits, #services, #recent-events, #partners {
    content-visibility: auto;
    contain-intrinsic-size: auto 480px;
}
#blog, #recent-projects {
    content-visibility: visible;
    contain: none;
}
.project-card img,
.event-card__thumb img,
.partner-logo-card img {
    loading: lazy;
    decoding: async;
}