
/* ==========================================================================
   SA2V - STYLE PRINCIPAL
   High Contrast • Professional UX • Trust & Reliability
   Version: 3.0
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


/* ==========================================================================
   1. VARIABLES & CONFIGURATION
   ========================================================================== */

:root {

    /* ----------------------------------------------------------------------
       IDENTITÉ PRINCIPALE
       ---------------------------------------------------------------------- */

    --primary: #1D4ED8;
    --primary-dark: #1E3A8A;
    --primary-light: #EFF6FF;

    --secondary: #334155;
    --secondary-dark: #1E293B;

    --accent: #0F172A;


    /* ----------------------------------------------------------------------
       ÉTATS FONCTIONNELS
       ---------------------------------------------------------------------- */

    --success: #15803D;
    --success-bg: #DCFCE7;
    --success-border: #86EFAC;

    --warning: #B45309;
    --warning-bg: #FEF3C7;
    --warning-border: #FCD34D;

    --danger: #B91C1C;
    --danger-bg: #FEE2E2;
    --danger-border: #FCA5A5;

    --info: #0369A1;
    --info-bg: #E0F2FE;
    --info-border: #7DD3FC;


    /* ----------------------------------------------------------------------
       ARRIÈRE-PLANS
       ---------------------------------------------------------------------- */

    --bg-body: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-soft: #F1F5F9;
    --bg-muted: #E2E8F0;

    --bg-dark: #0F172A;
    --bg-dark-soft: #1E293B;


    /* ----------------------------------------------------------------------
       TYPOGRAPHIE
       ---------------------------------------------------------------------- */

    --text-main: #0F172A;
    --text-secondary: #334155;
    --text-muted: #475569;
    --text-light: #64748B;
    --text-disabled: #94A3B8;
    --text-white: #FFFFFF;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;


    /* ----------------------------------------------------------------------
       BORDURES
       ---------------------------------------------------------------------- */

    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --border-dark: #94A3B8;

    --border-focus: #1D4ED8;


    /* ----------------------------------------------------------------------
       OMBRES
       ---------------------------------------------------------------------- */

    --shadow-xs:
        0 1px 2px rgba(15, 23, 42, 0.04);

    --shadow-sm:
        0 2px 4px rgba(15, 23, 42, 0.06);

    --shadow-card:
        0 1px 3px rgba(15, 23, 42, 0.08),
        0 1px 2px rgba(15, 23, 42, 0.04);

    --shadow-md:
        0 4px 10px rgba(15, 23, 42, 0.08);

    --shadow-hover:
        0 10px 20px rgba(15, 23, 42, 0.08),
        0 4px 6px rgba(15, 23, 42, 0.04);

    --shadow-primary:
        0 6px 16px rgba(29, 78, 216, 0.22);


    /* ----------------------------------------------------------------------
       RAYONS
       ---------------------------------------------------------------------- */

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-full: 999px;


    /* ----------------------------------------------------------------------
       DIMENSIONS
       ---------------------------------------------------------------------- */

    --header-height: 76px;
    --container-width: 1100px;
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    top: 0 !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, background-color 0.2s ease,
                border-color 0.2s ease, transform 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}


/* ==========================================================================
   3. CONTAINER
   ========================================================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}


/* ==========================================================================
   4. TYPOGRAPHIE
   ========================================================================== */

h1,
h2,
h3,
h4 {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 2.75rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}


/* ==========================================================================
   5. BOUTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 28px;

    border-radius: var(--radius-sm);
    border: none;

    font-weight: 600;
    font-size: 1rem;

    cursor: pointer;
    white-space: nowrap;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


/* Bouton principal */

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );

    color: var(--text-white);

    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 20px rgba(29, 78, 216, 0.25);
}


/* Bouton secondaire */

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);

    border: 2px solid var(--border-light);

    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}


/* Bouton blanc / transparent */

.btn-outline-white {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-white);

    border: 1px solid rgba(255, 255, 255, 0.35);

    backdrop-filter: blur(10px);
}

