/* css/style.css */
/* DEPOTVENTE.biz — Charte graphique 2026 */

/* ========================================
   IMPORTS & VARIABLES
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Couleurs principales */
    --bleu-nuit: #1B2A4A;
    --bleu-profond: #0F1C33;
    --cuivre: #C8782A;
    --cuivre-clair: #E09840;
    --cuivre-doux: #F4D9A8;

    /* Neutres */
    --blanc-chaud: #FAF8F5;
    --gris-sable: #F0EDE8;
    --gris-moyen: #B8B2A8;
    --gris-texte: #6B6560;
    --charbon: #2D2926;

    /* Accents */
    --vert-confiance: #2E7D5B;
    --vert-clair: #3A9D72;
    --rouge-alerte: #C0392B;

    /* Ombres */
    --ombre-legere: 0 2px 8px rgba(27, 42, 74, 0.06);
    --ombre-moyenne: 0 4px 20px rgba(27, 42, 74, 0.10);
    --ombre-forte: 0 8px 40px rgba(27, 42, 74, 0.15);

    /* Typographie */
    --font-titre: 'DM Serif Display', Georgia, serif;
    --font-corps: 'Source Sans 3', 'Segoe UI', sans-serif;

    /* Espacements */
    --container: 1100px;
    --rayon: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET & BASE
   ======================================== */

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

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

body {
    font-family: var(--font-corps);
    color: var(--charbon);
    background-color: var(--blanc-chaud);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    color: var(--cuivre);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover,
a:focus {
    color: var(--bleu-nuit);
}

/* ========================================
   TYPOGRAPHIE
   ======================================== */

h1, h2, h3, h4 {
    font-family: var(--font-titre);
    color: var(--bleu-nuit);
    line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.8rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.6rem; }

p {
    margin-bottom: 1.2rem;
    max-width: 75ch;
}

.container {
    width: 92%;
    max-width: var(--container);
    margin: 0 auto;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
    background: var(--bleu-nuit);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    gap: 1rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-family: var(--font-titre);
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}
.logo:hover { color: var(--cuivre-clair); }
.logo-accent { color: var(--cuivre-clair); }
.logo-dot { color: var(--cuivre); }

/* Navigation */
.nav-main ul {
    list-style: none;
    display: flex;
    gap: 0.3rem;
}

.nav-main a {
    display: block;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--rayon);
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-main a:hover,
.nav-main a:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.nav-main a.active {
    color: var(--cuivre-clair);
    background: rgba(200, 120, 42, 0.15);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
}

/* Bandeau contact rapide */
.header-cta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
}
.header-tel {
    color: var(--cuivre-clair);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.header-tel:hover { color: #fff; }
.header-tel svg { width: 16px; height: 16px; fill: currentColor; }

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background:
        linear-gradient(135deg, var(--bleu-nuit) 0%, var(--bleu-profond) 60%, #162240 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200, 120, 42, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200, 120, 42, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: 1.2rem;
}
.hero h1 .accent {
    color: var(--cuivre-clair);
}
.hero .sous-titre {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.6;
}

/* ========================================
   BOUTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-corps);
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--rayon);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    line-height: 1.3;
}

.btn-principal {
    background: var(--cuivre);
    color: #fff;
    border-color: var(--cuivre);
}
.btn-principal:hover {
    background: var(--cuivre-clair);
    border-color: var(--cuivre-clair);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 120, 42, 0.35);
}

.btn-secondaire {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.btn-secondaire:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.btn-vert {
    background: var(--vert-confiance);
    color: #fff;
    border-color: var(--vert-confiance);
}
.btn-vert:hover {
    background: var(--vert-clair);
    border-color: var(--vert-clair);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 91, 0.3);
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 4.5rem 0;
}
.section-alt {
    background: var(--gris-sable);
}
.section-sombre {
    background: var(--bleu-nuit);
    color: #fff;
}
.section-sombre h2,
.section-sombre h3 {
    color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header p {
    color: var(--gris-texte);
    font-size: 1.1rem;
    max-width: 60ch;
    margin: 0.5rem auto 0;
}

/* ========================================
   GRILLE DE SERVICES
   ======================================== */

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

.service-card {
    background: #fff;
    border-radius: var(--rayon);
    padding: 2.2rem 1.8rem;
    box-shadow: var(--ombre-legere);
    transition: all var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.service-card:hover {
    box-shadow: var(--ombre-moyenne);
    transform: translateY(-4px);
}

.service-card .icone {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--cuivre), var(--cuivre-clair));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: #fff;
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}
.service-card p {
    color: var(--gris-texte);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ========================================
   AVANTAGES / FEATURES
   ======================================== */

.features-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}
.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--rayon);
}
.features-list .check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--vert-confiance);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    margin-top: 2px;
}

