/* =======================================================
   KOUMÉ WATER — CSS ORDINATEUR & GRANDS ÉCRANS
   Cible : min-width 1025px et plus
   Fichier : style-desktop.css
   Auteur   : KOUMÉ WATER Web Team
   Version  : 1.1
======================================================= */

/* =========================================
   1. VARIABLES & RESET GLOBAL
========================================= */
:root {
    --primary: #0369a1;
    --primary-dark: #075985;
    --primary-light: #38bdf8;
    --accent: #0ea5e9;
    --white: #ffffff;
    --light: #f0f9ff;
    --light-gray: #f8fafc;
    --gray: #64748b;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --text: #334155;
    --border: #e2e8f0;

    --gradient-main: linear-gradient(135deg, #0369a1 0%, #0ea5e9 50%, #38bdf8 100%);
    --gradient-dark: linear-gradient(135deg, #075985 0%, #0369a1 100%);
    --gradient-hero: linear-gradient(180deg, rgba(3,105,161,0.85) 0%, rgba(7,89,133,0.95) 100%);

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;

    --section-padding: 110px 0;
    --container-width: 1200px;

    --shadow-sm: 0 2px 8px rgba(3,105,161,0.08);
    --shadow-md: 0 8px 30px rgba(3,105,161,0.15);
    --shadow-lg: 0 20px 60px rgba(3,105,161,0.2);
    --shadow-card: 0 4px 20px rgba(15,23,42,0.08);

    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --hero-bg: url('https://images.unsplash.com/photo-1501854140801-50d01698950b?w=1600&q=80');
}

/* RESET */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Empêche le débordement horizontal sur tous les écrans */
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   2. UTILITAIRES
========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section { padding: var(--section-padding); }

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 4.5rem;
}

.section-tag {
    display: inline-block;
    background: var(--light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    border: 1px solid rgba(3,105,161,0.15);
}

.section-tag.light {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.25);
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title.light { color: var(--white); }

.section-subtitle {
    font-size: 1.08rem;
    color: var(--gray);
    line-height: 1.85;
}

.highlight {
    color: var(--primary);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-main);
    border-radius: 3px;
}

.highlight-light { color: var(--primary-light); }

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* BOUTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(3,105,161,0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(3,105,161,0.45);
}

.btn-ghost {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* =========================================
   3. ANIMATIONS SCROLL (Reveal)
========================================= */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.reveal-up {
    transform: translateY(40px);
    transition-delay: var(--delay, 0s);
}

.reveal-left  { transform: translateX(-55px); }
.reveal-right { transform: translateX(55px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* =========================================
   4. HEADER / NAVBAR — VERSION DESKTOP
========================================= */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    background: transparent;
    padding: 1.3rem 0;
    transition: var(--transition);
}

#header.scrolled .navbar {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    box-shadow: 0 2px 30px rgba(3,105,161,0.12);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 46px;
    height: 46px;
    background: var(--gradient-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.35rem;
    box-shadow: var(--shadow-md);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    transition: var(--transition);
}

#header.scrolled .logo-main { color: var(--primary-dark); }
#header.scrolled .logo-sub  { color: var(--gray); }

/* Menu desktop */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.burger { display: none; }
.menu-overlay { display: none; }

.nav-link {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after { width: 60%; }
.nav-link:hover { color: white; }

#header.scrolled .nav-link { color: var(--dark); }
#header.scrolled .nav-link:hover { color: var(--primary); }
#header.scrolled .nav-link::after { background: var(--primary); }

.nav-cta {
    background: var(--gradient-main) !important;
    color: white !important;
    padding: 0.55rem 1.4rem !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(3,105,161,0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(3,105,161,0.4) !important;
}

.nav-cta::after { display: none; }

/* =========================================
   5. HERO SECTION — DESKTOP
   Texte à gauche | Slideshow à droite
========================================= */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-dark);
}

.logo-img-custom {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.logo-fallback-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.3rem;
}

/* Particules flottantes */
.hero-particles {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.4; }
    100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

/* ---- CONTENU TEXTE (côté gauche) ---- */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 8rem 3.5rem 6rem 5rem;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.8rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4.4rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-slogan {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 1.1rem;
    letter-spacing: 0.02em;
}

.hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.72);
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* =========================================
   HERO SLIDESHOW — DESKTOP
   Panneau droit : cadre réduit, bords arrondis,
   flou progressif sur les bords pour une intégration naturelle.
========================================= */
.hero-slideshow {
    position: relative;
    /* Cadre réduit : marges autour pour ne pas toucher le header ni les bords */
    height: calc(100vh - 120px);
    margin-top: 80px;          /* espace sous le header fixe */
    margin-bottom: 20px;
    margin-right: 2.5rem;
    margin-left: 1.5rem;
    overflow: hidden;
    z-index: 0;
    width: calc(100% - 4rem);
    max-width: 100%;

    /* Bords arrondis */
    border-radius: 28px;

    /* Ombre douce pour donner de la profondeur */
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.35),
                0 8px 24px rgba(3, 105, 161, 0.2);

    /* Flou progressif sur les bords via mask-image :
       fondu transparent sur les 4 côtés */
    -webkit-mask-image:
        linear-gradient(to right,  transparent 0%, black 6%, black 94%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-composite: destination-in;
    mask-image:
        linear-gradient(to right,  transparent 0%, black 6%, black 94%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-composite: intersect;
}

/* L'overlay sombre est invisible sur desktop */
.hero-slide-overlay { display: none; }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active { opacity: 1; }

/* Images du slideshow */
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Animation Ken Burns subtile */
    animation: kenBurns 8s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}

/* Dots de navigation */
.slide-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.slide-dot.active {
    background: white;
    transform: scale(1.3);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 3;
}

.scroll-dot {
    width: 2px;
    height: 40px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.scroll-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: white;
    border-radius: 2px;
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
    0%   { top: -40%; }
    100% { top: 140%; }
}

/* ---- Maps & logo image ---- */
.map-embed-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

.map-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
    padding: 0.6rem 1.2rem;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.map-open-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Badge ISO flottant */
.about-shield-float {
    position: absolute;
    top: 2.5rem;
    right: -2.5rem;
    background: var(--gradient-main);
    border-radius: 16px;
    padding: 1.1rem 1.5rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-md);
}

.about-shield-float i      { font-size: 1.8rem; display: block; margin-bottom: 0.3rem; }
.about-shield-float span   { font-size: 0.65rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.1em; display: block; }
.about-shield-float strong { font-size: 1.1rem; font-weight: 700; display: block; }

/* Counter label */
.counter-label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 0.4rem;
    line-height: 1.4;
}