.btn-outline-white:hover {
    background: var(--text-white);
    color: var(--primary);
}


/* ==========================================================================
   6. FORMULAIRES
   ========================================================================== */

.form-page {
    background: var(--bg-body);
    min-height: 100vh;
}

.form-container {
    padding: 60px 0;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}


/* Section formulaire */

.form-section {
    background: var(--bg-card);

    padding: 40px;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-card);

    border: 1px solid var(--border-light);

    border-left: 5px solid var(--primary);

    max-width: 800px;

    margin: 0 auto 30px;
}

.form-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 1.5rem;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--border-light);

    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-weight: 700;
    color: var(--text-main);

    font-size: 0.95rem;
}


/* Inputs */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 14px 16px;

    border: 2px solid var(--border-medium);

    border-radius: var(--radius-sm);

    font-family: inherit;
    font-size: 1rem;

    color: var(--text-main);

    background: var(--bg-card);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--border-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;

    border-color: var(--border-focus);

    box-shadow:
        0 0 0 4px rgba(29, 78, 216, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-disabled);
}


/* Code carte */

#code_carte {
    font-family: monospace;

    letter-spacing: 2px;

    font-weight: 700;

    font-size: 1.1rem;

    text-transform: uppercase;
}


/* Checkbox / Information */

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    background: var(--primary-light);

    border: 1px solid #BFDBFE;

    padding: 15px;

    border-radius: var(--radius-sm);
}

.form-check input {
    width: auto;
    margin-top: 4px;
}

.form-check label {
    margin: 0;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-actions {
    text-align: center;
    margin-top: 40px;
}

.form-actions .btn {
    width: 100%;
    max-width: 400px;
}


/* Checkbox personnalisé */

.checkbox-wrapper {
    margin-top: 8px;

    display: flex;
    align-items: center;

    gap: 8px;

    color: var(--text-main);
}

.checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;

    cursor: pointer;

    accent-color: var(--primary);
}


/* ==========================================================================
   7. HEADER & NAVIGATION
   ========================================================================== */

.main-header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: var(--header-height);

    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(12px);

    box-shadow:
        0 4px 20px rgba(15, 23, 42, 0.06);

    border-bottom: 1px solid rgba(226, 232, 240, 0.8);

    z-index: 1000;

    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    height: var(--header-height);

    padding-top: 10px;
}


/* Logo */

.logo a {
    display: flex;
    align-items: center;

    gap: 10px;

    color: var(--primary);

    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary-dark);
}


/* Navigation */

.main-nav {
    flex: 1;

    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;

    gap: 30px;

    list-style: none;

    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);

    font-weight: 500;

    padding: 8px 12px;

    border-radius: var(--radius-sm);

    position: relative;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--primary);

    background: var(--primary-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}


/* Burger */

.mobile-menu-btn {
    display: none;

    background: none;
    border: none;

    font-size: 1.5rem;

    color: var(--accent);

    cursor: pointer;

    z-index: 1001;

    padding: 5px;
}

.nav-overlay {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(15, 23, 42, 0.65);

    backdrop-filter: blur(4px);

    opacity: 0;
    visibility: hidden;

    transition: all 0.3s;

    z-index: 998;
}


/* ==========================================================================
   8. TRADUCTION
   ========================================================================== */

.custom-translate-wrapper {
    position: relative;
}

.btn-icon {
    background: transparent;

    border: none;

    cursor: pointer;

    font-size: 1.2rem;

    color: var(--text-secondary);

    display: flex;
    align-items: center;

    gap: 5px;

    padding: 8px;

    border-radius: var(--radius-sm);

    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.current-lang-code {
    font-size: 0.8rem;

    font-weight: 700;

    text-transform: uppercase;
}


/* Dropdown */

.lang-dropdown {
    position: absolute;

    top: 120%;
    right: 0;

    width: 180px;

    background: var(--bg-card);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-hover);

    padding: 10px 0;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);

    transition: all 0.3s ease;

    z-index: 1000;

    border: 1px solid var(--border-light);
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.lang-dropdown ul {
    list-style: none;

    padding: 0;
    margin: 0;
}

