/* ============================================================
   BUSINESS FOCUS - STYLE.CSS
   Design Premium Corporate 2026
   ============================================================ */

/* ====== VARIABLES ====== */
:root {
    --primary: #0a2540;
    --primary-light: #1a3a5c;
    --primary-dark: #0d86ff;
    --accent: #4b8ae1;
    --accent-light: #1813b5;
    --accent-dark: #0d2360;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --font-primary: 'Poppins', 'Inter', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --section-padding: 100px;
    --container-max: 1200px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(75, 138, 225, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --ad-width: 200px;
    --ad-gap: 20px;
}

[data-theme="dark"] {
    --primary: #e2e8f0;
    --primary-light: #f1f5f9;
    --primary-dark: #cbd5e1;
    --white: #0f172a;
    --gray-50: #162032;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    --gray-900: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--transition-normal), color var(--transition-normal);
    padding-top: 80px;
}

/* Padding-top ajusté pour mobile */
@media (max-width: 767px) {
    body {
        padding-top: 0;
    }
}

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

ul {
    list-style: none;
}

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

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

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

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


/* ====== NAVBAR ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--gray-500);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-dark);
    background: rgba(0, 212, 170, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-whatsapp,
.nav-email,
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    color: var(--gray-600);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.nav-whatsapp {
    color: #25d366;
}

.nav-whatsapp:hover {
    background: #25d366;
    color: var(--white);
    transform: translateY(-2px);
}

.nav-email:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.theme-toggle:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    width: 40px;
    height: 40px;
    justify-content: center;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ====== PUBS MOBILE (bandeau horizontal au-dessus de la navbar) ====== */
.ad-mobile {
    display: none;
    /* Caché sur desktop */
    width: 100%;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    padding: 6px 0;
    overflow: hidden;
    position: relative;
    z-index: 1001;
    /* Au-dessus de la navbar */
}

.ad-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.ad-marquee-track {
 display: flex;
    gap: 8px;
    width: max-content;
    animation: marqueeScroll 35s linear infinite;
   
}

.ad-marquee:hover .ad-marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ad-banner {
    flex-shrink: 0;
    width: 160px;
    height: 75px;           /* ← 50px image + 25px bouton */
    background: var(--white);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;          /* ← CHANGÉ : block → flex */
    flex-direction: column; /* ← AJOUTÉ */
    transition: all 0.2s ease;
}

.ad-banner:hover {
    border-color: var(--accent);
    transform: scale(1.02);
}

.ad-banner-image {         /* ← NOUVELLE CLASSE */
    width: 100%;
    height: 50px;          /* ← FIXÉ à 50px */
    position: relative;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;        /* ← Ne rétrécit pas */
}

.ad-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ad-banner-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--gray-400);
    background: var(--gray-50);
}

.ad-banner-fallback i {
    font-size: 1rem;
    opacity: 0.5;
}

.ad-banner-fallback span {
    font-size: 0.65rem;
    font-weight: 600;
}




/* ====== BOUTON MOBILE (sous les pubs du bandeau) ====== */
.ad-contact-btn.mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 25px;              /* ← Hauteur fixe */
    padding: 0 8px;
    font-size: 0.65rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-top: 1px solid var(--gray-200);
    flex-shrink: 0;
    cursor: pointer;
}

/* Variantes de couleurs */
.ad-contact-btn.facebook-btn {
    background: linear-gradient(135deg, #1877f2, #0d5cb8);
    color: var(--white);
}

.ad-contact-btn.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: var(--white);
}

.ad-contact-btn.instagram-btn {
    background: linear-gradient(135deg, #e4405f, #c13584);
    color: var(--white);
}

.ad-contact-btn.email-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
}

/* ====== PUBS DESKTOP (côtés verticaux) ====== */
.ad-desktop {
  position: fixed;
    top: 80px;
    bottom: 20px;
    width: var(--ad-width);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    overflow-y: auto;
}

.ad-desktop.ad-left {
     left: 0;
    display: flex;
}

.ad-desktop.ad-right {
    right: 0;
    display: flex;
}

/* Slot publicitaire */
.ad-slot {
    background: var(--white);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    flex-shrink: 0;

}