/* =========================================
   6. QUICK STATS — DESKTOP
========================================= */
.quick-stats {
    background: var(--primary-dark);
    padding: 1.8rem 0;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.94rem;
    padding: 0.75rem 2.5rem;
}

.stat-item i { color: var(--primary-light); font-size: 1.2rem; }
.stat-item strong { color: white; }

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.2);
}

/* =========================================
   7. À PROPOS — DESKTOP
========================================= */
.about { background: var(--white); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    height: 540px;
}

.about-img-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-badge-float {
    position: absolute;
    bottom: 2.5rem;
    left: -2.5rem;
    background: var(--white);
    border-radius: 16px;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: var(--shadow-lg);
    animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.about-badge-float i      { font-size: 1.9rem; color: var(--primary); }
.about-badge-float strong { display: block; font-size: 0.95rem; color: var(--dark); }
.about-badge-float span   { font-size: 0.78rem; color: var(--gray); }

.about-years-float {
    position: absolute;
    top: 2.5rem;
    right: -2.5rem;
    background: var(--gradient-main);
    border-radius: 16px;
    padding: 1.1rem 1.5rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-md);
}

.about-years-float .big-num {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.about-years-float span:last-child {
    font-size: 0.75rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-text {
    color: var(--gray);
    font-size: 1.04rem;
    line-height: 1.9;
    margin-bottom: 1.3rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    margin-top: 2.2rem;
}

.feature-item {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.08);
}

.feature-item strong { display: block; color: var(--dark); font-size: 0.97rem; margin-bottom: 0.3rem; }
.feature-item p      { font-size: 0.9rem; color: var(--gray); line-height: 1.65; }

/* =========================================
   8. PRODUITS — DESKTOP (3 colonnes)
========================================= */
.products { background: var(--light-gray); }

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
}

