/* ========================================= */
/* ARTISAN DU WEB - CGV */
/* Conditions Générales de Vente */
/* ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;600;700&display=swap');

/* ========================================= */
/* 1. VARIABLES CSS */
/* ========================================= */

:root {
    --color-primary: #2C3E50;
    --color-accent: #D4AF37;
    --color-accent-light: #E8C468;
    --color-background: #FAF9F6;
    --color-card: #FFFFFF;
    --color-text: #2C3E50;
    --color-text-light: #6C7A89;
    --color-border: #E5E5E5;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Helvetica Neue', sans-serif;
}

/* ========================================= */
/* 2. RESET ET BASE */
/* ========================================= */

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

body {
    font-family: var(--font-body);
    background: var(--color-background);
    color: var(--color-text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================= */
/* 3. BOUTON RETOUR */
/* ========================================= */

.back-button-fixed {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
}

.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    font-size: 2rem;
    color: var(--color-primary);
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.12);
}

.back-link:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.16);
}

/* ========================================= */
/* 4. CONTENEUR PRINCIPAL */
/* ========================================= */

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 5%;
}

/* ========================================= */
/* 5. HEADER CGV */
/* ========================================= */

.cgv-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--color-accent);
}

.cgv-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.cgv-subtitle {
    color: var(--color-text-light);
    font-size: 1.1rem;
    font-weight: 400;
}

/* ========================================= */
/* 6. INTRODUCTION */
/* ========================================= */

.cgv-intro {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-accent);
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

.cgv-intro p {
    margin: 0;
    line-height: 1.8;
}

.cgv-intro strong {
    color: var(--color-accent);
    font-weight: 600;
}

/* ========================================= */
/* 7. CONTENU CGV */
/* ========================================= */

.cgv-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

/* ========================================= */
/* 8. SECTIONS */
/* ========================================= */

.cgv-section {
    margin-bottom: 3rem;
}

.cgv-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ========================================= */
/* 9. TEXTE ET PARAGRAPHES */
/* ========================================= */

.cgv-section p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.8;
}

.cgv-section p:last-child {
    margin-bottom: 0;
}

.cgv-section strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* ========================================= */
/* 10. LISTES */
/* ========================================= */

.cgv-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
    list-style-type: disc;
}

.cgv-section li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
    line-height: 1.7;
}

.cgv-section li:last-child {
    margin-bottom: 0;
}

.cgv-section li::marker {
    color: var(--color-accent);
}

/* ========================================= */
/* 11. ENCADRÉ MISE EN ÉVIDENCE */
/* ========================================= */

.highlight-box {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--color-accent);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.highlight-box p {
    margin-bottom: 0.8rem;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.highlight-box strong {
    color: var(--color-accent);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.8rem;
}

.highlight-box ul {
    margin-top: 0.8rem;
}

/* ========================================= */
/* 12. ENCADRÉ IMPORTANT */
/* ========================================= */

.important-notice {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(232, 196, 104, 0.15) 100%);
    border: 2px solid var(--color-accent);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

.important-notice i {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: block;
}

.important-notice h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.important-notice p {
    margin-bottom: 0.5rem;
    text-align: center;
}

.important-notice p:last-child {
    margin-bottom: 0;
}

.important-notice strong {
    color: var(--color-accent);
}

/* ========================================= */
/* 13. FOOTER CGV */
/* ========================================= */

.cgv-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
    color: var(--color-text-light);
}

.cgv-footer p {
    margin-bottom: 0.5rem;
}

.cgv-footer strong {
    color: var(--color-primary);
}

.update-date {
    font-style: italic;
    color: var(--color-text-light);
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* ========================================= */
/* 14. RESPONSIVE */
/* ========================================= */

@media (max-width: 768px) {
    .container {
        padding: 2rem 5%;
    }

    .cgv-content {
        padding: 1.5rem;
    }

    .back-button-fixed {
        top: 20px;
        left: 20px;
    }

    .back-link {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .cgv-section ul {
        margin-left: 1rem;
    }

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

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

    .cgv-intro {
        padding: 1.5rem;
    }

    .highlight-box {
        padding: 1rem;
    }

    .important-notice {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem 5%;
    }

    .cgv-content {
        padding: 1rem;
    }

    .back-button-fixed {
        top: 15px;
        left: 15px;
    }

    .back-link {
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }

    .section-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .cgv-section p {
        text-align: left;
    }
}

/* ========================================= */
/* 15. ANIMATIONS */
/* ========================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cgv-header,
.cgv-intro,
.cgv-content {
    animation: fadeInUp 0.6s ease-out backwards;
}

.cgv-intro {
    animation-delay: 0.1s;
}

.cgv-content {
    animation-delay: 0.2s;
}

/* ========================================= */
/* 16. ACCESSIBILITÉ */
/* ========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

::selection {
    background: var(--color-accent-light);
    color: white;
}

/* ========================================= */
/* 17. IMPRESSION */
/* ========================================= */

@media print {
    .back-button-fixed {
        display: none;
    }

    .cgv-content,
    .cgv-intro {
        box-shadow: none;
        border: 1px solid var(--color-border);
    }

    .cgv-section {
        page-break-inside: avoid;
    }

    body {
        background: white;
    }
}