.ad-slot:hover {
     border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Badge "Publicité" */
.ad-badge {
   position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Lien cliquable */
.ad-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Wrapper image */
.ad-image-wrapper {
   position: relative;
    width: 100%;
    height: 180px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.ad-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform var(--transition-normal);
}

.ad-slot:hover .ad-image-wrapper img {
     transform: scale(1.05);
}

/* Fallback si pas d'image */
.ad-fallback {
   position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gray-400);
    text-align: center;
    padding: 16px;
    background: var(--gray-50);
}
.ad-fallback.active {
    display: flex;
}
.ad-fallback i {
       font-size: 2rem;
    opacity: 0.5;
}

.ad-fallback span {
    font-size: 0.85rem;
    font-weight: 600;
}

.ad-fallback small {
   font-size: 0.7rem;
    color: var(--gray-400);
}

/* Ancien style (conservé pour compatibilité) */
.ad-placeholder {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 20px 12px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-normal);
    min-height: 200px;
}

.ad-placeholder:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.ad-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    background: var(--gray-100);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.ad-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--gray-400);
}

.ad-content i {
    font-size: 2rem;
    opacity: 0.5;
}

.ad-content p {
    font-size: 0.8rem;
    font-weight: 500;
}

.ad-content span {
    font-size: 0.65rem;
    color: var(--gray-400);
}


/* ====== MAIN CONTENT ====== */
.main-content {
    margin-left: calc(var(--ad-width) + var(--ad-gap));
    margin-right: calc(var(--ad-width) + var(--ad-gap));
    padding-top: 0;
}


/* ====== HERO ====== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(10, 37, 64, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 212, 170, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }

    25% {
        transform: translateY(-30px) translateX(20px);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-60px) translateX(-10px);
        opacity: 0.2;
    }

    75% {
        transform: translateY(-30px) translateX(30px);
        opacity: 0.5;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-dark);
    margin-bottom: 32px;
}

.hero-badge i {
    color: var(--accent);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 40px;
}

.title-line {
    display: block;
}

.highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
}

.brand-logo-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    box-shadow: var(--shadow-glow);
}

.brand-info h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: 2px;
    line-height: 1.1;
}

.brand-info p {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 4px;
}

.founder {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-dark);
    margin-top: 6px;
}

.hero-counter {
    margin-bottom: 32px;
}

.counter-item {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 12px 28px;
    border-radius: var(--radius-full);
}


.counter-num {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}


.counter-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.4);
}

.btn-whatsapp {
    background: var(--white);
    color: #25d366;
    border-color: #25d366;
}

.btn-whatsapp:hover {
    background: #25d366;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.hero-places {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.place-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-500);
    transition: all var(--transition-fast);
}

.place-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.place-icon {
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
        height: 40px;
    }

    50% {
        opacity: 0.3;
        height: 20px;
    }
}

/* ====== SECTIONS ====== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(0, 212, 170, 0.1);
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ====== FLIP CARDS ====== */
.flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.flip-card {
    perspective: 1000px;
    height: 320px;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: var(--radius-xl);
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.flip-front {
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 12px;
}

.flip-icon {
    position: relative;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(0, 212, 170, 0.05));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.flip-icon i {
    font-size: 1.8rem;
    color: var(--accent);
}

.country-flag {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 1.5rem;
}

.flip-front h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.flip-country {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 500;
}

.flip-more {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
}

.flip-back {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    transform: rotateY(180deg);
    justify-content: center;

    padding: 20px;
    /* ← AJOUTE CECI */
    overflow: hidden;
}

.flip-back h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.flip-back ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* ← change 10px → 5px */
    margin-bottom: 14px;
    /* ← change 24px → 14px */
}

.flip-back li {
    display: flex;
    align-items: center;
    gap: 8px;
    /* ← change 10px → 8px */
    font-size: 0.78rem;
    /* ← change 0.9rem → 0.78rem */
}

.flip-back li i {
    color: var(--accent);
    font-size: 0.65rem;
    /* ← change 0.8rem → 0.65rem */
}

.flip-back .btn {
    margin-top: auto;
    align-self: center;
    background: var(--accent);
    color: var(--white);
    padding: 8px 18px;
    /* ← AJOUTE CECI */
    font-size: 0.78rem;
    /* ← AJOUTE CECI */
}