.product-card {
    background: var(--white);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition-delay: var(--delay, 0s);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.product-featured {
    background: var(--gradient-main);
    border: none;
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.product-featured:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: 0 28px 65px rgba(3,105,161,0.38);
}

.product-img-wrap {
    position: relative;
    height: 240px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-featured .product-img-wrap { background: rgba(255,255,255,0.1); }

.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-img-placeholder img { width: 100%; height: 100%; object-fit: cover; }

.product-icon-large           { font-size: 5.5rem; color: var(--primary-light); opacity: 0.4; }
.product-featured .product-icon-large { color: rgba(255,255,255,0.3); }

.product-badge {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: var(--primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
}

.product-featured .product-badge { background: rgba(255,255,255,0.25); }

.product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

.product-info h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
}

.product-featured .product-info h3,
.product-featured .product-volume,
.product-featured .product-desc { color: white; }

.product-volume {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-display);
    line-height: 1;
}

.product-desc { font-size: 0.92rem; color: var(--gray); line-height: 1.75; }

.product-features { display: flex; flex-direction: column; gap: 0.45rem; margin: 0.5rem 0; }
.product-features li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.88rem; color: var(--text); }
.product-features li i { color: var(--primary); font-size: 0.88rem; }

.product-featured .product-features li     { color: rgba(255,255,255,0.85); }
.product-featured .product-features li i   { color: rgba(255,255,255,0.7); }

.product-info .btn { margin-top: auto; }

.product-featured .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.product-featured .btn-primary:hover { background: var(--light); }

/* =========================================
   9. SERVICES — DESKTOP (3 colonnes)
========================================= */
.services { background: var(--white); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 2.5rem 2.2rem;
    transition: var(--transition);
    transition-delay: var(--delay, 0s);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.service-icon-wrap {
    width: 64px;
    height: 64px;
    background: var(--light);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.service-card p { font-size: 0.92rem; color: var(--gray); line-height: 1.8; }

/* =========================================
   10. QUALITÉ — DESKTOP
========================================= */
.quality {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.quality::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: rgba(255,255,255,0.025);
    border-radius: 50%;
    pointer-events: none;
}

.quality-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.quality-text {
    color: rgba(255,255,255,0.75);
    font-size: 1.04rem;
    line-height: 1.9;
    margin-bottom: 2.2rem;
}

.quality-badges { display: flex; flex-direction: column; gap: 1.1rem; }

.quality-badge {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 1.1rem 1.5rem;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    transition-delay: var(--delay, 0s);
}

.quality-badge:hover { background: rgba(255,255,255,0.15); transform: translateX(10px); }

.qbadge-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-light);
}

.qbadge-text strong { display: block; color: white; font-size: 0.97rem; margin-bottom: 0.2rem; }
.qbadge-text span   { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* Anneaux animés */
.quality-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 480px;
}

.quality-rings {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    animation: rotateSlow linear infinite;
}