.lang-dropdown li {
    padding: 10px 20px;

    display: flex;
    align-items: center;

    gap: 10px;

    cursor: pointer;

    font-size: 0.95rem;

    color: var(--text-secondary);

    transition: background 0.2s;
}

.lang-dropdown li:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.lang-dropdown .flag {
    font-size: 1.2rem;
}


/* Google Translate */

.goog-te-banner-frame {
    display: none !important;
}

.skiptranslate {
    display: none !important;
}

#google_translate_element {
    display: none !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}


/* ==========================================================================
   9. HERO
   ========================================================================== */

/* ==========================================================================
   HERO - Fond visuel doux et professionnel
   ========================================================================== */

.hero {
    position: relative;
    padding: 100px 0 96px;
    overflow: hidden;

    /* Image de fond */
    background-image:
        linear-gradient(
            100deg,
            rgba(255, 255, 255, 0.96) 0%,
            rgba(255, 255, 255, 0.88) 45%,
            rgba(255, 255, 255, 0.55) 75%,
            rgba(255, 255, 255, 0.25) 100%
        ),
        url('../images/hero-bg.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Léger voile supplémentaire pour garder une excellente lisibilité */
.hero::before {
    content: '';

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 20% 40%,
            rgba(255, 255, 255, 0.65) 0%,
            transparent 45%
        );

    pointer-events: none;
}

/* Contenu au-dessus de l'image */
.hero-content {
    position: relative;
    z-index: 2;

    text-align: center;

    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 16px;

    background: var(--bg-card);

    color: var(--primary);

    border: 1px solid #BFDBFE;

    border-radius: var(--radius-full);

    font-size: 0.875rem;

    font-weight: 700;

    margin-bottom: 24px;

    box-shadow: var(--shadow-xs);
}

.hero-title .highlight {
    color: var(--primary);

    position: relative;

    display: inline-block;
}

.hero-actions {
    display: flex;

    justify-content: center;

    gap: 16px;

    margin-top: 32px;
}

.hero-features {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 32px;

    margin-top: 60px;

    padding-top: 32px;

    border-top: 1px solid var(--border-light);
}

.feature {
    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--text-secondary);

    font-weight: 600;
}

.feature i {
    color: var(--primary);
}


/* ==========================================================================
   10. SERVICES
   ========================================================================== */

.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(300px, 1fr));

    gap: 30px;
}

.service-card {
    background: var(--bg-card);

    padding: 40px 32px;

    border-radius: var(--radius-lg);

    border: 1px solid var(--border-light);

    border-top: 4px solid var(--primary);

    box-shadow: var(--shadow-card);

    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 60px;
    height: 60px;

    border-radius: var(--radius-md);

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 1.75rem;

    margin-bottom: 24px;

    background: var(--primary-light);

    color: var(--primary);
}


/* Deuxième service */

.service-card:nth-child(2) {
    border-top-color: var(--secondary);
}

.service-card:nth-child(2) .service-icon {
    background: var(--bg-soft);
    color: var(--secondary);
}

.service-link {
    margin-top: 20px;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    font-weight: 700;

    color: var(--primary);
}

.service-link:hover {
    color: var(--primary-dark);
}


/* ==========================================================================
   11. BRANDS
   ========================================================================== */

.brands {
    padding: 40px 0;

    background: var(--bg-card);

    border-top: 1px solid var(--border-light);
}

.brands-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(130px, 1fr));

    gap: 15px;

    opacity: 0.85;
}

.brand-item {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 15px;

    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);

    background: var(--bg-card);

    transition: all 0.2s ease;
}

.brand-item:hover {
    border-color: var(--primary);

    background: var(--primary-light);

    opacity: 1;

    transform: translateY(-2px);
}

/* Conteneur de l'icône */
.brand-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;   /* pas de fond sur le conteneur */
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    opacity: 1;                 /* pas de transition, affichage immédiat */
}

