/**
 * Atelier 65 — CGV CSS
 * Design premium cohérent avec la charte graphique
 * Palette : Or #C8B587 | Gris foncé #303030 | Blanc #FFFFFF | Texte #7A7A7A
 */

/* ================================================
   WRAPPER
   ================================================ */
.a65-cgv-wrapper {
    margin: 0;
    padding: 0;
    background: #FFFFFF;
    font-family: 'ASENINEV', sans-serif;
    letter-spacing: 0.8px;
    color: #303030;
    line-height: 1.8;
}

.a65-cgv-wrapper *,
.a65-cgv-wrapper *::before,
.a65-cgv-wrapper *::after {
    box-sizing: border-box;
}

/* ================================================
   HERO
   ================================================ */
.a65-cgv-hero {
    background: #303030;
    padding: 70px 20px 55px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.a65-cgv-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(200, 181, 135, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.a65-cgv-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.a65-cgv-hero-subtitle {
    display: inline-block;
    font-family: 'arsenica-variable', serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #C8B587;
    margin-bottom: 14px;
}

.a65-cgv-hero-title {
    font-family: 'arsenica-variable', serif !important;
    font-weight: 600;
    font-size: 2.6rem;
    color: #FFFFFF;
    margin: 0 0 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.a65-cgv-hero-date {
    font-family: 'ASENINEV', sans-serif;
    font-size: 12px;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* ================================================
   TABLE DES MATIÈRES
   ================================================ */
.a65-cgv-toc {
    background: #faf9f7;
    border-bottom: 1px solid #edebe7;
}

.a65-cgv-toc-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 45px 30px;
}

.a65-cgv-toc-title {
    font-family: 'arsenica-variable', serif !important;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #C8B587;
    margin: 0 0 24px;
}

.a65-cgv-toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 40px;
}

.a65-cgv-toc-list li {
    break-inside: avoid;
    margin-bottom: 10px;
    padding-left: 0;
    counter-increment: toc-counter;
}

.a65-cgv-toc-list li a {
    text-decoration: none;
    color: #303030;
    font-size: 13px;
    letter-spacing: 0.8px;
    transition: color 0.3s ease;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.a65-cgv-toc-list li a::before {
    content: counter(toc-counter, decimal-leading-zero);
    font-family: 'arsenica-variable', serif;
    font-weight: 600;
    font-size: 11px;
    color: #C8B587;
    min-width: 22px;
}

.a65-cgv-toc-list li a:hover {
    color: #C8B587;
}

/* ================================================
   CONTENU CGV
   ================================================ */
.a65-cgv-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 30px 80px;
}

/* Article */
.a65-cgv-article {
    padding: 48px 0;
    border-bottom: 1px solid #edebe7;
    position: relative;
}

.a65-cgv-article:last-of-type {
    border-bottom: none;
}

.a65-cgv-article-number {
    font-family: 'arsenica-variable', serif;
    font-weight: 600;
    font-size: 40px;
    color: rgba(200, 181, 135, 0.15);
    position: absolute;
    top: 40px;
    right: 0;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

.a65-cgv-article h2 {
    font-family: 'arsenica-variable', serif !important;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 1.5px;
    color: #303030;
    margin: 0 0 20px;
    text-transform: uppercase;
    padding-bottom: 12px;
    border-bottom: 2px solid #C8B587;
    display: inline-block;
}

.a65-cgv-article p {
    font-size: 14px;
    line-height: 1.85;
    color: #4a4a4a;
    margin: 0 0 14px;
    letter-spacing: 0.5px;
}

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

.a65-cgv-article a {
    color: #C8B587;
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 181, 135, 0.3);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.a65-cgv-article a:hover {
    color: #303030;
    border-bottom-color: #303030;
}

.a65-cgv-article strong {
    color: #303030;
    font-weight: 600;
}

/* Listes */
.a65-cgv-article ul,
.a65-cgv-article ol {
    margin: 14px 0;
    padding-left: 0;
    list-style: none;
}

.a65-cgv-article ul li,
.a65-cgv-article ol li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.8;
    color: #4a4a4a;
}

.a65-cgv-article ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C8B587;
}

.a65-cgv-article ol {
    counter-reset: ol-counter;
}

.a65-cgv-article ol li {
    counter-increment: ol-counter;
}

.a65-cgv-article ol li::before {
    content: counter(ol-counter) '.';
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'arsenica-variable', serif;
    font-weight: 600;
    font-size: 13px;
    color: #C8B587;
}

/* Info card (mentions légales) */
.a65-cgv-info-card {
    background: #faf9f7;
    border: 1px solid #edebe7;
    border-radius: 10px;
    padding: 30px;
    margin: 20px 0 10px;
}

.a65-cgv-info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #edebe7;
    gap: 20px;
}