.ring-1 { width: 320px; height: 320px; border-color: rgba(56,189,248,0.2); animation-duration: 22s; }
.ring-2 { width: 235px; height: 235px; border-color: rgba(56,189,248,0.15); animation-duration: 16s; animation-direction: reverse; }
.ring-3 { width: 158px; height: 158px; border-color: rgba(56,189,248,0.28); animation-duration: 11s; }

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.quality-center-icon {
    position: relative;
    z-index: 2;
    width: 115px;
    height: 115px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.quality-center-icon i      { font-size: 2.2rem; color: var(--primary-light); margin-bottom: 0.35rem; }
.quality-center-icon span   { font-size: 0.65rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.1em; }
.quality-center-icon strong { font-size: 0.82rem; color: white; }

.quality-stats-float {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.8rem;
}

.qstat {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 0.75rem 1.3rem;
    white-space: nowrap;
}

.qstat i      { color: var(--primary-light); font-size: 1rem; }
.qstat span   { color: white; font-size: 0.92rem; }
.qstat strong { color: var(--primary-light); }

/* =========================================
   11. ENGAGEMENT SOCIAL — DESKTOP (4 colonnes)
========================================= */
.social { background: var(--light-gray); }

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.social-card {
    background: white;
    border-radius: 22px;
    padding: 2.2rem 2rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    transition-delay: var(--delay, 0s);
}

.social-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: var(--primary); }

.social-icon {
    width: 76px;
    height: 76px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.3rem;
    font-size: 1.9rem;
    color: var(--primary);
    transition: var(--transition);
}

.social-card:hover .social-icon { background: var(--primary); color: white; transform: scale(1.1); }

.social-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--dark); margin-bottom: 0.8rem; }
.social-card p  { font-size: 0.9rem; color: var(--gray); line-height: 1.8; }

/* =========================================
   12. COMPTEURS — DESKTOP (4 colonnes)
========================================= */
.counters { background: var(--white); }

.counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.2rem;
}

.counter-card {
    text-align: center;
    padding: 3.2rem 2rem;
    background: var(--light);
    border-radius: 26px;
    border: 1px solid rgba(3,105,161,0.1);
    transition: var(--transition);
    transition-delay: var(--delay, 0s);
    position: relative;
    overflow: hidden;
}

.counter-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.counter-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.counter-card:hover::before { transform: scaleX(1); }

.counter-icon { font-size: 2.2rem; color: var(--primary); margin-bottom: 1.1rem; display: block; }

.counter-num {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: 0.8rem;
}

.counter-prefix, .counter-suffix { color: var(--accent); }

.counter-card p {
    font-size: 0.88rem;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* =========================================
   13. GALERIE — DESKTOP
========================================= */
.gallery-section { background: var(--light-gray); }

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 270px 270px;
    gap: 1.1rem;
}

.gallery-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition-delay: var(--delay, 0s);
}

.gallery-large { grid-row: 1 / 3; }

.gallery-placeholder { width: 100%; height: 100%; position: relative; }
.gallery-placeholder img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3,105,161,0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    gap: 0.5rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i    { font-size: 2rem; }
.gallery-overlay span { font-size: 0.88rem; font-weight: 500; }
.video-overlay { background: rgba(3,105,161,0.5); opacity: 0.8; }
.video-overlay i { font-size: 3.2rem; }

/* =========================================
   14. CONTACT — DESKTOP
========================================= */
.contact { background: var(--white); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4.5rem;
    align-items: start;
}

.contact-card-info {
    background: var(--light);
    border-radius: 26px;
    padding: 2.8rem;
    border: 1px solid rgba(3,105,161,0.1);
}

.contact-card-info h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--dark); margin-bottom: 2rem; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    margin-bottom: 1.6rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-of-type { border-bottom: none; margin-bottom: 1rem; }

.contact-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: var(--primary);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.15rem;
}

.contact-item strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray); margin-bottom: 0.3rem; }
.contact-item p,
.contact-item a { color: var(--dark); font-size: 0.97rem; line-height: 1.55; }
.contact-item a:hover { color: var(--primary); }

.contact-social { padding-top: 1rem; margin-top: 0.5rem; }
.contact-social p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray); margin-bottom: 0.85rem; }