.flip-back .btn:hover {
    background: var(--accent-light);
}

/* ====== SERVICES GRID ====== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(0, 212, 170, 0.05));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--accent);
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ====== GALLERIES ====== */
.gallery-block {
    margin-bottom: 60px;
}

.gallery-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-title i {
    color: var(--accent);
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.slider-track {
    display: flex;
    gap: 20px;
    transition: transform var(--transition-slow);
    padding: 4px;
}

.slide {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 0;
    max-width: calc(33.333% - 14px);
    box-sizing: border-box;
    min-height: 250px; /* CORRECTION : Hauteur minimale */
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

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

.slide-placeholder,
.card-placeholder,
.mockup-placeholder {
    background: var(--white);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.slide-placeholder:hover,
.card-placeholder:hover,
.mockup-placeholder:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 212, 170, 0.02);
}

.slide-placeholder i,
.card-placeholder i,
.mockup-placeholder i {
    font-size: 2.5rem;
    opacity: 0.5;
}

.slide-placeholder span,
.card-placeholder span,
.mockup-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    z-index: 2;
}

.slider-btn:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.slider-prev {
    left: 12px;
}

.slider-next {
    right: 12px;
}

/* ====== GALERIE CARTES - AVEC JS ====== */





.cards-gallery {
   display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
    position: relative;
    perspective: 1200px;
    margin: 20px 0;
}


.card-item {
    position: absolute;
    width: 320px;
    height: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
    /* CORRECTION : Toujours visible par défaut, le JS gère l'opacité */
}

.card-item:first-child {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}  

   .card-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}


.card-flip {
      position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}



.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.card-front {
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg);
    z-index: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.card-front img,
.card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px;
}











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

.mockup-placeholder {
    padding: 80px 20px;
}

.mockup-item:hover .mockup-placeholder {
    transform: scale(1.02);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}





















.video-player {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--gray-900);
}

.video-placeholder {
    padding: 100px 20px;
    text-align: center;
    color: var(--gray-400);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.7;
    transition: all var(--transition-normal);
}

.video-placeholder:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.video-placeholder span {
    font-size: 1.1rem;
    font-weight: 600;
}

.video-placeholder p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ====== STATS ====== */
.stats-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    color: var(--white);
}

.stats-section .section-title,
.stats-section .section-tag {
    color: var(--white);
}

.stats-section .section-tag {
    background: rgba(255, 255, 255, 0.1);
}

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

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 40px 24px;
    text-align: center;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 212, 170, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
    color: var(--accent);
}

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-card p {
    margin-top: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ====== TESTIMONIALS ====== */
.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 24px;
     transition: transform var(--transition-slow);
}

.testimonial-card {
    flex: 0 0 calc(50% - 12px);
    min-width: 320px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonial-stars i {
    color: #fbbf24;
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-photo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.author-info span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}
/* ====== BOUTONS TÉMOIGNAGES ====== */
.testimonials-slider {
    position: relative;
    overflow: hidden;
}

/* ====== BOUTONS TÉMOIGNAGES ====== */
.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testi-prev,
.testi-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    z-index: 2;
    cursor: pointer;
}

.testi-prev {
    left: 12px;
}

.testi-next {
    right: 12px;
}

.testi-prev:hover,
.testi-next:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* ====== TRACK DES TÉMOIGNAGES ====== */
.testimonials-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;  /* ou var(--transition-slow) */
}

.testi-prev {
    left: 12px;
}

.testi-next {
    right: 12px;
}

.testi-prev:hover,
.testi-next:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}




.dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    transition: all var(--transition-fast);
}

.dot.active {
    background: var(--accent);
    width: 30px;
}

.dot:hover {
    background: var(--accent-dark);
}

/* ====== FAQ ====== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--gray-300);
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    text-align: left;
    background: none;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent-dark);
}

.faq-question i {
    transition: transform var(--transition-normal);
    color: var(--accent);
    font-size: 0.9rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ====== CONTACT ====== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition-fast);
}

.info-card:hover {
    border-color: var(--accent);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(0, 212, 170, 0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.info-content a,
.info-content p {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-800);
    transition: color var(--transition-fast);
}

.info-content a:hover {
    color: var(--accent);
}

.map-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-top: 8px;
    box-shadow: var(--shadow-md);
}

/* ====== FORMULAIRE ====== */
.contact-form-wrapper {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    min-width: 0;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--gray-800);
    background: var(--gray-50);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-error {
    display: block;
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 4px;
    min-height: 18px;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444;
}