.a65-cgv-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.a65-cgv-info-row:first-child {
    padding-top: 0;
}

.a65-cgv-info-label {
    font-family: 'arsenica-variable', serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7A7A7A;
    min-width: 200px;
    flex-shrink: 0;
}

.a65-cgv-info-value {
    font-size: 13px;
    color: #303030;
    letter-spacing: 0.5px;
}

.a65-cgv-info-value a {
    color: #C8B587;
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 181, 135, 0.3);
    transition: color 0.3s, border-color 0.3s;
}

.a65-cgv-info-value a:hover {
    color: #303030;
    border-bottom-color: #303030;
}

/* Highlight box */
.a65-cgv-highlight {
    background: #faf9f7;
    border-left: 3px solid #C8B587;
    padding: 18px 24px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    line-height: 1.8;
    color: #4a4a4a;
}

.a65-cgv-highlight strong {
    color: #303030;
    display: block;
    margin-bottom: 6px;
    font-family: 'arsenica-variable', serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Warning box */
.a65-cgv-warning {
    background: #fdf6f5;
    border-left: 3px solid #CD4E4C;
    padding: 18px 24px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    line-height: 1.8;
    color: #4a4a4a;
}

.a65-cgv-warning strong {
    color: #CD4E4C;
    display: block;
    margin-bottom: 6px;
    font-family: 'arsenica-variable', serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Footer note */
.a65-cgv-footer-note {
    padding: 48px 0 0;
    text-align: center;
}

.a65-cgv-separator {
    width: 60px;
    height: 2px;
    background: #C8B587;
    margin: 0 auto 30px;
}

.a65-cgv-footer-note p {
    font-size: 13px;
    color: #7A7A7A;
    margin: 0 0 8px;
    letter-spacing: 0.8px;
}

.a65-cgv-footer-contact {
    margin-top: 12px !important;
}

.a65-cgv-footer-contact a {
    color: #C8B587;
    text-decoration: none;
    font-family: 'arsenica-variable', serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(200, 181, 135, 0.3);
    transition: color 0.3s, border-color 0.3s;
}

.a65-cgv-footer-contact a:hover {
    color: #303030;
    border-bottom-color: #303030;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
    .a65-cgv-hero {
        padding: 50px 20px 40px;
    }

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

    .a65-cgv-toc-list {
        columns: 1;
    }

    .a65-cgv-toc-inner {
        padding: 35px 20px;
    }

    .a65-cgv-content {
        padding: 10px 20px 60px;
    }

    .a65-cgv-article {
        padding: 36px 0;
    }

    .a65-cgv-article-number {
        font-size: 30px;
        top: 30px;
    }

    .a65-cgv-article h2 {
        font-size: 1.1rem;
    }

    .a65-cgv-info-row {
        flex-direction: column;
        gap: 4px;
    }

    .a65-cgv-info-label {
        min-width: unset;
    }

    .a65-cgv-info-card {
        padding: 20px;
    }

    .a65-cgv-highlight,
    .a65-cgv-warning {
        padding: 14px 18px;
    }
}

@media (max-width: 480px) {
    .a65-cgv-hero-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .a65-cgv-article p,
    .a65-cgv-article ul li,
    .a65-cgv-article ol li {
        font-size: 13px;
    }
}

/* ================================================
   SMOOTH SCROLL
   ================================================ */
html {
    scroll-behavior: smooth;
}

/* Offset pour le header fixe Elementor */
.a65-cgv-article {
    scroll-margin-top: 100px;
}

/* ================================================
   ANIMATION
   ================================================ */
@media (prefers-reduced-motion: no-preference) {
    .a65-cgv-article {
        animation: a65CgvFadeIn 0.6s ease both;
    }

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