/* ========================================
   DEUX COLONNES
   ======================================== */

.deux-colonnes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.placeholder-img {
    background: linear-gradient(135deg, var(--gris-sable), #e8e4df);
    border-radius: var(--rayon);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gris-moyen);
    font-size: 0.9rem;
    border: 2px dashed var(--gris-moyen);
    text-align: center;
    padding: 2rem;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-bandeau {
    background: linear-gradient(135deg, var(--cuivre) 0%, var(--cuivre-clair) 100%);
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}
.cta-bandeau h2 {
    color: #fff;
    margin-bottom: 0.6rem;
}
.cta-bandeau p {
    margin: 0 auto 2rem;
    opacity: 0.92;
    font-size: 1.1rem;
}
.cta-bandeau .btn {
    background: #fff;
    color: var(--cuivre);
    border-color: #fff;
    font-weight: 700;
}
.cta-bandeau .btn:hover {
    background: var(--bleu-nuit);
    color: #fff;
    border-color: var(--bleu-nuit);
}

/* ========================================
   FORMULAIRE
   ======================================== */

.form-contact {
    max-width: 640px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.4rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: var(--charbon);
}
.form-group .obligatoire {
    color: var(--rouge-alerte);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-corps);
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: var(--rayon);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    color: var(--charbon);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cuivre);
    box-shadow: 0 0 0 3px rgba(200, 120, 42, 0.15);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-message {
    padding: 1rem 1.4rem;
    border-radius: var(--rayon);
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.form-message.succes {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.form-message.erreur {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ========================================
   CONTENU EDITORIAL
   ======================================== */

.contenu-editorial {
    max-width: 800px;
    margin: 0 auto;
}
.contenu-editorial h2 {
    margin-top: 2.5rem;
}
.contenu-editorial ul {
    margin: 0.8rem 0 1.4rem 1.5rem;
    line-height: 1.8;
}
.contenu-editorial li {
    margin-bottom: 0.3rem;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: var(--bleu-profond);
    color: rgba(255, 255, 255, 0.7);
    padding: 3.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand .logo {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 35ch;
}

.site-footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: var(--font-corps);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--cuivre-clair); }

.footer-contact-info p {
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-contact-info a {
    color: var(--cuivre-clair);
}
.footer-contact-info a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}
.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a:hover {
    color: var(--cuivre-clair);
}

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

@media (max-width: 900px) {
    .deux-colonnes {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .section { padding: 3rem 0; }
}

@media (max-width: 768px) {
    /* Navigation mobile */
    .nav-toggle { display: flex; }

    .nav-main {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bleu-profond);
        padding: 5rem 1.5rem 2rem;
        transition: right var(--transition);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        overflow-y: auto;
    }
    .nav-main.open { right: 0; }

    .nav-main ul {
        flex-direction: column;
        gap: 0.2rem;
    }
    .nav-main a {
        padding: 0.9rem 1rem;
        font-size: 1.05rem;
    }

    .header-cta { display: none; }

    .hero { padding: 3.5rem 0 3rem; }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .btn { padding: 0.75rem 1.5rem; font-size: 0.92rem; }
    .btn-group { flex-direction: column; align-items: center; }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .deux-colonnes > * {
        opacity: 0;
        transform: translateY(20px);
        animation: apparition 0.6s ease forwards;
    }
    .service-card:nth-child(1) { animation-delay: 0.1s; }
    .service-card:nth-child(2) { animation-delay: 0.2s; }
    .service-card:nth-child(3) { animation-delay: 0.3s; }
    .service-card:nth-child(4) { animation-delay: 0.4s; }
    .service-card:nth-child(5) { animation-delay: 0.5s; }
    .service-card:nth-child(6) { animation-delay: 0.6s; }

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

/* ========================================
   OVERLAY MOBILE
   ======================================== */

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.nav-overlay.visible { display: block; }

/* ========================================
   UTILITAIRES
   ======================================== */

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