.dynamic-fields {
    margin-bottom: 20px;
}

.dynamic-field {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.form-file {
    margin-bottom: 24px;
}

.form-file label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 20px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.form-file label:hover {
    border-color: var(--accent);
    background: rgba(0, 212, 170, 0.02);
}

.form-file label i {
    font-size: 2rem;
    color: var(--accent);
}

.form-file label span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-file label small {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.form-file input {
    display: none;
}

.file-preview {
    margin-top: 12px;
    padding: 12px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: none;
}

.file-preview.active {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-preview i {
    color: var(--accent);
}

.file-preview span {
    font-size: 0.85rem;
    color: var(--gray-700);
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1rem;
}

.btn-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-success {
    background: rgba(0, 212, 170, 0.1);
    color: #065f46;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.form-error-msg {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-message i {
    font-size: 1.2rem;
    flex-shrink: 0;
}


/* ====== FOOTER ====== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 60px 0 0;
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-800);
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    min-width: 200px;
}

.footer-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.footer-brand-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.footer-brand-info p {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray-500);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.footer-founder {
    display: block;
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 6px;
}

.footer-links,
.footer-contact {
    text-align: center;
    min-width: 150px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.footer-links a,
.footer-contact a {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 10px;
    transition: color var(--transition-fast);
    text-align: center;
}

.footer-contact a[href^="mailto:"] {
    font-size: 0.65rem;
    text-align: center;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent);
}

.footer-contact a i {
    margin-right: 8px;
    color: var(--accent);
    width: 16px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 1rem;
    transition: all var(--transition-fast);
    margin-bottom: 0;
}

.footer-socials a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.footer-bottom p {
    margin-bottom: 4px;
}

.footer-bottom strong {
    color: var(--accent);
}































/* ====== BACK TO TOP ====== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.4);
}

/* ====== REVEAL ANIMATIONS ====== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====== SOUS-TITRE GALERIE ====== */
.gallery-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-600);
    margin: 30px 0 16px 0;
    padding-left: 12px;
    border-left: 3px solid var(--accent);
}

/* ====== MAQUETTES VERTICALES (Portrait) ====== */
.mockups-gallery.vertical {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 40px;
}

.mockups-gallery.vertical .mockup-placeholder {
    aspect-ratio: 3/4;
    padding: 0;
    overflow: hidden;
    position: relative;
    background: var(--gray-100);
}

.mockups-gallery.vertical .mockup-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    display: block;
}

/* ====== MAQUETTES HORIZONTALES (Paysage 16:9) ====== */
.mockups-gallery.horizontal {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.mockups-gallery.horizontal .mockup-placeholder {
    aspect-ratio: 16/9;
    padding: 0;
    overflow: hidden;
    position: relative;
}

/* ====== IMAGES - TOUJOURS AFFICHÉES ====== */
.mockups-gallery .mockup-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
}

/* Seulement si l'image est absente, le fallback s'affiche */
.mockups-gallery .mockup-placeholder img[src] {
    position: relative;
}

/* ====== IMAGES - TOUJOURS AFFICHÉES ====== */
.mockups-gallery .mockup-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
    z-index: 2;
}

.mockups-gallery .mockup-placeholder i,
.mockups-gallery .mockup-placeholder span {
    position: relative;
    z-index: 1;
}

.mockups-gallery .mockup-placeholder.no-image img {
    display: none !important;
}

.mockups-gallery .mockup-placeholder.no-image i,
.mockups-gallery .mockup-placeholder.no-image span {
    display: block;
}

/* ====== FALLBACK QUAND IMAGE N'EXISTE PAS ====== */
.mockups-gallery .mockup-placeholder.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.mockups-gallery .mockup-placeholder.no-image img {
    display: none !important;
}