.social-links { display: flex; gap: 0.65rem; }

.social-link {
    width: 42px;
    height: 42px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 1.15rem;
    transition: var(--transition);
}

.social-link:hover { background: var(--primary); border-color: var(--primary); color: white; transform: translateY(-3px); }

.map-placeholder { margin-top: 1.6rem; border-radius: 18px; overflow: hidden; }

.map-default {
    background: var(--light);
    border: 1px dashed rgba(3,105,161,0.3);
    border-radius: 18px;
    padding: 2.2rem;
    text-align: center;
    color: var(--primary);
}

.map-default i    { font-size: 2.2rem; margin-bottom: 0.5rem; display: block; }
.map-default span { font-weight: 600; display: block; margin-bottom: 0.3rem; }
.map-default p    { font-size: 0.82rem; color: var(--gray); }

/* Formulaire */
.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 3rem;
    box-shadow: var(--shadow-card);
}

.contact-form h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--dark); margin-bottom: 2.2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.form-group { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.3rem; }

.form-group label { font-size: 0.86rem; font-weight: 600; color: var(--dark); letter-spacing: 0.02em; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1.5px solid var(--border);
    border-radius: 13px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--dark);
    background: var(--white);
    transition: var(--transition);
    outline: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(3,105,161,0.08);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #ef4444; }

.error-msg { font-size: 0.78rem; color: #ef4444; min-height: 1em; }

.form-group textarea { resize: vertical; min-height: 140px; }

.form-success {
    display: none;
    text-align: center;
    padding: 2.2rem;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 18px;
    margin-top: 1.2rem;
}

.form-success i      { font-size: 2.7rem; color: #10b981; display: block; margin-bottom: 0.6rem; }
.form-success strong { color: #065f46; display: block; margin-bottom: 0.35rem; }
.form-success p      { color: #047857; font-size: 0.92rem; }
.form-success.show   { display: block; animation: fadeIn 0.5s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   TÉMOIGNAGES — DESKTOP
========================================= */
.testimonials {
    background: var(--white);
    overflow: hidden;
}

/* En-tête déjà géré par .section-header */

/* Wrapper carousel */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
    padding-bottom: 4rem; /* espace pour les contrôles */
}

/* Track — flex horizontal */
.testimonials-track {
    display: flex;
    gap: 1.8rem;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    /* Largeur auto calculée par JS */
}

/* Carte témoignage */
.testimonial-card {
    background: var(--light-gray);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.4rem 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    /* Chaque carte occupe 1/3 de la largeur visible (3 cartes desktop) */
    flex: 0 0 calc((100% - 2 * 1.8rem) / 3);
    min-width: 0;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    overflow: hidden;
}

/* Barre colorée en haut au hover */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    border-radius: 24px 24px 0 0;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(3,105,161,0.15);
}

.testimonial-card:hover::before { transform: scaleX(1); }

/* Carte mise en avant */
.testimonial-featured {
    background: var(--gradient-main);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.testimonial-featured::before { display: none; }

.testimonial-featured:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 65px rgba(3,105,161,0.4);
}

/* Icône guillemet */
.testimonial-quote-icon {
    font-size: 2.8rem;
    line-height: 1;
    color: var(--primary-light);
    opacity: 0.5;
}

.testimonial-featured .testimonial-quote-icon {
    color: rgba(255,255,255,0.6);
    opacity: 1;
}

/* Texte */
.testimonial-text {
    font-size: 0.97rem;
    color: var(--text);
    line-height: 1.85;
    flex: 1;
    font-style: italic;
}

.testimonial-featured .testimonial-text { color: rgba(255,255,255,0.92); }

/* Étoiles */
.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    color: #f59e0b;
    font-size: 0.88rem;
}

.testimonial-featured .testimonial-stars { color: #fde68a; }

/* Auteur */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
}

.testimonial-featured .testimonial-author { border-top-color: rgba(255,255,255,0.2); }

/* Avatar initiales */
.testimonial-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    color: white;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 14px rgba(3,105,161,0.3);
}

.testimonial-featured .testimonial-avatar {
    background: rgba(255,255,255,0.25);
    box-shadow: none;
}

.testimonial-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 0.15rem;
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--gray);
}