/* Nom de la marque */
.brand-name {
    font-size: 0.85rem;

    font-weight: 600;

    color: var(--text-secondary);

    text-align: center;

    line-height: 1.2;
}

.brand-item:hover .brand-name {
    color: var(--primary);
}



/* ==========================================================================
   12. CONFIRMATION
   ========================================================================== */

.confirmation-card {
    background: var(--bg-card);

    padding: 60px 40px;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-card);

    text-align: center;

    max-width: 700px;

    margin: 40px auto;

    border-top: 6px solid var(--success);
}

.confirmation-icon {
    width: 90px;
    height: 90px;

    background: var(--success-bg);

    color: var(--success);

    border: 1px solid var(--success-border);

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 3rem;

    margin: 0 auto 30px;

    animation:
        popIn 0.5s
        cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {

    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-actions {
    display: flex;

    justify-content: center;

    gap: 20px;

    margin-top: 40px;
}


/* ==========================================================================
   13. CONTACT
   ========================================================================== */

.contact-info {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 30px;

    margin-bottom: 40px;
}

.contact-item {
    background: var(--bg-card);

    padding: 30px;

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-card);

    text-align: center;

    border: 1px solid var(--border-light);

    border-bottom: 4px solid var(--primary);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-hover);
}

.contact-item i {
    font-size: 2.5rem;

    color: var(--primary);

    margin-bottom: 15px;
}


/* ==========================================================================
   14. FOOTER
   ========================================================================== */

.main-footer {
    background: var(--bg-card);

    padding: 60px 0 30px;

    border-top: 1px solid var(--border-light);

    margin-top: auto;
}

.footer-content {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 60px;

    margin-bottom: 40px;
}

.footer-logo {
    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 1.25rem;

    font-weight: 800;

    color: var(--accent);

    margin-bottom: 16px;
}

.footer-social {
    display: flex;

    gap: 12px;

    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--bg-soft);

    border-radius: var(--radius-sm);

    color: var(--text-secondary);

    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--primary);

    color: var(--text-white);

    transform: translateY(-2px);
}

.footer-section h3 {
    font-size: 1rem;

    text-transform: uppercase;

    letter-spacing: 0.05em;

    margin-bottom: 20px;

    color: var(--accent);
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-muted);

    font-weight: 500;
}

.footer-section ul li a:hover {
    color: var(--primary);

    padding-left: 5px;
}

.footer-bottom {
    text-align: center;

    padding-top: 30px;

    border-top: 1px solid var(--border-light);

    color: var(--text-disabled);

    font-size: 0.875rem;
}


/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */

@media (max-width: 992px) {

    .hero-features {
        display: none;
    }

}


@media (max-width: 768px) {

    :root {
        --header-height: 70px;
    }

    html,
    body {
        overflow-x: hidden;
        position: relative;
    }


    /* Typographie */

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }


    /* Header */

    .mobile-menu-btn {
        display: block;
    }


    /* Menu mobile */

    .main-nav {
        position: fixed;

        top: 0;
        right: -100%;

        width: 85%;
        height: 100vh;

        background: var(--bg-card);

        padding: 80px 30px 30px;

        box-shadow:
            -10px 0 30px rgba(15, 23, 42, 0.12);

        z-index: 999;

        transition:
            right 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            visibility 0.4s;

        visibility: hidden;

        display: block;
    }

    .main-nav.active {
        right: 0;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;

        align-items: flex-start;

        gap: 24px;

        width: 100%;
    }

    .nav-link {
        font-size: 1.1rem;

        display: block;

        width: 100%;

        padding: 12px 0;

        border-bottom:
            1px solid var(--border-light);
    }

    .nav-link::after {
        display: none;
    }


    /* Layout */

    .form-row,
    .footer-content,
    .hero-actions,
    .confirmation-actions {
        grid-template-columns: 1fr;

        flex-direction: column;

        gap: 20px;
    }

    .btn {
        width: 100%;
    }

    .form-section,
    .contact-item,
    .confirmation-card {
        padding: 24px;
    }

    .footer-content {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

}