/* ====== VIDEO PLEIN ESPACE ====== */
.video-full {
   width: 100%;
    max-width: 1009px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;        /* ← ratio standard, ou garde 1009/568 */
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000;            /* ← fond noir pour les bandes */
    display: flex;               /* ← AJOUTÉ : centre la vidéo */
    align-items: center;         /* ← AJOUTÉ : centre verticalement */
    justify-content: center;     /* ← AJOUTÉ : centre horizontalement */
}

.video-full .video-real {
     width: 100%;
    height: 100%;
    object-fit: contain;    /* ← ✅ VIDÉO ENTIÈRE, JAMAIS COUPÉE */
    display: block;
    border-radius: var(--radius-xl);
}

/* ====== PLUSIEURS NUMÉROS DANS UNE CASE ====== */
.info-content a {
    display: block;
    margin-bottom: 4px;
}

.info-content a:last-child {
    margin-bottom: 0;
}

/* ====== CONTACT EN COLONNE ====== */
.contact-section .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ====== INFOS EN HAUT ====== */
.contact-info-top {
    width: 100%;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.contact-info-grid .info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.contact-info-grid .info-content a {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-800);
}

.contact-info-grid .info-content a:last-child {
    margin-bottom: 0;
}

/* ====== MAP PLEINE LARGEUR ====== */
.map-container-full {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container-full iframe {
    width: 100%;
    height: 300px;
    border: 0;
    display: block;
}

/* ====== FORMULAIRE EN BAS ====== */
.contact-form-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-lg);
}

/* ====== ANCIENNE GRILLE SUPPRIMÉE ====== */
/* .contact-grid { display: none; } supprimé - inutile */

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

/* PC / DESKTOP (1025px et plus) — inchangé */
@media (min-width: 1025px) {
    .ad-desktop {
        display: flex;
    }

    .ad-mobile {
        display: none !important;
    }

    .main-content {
        margin-left: calc(var(--ad-width) + var(--ad-gap));
        margin-right: calc(var(--ad-width) + var(--ad-gap));
    }

    
}