.testimonial-featured .testimonial-info strong { color: white; }
.testimonial-featured .testimonial-info span   { color: rgba(255,255,255,0.7); }

/* ---- Contrôles navigation ---- */
.testimonials-controls {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.testi-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.testi-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.testi-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.testi-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.testi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.testi-dot.active {
    background: var(--primary);
    transform: scale(1.4);
}

/* =========================================
   15. FOOTER — DESKTOP
========================================= */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); }

.footer-top { padding: 5.5rem 0 3.5rem; }

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.6fr;
    gap: 3.5rem;
}

.footer-tagline { font-style: italic; color: var(--primary-light); font-size: 0.97rem; margin: 0.85rem 0; }
.footer-desc    { font-size: 0.9rem; line-height: 1.85; color: rgba(255,255,255,0.5); margin-bottom: 1.6rem; }

.footer-social { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    transition: var(--transition);
}

.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: white; transform: translateY(-3px); }

.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: white; margin-bottom: 1.4rem; }
.footer-col ul li { margin-bottom: 0.65rem; }

.footer-col ul li a { font-size: 0.92rem; color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary-light); padding-left: 7px; }

.footer-contact-item { display: flex; align-items: flex-start; gap: 0.85rem; margin-bottom: 1.05rem; font-size: 0.9rem; }
.footer-contact-item i { color: var(--primary-light); font-size: 1.05rem; margin-top: 2px; }
.footer-contact-item a:hover { color: var(--primary-light); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.6rem 0; display: flex; }

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom p { font-size: 0.83rem; color: rgba(255,255,255,0.4); }

.logo-footer .logo-main { color: white; }
.logo-footer .logo-sub  { color: rgba(255,255,255,0.5); }

/* =========================================
   16. BACK TO TOP — DESKTOP
========================================= */
.back-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 52px;
    height: 52px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover   { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* =========================================
   17. GRAND ÉCRAN — min-width: 1400px
========================================= */
@media (min-width: 1400px) {
    :root {
        --container-width: 1360px;
        --section-padding: 130px 0;
    }

    .hero-title     { font-size: 6.5rem; }
    .section-title  { font-size: 3.4rem; }

    .about-grid     { gap: 8rem; }
    .about-img-wrapper { height: 600px; }

    .products-grid  { gap: 2.5rem; }
    .services-grid  { gap: 2.2rem; }
    .counters-grid  { gap: 2.5rem; }
    .social-grid    { gap: 2.2rem; }

    .footer-grid    { gap: 4rem; }
}

/* =========================================
   18. TABLETTE — max-width: 1024px
========================================= */
@media (max-width: 1024px) {
    :root { --section-padding: 90px 0; }

    .about-grid        { gap: 3.5rem; }
    .about-img-wrapper { height: 460px; }
    .about-years-float { right: -1rem; }
    .about-badge-float { left: -1rem; }

    .products-grid  { gap: 1.3rem; }
    .services-grid  { gap: 1.5rem; }
    .quality-inner  { gap: 4rem; }
    .contact-grid   { gap: 3rem; }

    .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .gallery-large { grid-row: auto; grid-column: span 2; height: 300px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

    .hero-title { font-size: 4.2rem; }

    /* Slideshow tablette : légèrement réduit, bords arrondis conservés */
    .hero-slideshow {
        height: calc(100vh - 100px);
        margin-top: 70px;
        margin-bottom: 15px;
        margin-right: 1.5rem;
        margin-left: 1rem;
        width: calc(100% - 2.5rem);
        border-radius: 20px;
    }
}