/* TABLETTE (768px à 1024px) — IDENTIQUE AU PC */
@media (min-width: 768px) and (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    /* Pubs desktop VISIBLES sur tablette */
    .ad-desktop {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        width: 160px;
        /* Plus étroit que PC */
        top: 10px;
        bottom: 10px;
        padding: 12px 8px;
        gap: 12px;
    }

    /* Pubs mobile CACHÉES sur tablette */
    .ad-mobile {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Navbar ajustée */
    .navbar {
        position: relative;
        top: 0 !important;
    }

    .navbar.scrolled {
        padding: 10px 0;
    }

    /* Contenu principal avec marges pour les pubs */
    .main-content {
        margin-left: 176px !important;
        /* 160px + 16px gap */
        margin-right: 176px !important;
        padding-top: 0;
    }

    

    /* Ajustements pubs tablette */
    .ad-slot {
        border-width: 1px;
        border-radius: var(--radius-md);
    }

    .ad-badge {
        font-size: 0.55rem;
        padding: 2px 6px;
        top: 6px;
        left: 6px;
    }

       .ad-image-wrapper {
        height: 150px;
    }

    .ad-fallback i {
        font-size: 1.5rem;
    }

    .ad-fallback span {
        font-size: 0.75rem;
    }

    .ad-fallback small {
        font-size: 0.6rem;
    }

    /* Contenu plus compact */
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero {
        min-height: auto;
        padding: 100px 16px 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .flip-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .flip-card {
        height: 280px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .testimonial-card {
        flex: 0 0 100%;
        min-width: auto;
    }
    .slide {
        flex: 0 0 calc(50% - 10px);
        min-width: 0;
        max-width: calc(50% - 10px);
        box-sizing: border-box;
    }

    .cards-gallery {
        min-height: 260px;
    }

    .card-item {
           width: 260px;
        height: 170px;
    }

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

    .contact-form-wrapper {
        padding: 28px;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* MOBILE (767px et moins) — pubs sous la navbar */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px;
        --ad-width: 0px;
    }

    body {
        padding-top: 0 !important;
        overflow-x: hidden !important;
    }

    /* ====== Pubs desktop COMPLETEMENT supprimées ====== */
    .ad-desktop,
    .ad-desktop.ad-left,
    .ad-desktop.ad-right {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        overflow: hidden !important;
    }

    /* ====== Pubs mobile VISIBLES ====== */
    .ad-mobile {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        z-index: 999;
        width: 100%;
        background: var(--gray-100);
        border-bottom: 1px solid var(--gray-200);
        padding: 8px 0;
        overflow: hidden;
    }

    /* ====== Navbar ====== */
    .navbar {
        position: relative !important;
        padding: 12px 0;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* ====== CONTENU PRINCIPAL — CORRIGÉ ====== */
    .main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-top: 0;
        width: 100% !important;
        max-width: 100% !important;
        /* ← 100% pas 100vw ! */
        overflow-x: hidden !important;
    }

    .container {
        padding: 0 16px;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto;
        overflow-x: hidden;
    }

    /* ====== FOOTER — CORRIGÉ ====== */

    .footer {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* ====== HERO — AJUSTÉ ====== */
    .hero {
        width: 100% !important;
        max-width: 100% !important;
        padding: 80px 16px 60px;
        overflow: hidden;
    }

    .hero-content {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 8px;
    }

    /* ====== SECTIONS ====== */
    .section {
        width: 100% !important;
        overflow-x: hidden;
    }

    /* ====== SLIDER — CORRIGÉ ====== */
    .slider-container {
        width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
    margin: 0 auto;
    }

    .slider-track {
        gap: 20px;
    padding: 0 4px;
    width: 100%;
    }

       .slide {
    flex: 0 0 calc(100% - 20px);  /* 100% moins le gap */
    min-width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    padding: 0;
    box-sizing: border-box;
    min-height: 250px;
}
    

    .slide img {
       width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
    }

    /* ====== CARTES GALERIE — CORRIGÉ ====== */
    .cards-gallery {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
           min-height: 280px;
    }

    .card-item {
       width: 280px;
        height: 175px;
    }

    /* ====== MARQUEE PUB MOBILE ====== */
    .ad-marquee-track {
        gap: 8px;
        animation-duration: 12s;
    }

    .ad-banner {
        width: 160px;               /* ← Supprime !important */
    height: 75px;
    }

    /* ====== MENU HAMBURGER ====== */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        transform: translateY(-150%);
        opacity: 0;
        transition: all var(--transition-normal);
        z-index: 1002;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .hamburger {
        display: flex;
    }

    /* ====== CONTENU MOBILE ====== */
    .hero-title {
        font-size: 1.6rem;
        word-break: break-word;
    }

    .hero-brand {
        flex-direction: column;
    }

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

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .flip-card {
        height: 260px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px 16px;
        max-width: 100%;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        padding: 20px 16px;
    }
}





















/* Très petits écrans */
@media (max-width: 480px) {
    .ad-banner {
          width: 140px;
    height: 65px;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .brand-logo-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .brand-info h2 {
        font-size: 1.3rem;
    }

    .counter-num {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .stat-card {
        padding: 24px 16px;
    }

    .stat-num {
        font-size: 2rem;
    }

    .testimonial-card {
        padding: 24px;
    }
}

/* Grands écrans */
@media (min-width: 1401px) {
    .ad-desktop {
        width: 220px;
    }

    .main-content {
        margin-left: 240px !important;
        margin-right: 240px !important;
    }





}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ====== BOUTON CONTACTER DANS LES PUBS ====== */
.ad-contact-btn {
     display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-fast);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    flex-shrink: 0;
}

.ad-contact-btn i {
   font-size: 0.9rem;
}

.ad-slot:hover .ad-contact-btn {
    background: linear-gradient(135deg, var(--accent-dark), var(--primary));
}

/* Lien englobe tout */
.ad-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Ajustement wrapper - fusionné avec la définition principale */
/* Les styles ad-image-wrapper sont définis plus haut dans le fichier */
/* ====== BOUTON INSTAGRAM ====== */
.ad-contact-btn.instagram-btn {
    background: linear-gradient(135deg, #0c69eb 0%, #4366f4 25%, #3831ca 50%, #3843e1 75%, #5e6ceb 100%);
}

.ad-slot:hover .ad-contact-btn.instagram-btn {
    background: linear-gradient(135deg, #5898ff 0%, #236ccc 25%, #1d4594 50%, #3c75e6 75%, #185ca1 100%);
}