/* ============================================================
   PAGE CGV — Conditions Générales de Vente
   Palette : #94a51e | #a7bd22 | fond #f4f5f0
   ============================================================ */

.cgv-page-wrapper {
    background: #f4f5f0;
    min-height: 70vh;
    padding-bottom: 60px;
}

/* ----- Hero ----------------------------------------------- */
.cgv-hero {
    background: linear-gradient(135deg, #94a51e, #a7bd22);
    padding: 28px 0 22px;
    margin-bottom: 32px;
}
.cgv-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.cgv-hero-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.55rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cgv-hero-title i { font-size: 1.2rem; opacity: 0.85; }
.cgv-hero-date {
    background: rgba(255,255,255,0.22);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid rgba(255,255,255,0.35);
    white-space: nowrap;
}

/* ----- Table des matières --------------------------------- */
.cgv-toc-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-bottom: 28px;
    overflow: hidden;
}
.cgv-toc-header {
    background: linear-gradient(135deg, #7a8a18, #a7bd22);
    color: #fff;
    font-family: 'Anton', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cgv-toc-body { padding: 16px 20px; }
.cgv-toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px 16px;
}
.cgv-toc-link {
    font-size: 0.82rem;
    color: #4a5214;
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 3px 0;
    border-bottom: 1px dashed #e8ebb0;
    transition: color 0.15s;
    line-height: 1.4;
}
.cgv-toc-link:hover { color: #94a51e; text-decoration: none; }
.cgv-toc-num {
    font-weight: 700;
    color: #94a51e;
    flex-shrink: 0;
    font-size: 0.78rem;
}

/* ----- Articles ------------------------------------------- */
.cgv-article {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    overflow: hidden;
    scroll-margin-top: 80px;
}
.cgv-article-header {
    background: linear-gradient(135deg, #7a8a18, #a7bd22);
    color: #fff;
    font-family: 'Anton', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 13px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cgv-article-num {
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}
.cgv-article-body {
    padding: 20px 24px;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.75;
}
.cgv-article-body p { margin-bottom: 12px; }
.cgv-article-body p:last-child { margin-bottom: 0; }

/* Sous-sections (24.1, 24.2…) */
.cgv-sub {
    margin-top: 16px;
    border-left: 3px solid #a7bd22;
    padding-left: 16px;
}
.cgv-sub-title {
    font-weight: 700;
    color: #4a5214;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

/* Points numérotés 1/ 2/ 3/ */
.cgv-num-list { list-style: none; padding: 0; margin: 10px 0; }
.cgv-num-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    align-items: flex-start;
}
.cgv-num-list li .cgv-ni {
    font-weight: 700;
    color: #94a51e;
    flex-shrink: 0;
    min-width: 22px;
}

/* Formulaire rétractation */
.cgv-form-box {
    background: #f8faf0;
    border: 1.5px dashed #a7bd22;
    border-radius: 10px;
    padding: 18px 22px;
    margin-top: 16px;
    font-size: 0.86rem;
}
.cgv-form-box-title {
    font-family: 'Anton', sans-serif;
    font-size: 0.95rem;
    color: #4a5214;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cgv-form-fields { display: grid; gap: 10px; margin-top: 10px; }
.cgv-form-field {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
}
.cgv-form-field strong { color: #4a5214; min-width: 130px; flex-shrink: 0; }

/* Notice encadrée */
.cgv-notice {
    background: #f6f8e5;
    border-left: 4px solid #a7bd22;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 0.85rem;
    color: #4a5214;
}

/* CGV Emballages SENS (art.27 nested) */
.cgv-sens-block {
    background: #fafafa;
    border: 1.5px solid #e0e8a0;
    border-radius: 10px;
    padding: 20px 22px;
    margin-top: 16px;
}
.cgv-sens-title {
    font-family: 'Anton', sans-serif;
    font-size: 1rem;
    color: #4a5214;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #a7bd22;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cgv-sens-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #dde8a0;
}
.cgv-sens-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.cgv-sens-item-num {
    font-weight: 700;
    color: #94a51e;
    font-size: 0.82rem;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* Grille hébergeur / éditeur */
.cgv-mentions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}
.cgv-mentions-block {
    background: #f8faf0;
    border: 1.5px solid #e0e8a0;
    border-radius: 10px;
    overflow: hidden;
}
.cgv-mentions-block-title {
    background: linear-gradient(135deg, #7a8a18, #a7bd22);
    color: #fff;
    font-family: 'Anton', sans-serif;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cgv-mentions-block-body {
    padding: 14px 16px;
    font-size: 0.84rem;
    color: #444;
    line-height: 1.7;
}
.cgv-mentions-block-body a {
    color: #4a5214;
    text-decoration: none;
}
.cgv-mentions-block-body a:hover { color: #94a51e; text-decoration: underline; }

/* Tableau bases légales (art. 28.3) */
.cgv-privacy-table-wrap {
    overflow-x: auto;
    margin: 12px 0;
    border-radius: 8px;
    border: 1.5px solid #e0e8a0;
}
.cgv-privacy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}
.cgv-privacy-table thead tr {
    background: linear-gradient(135deg, #7a8a18, #a7bd22);
    color: #fff;
}
.cgv-privacy-table th {
    padding: 10px 16px;
    font-family: 'Anton', sans-serif;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: left;
    font-weight: 400;
}
.cgv-privacy-table td {
    padding: 9px 16px;
    color: #444;
    border-bottom: 1px solid #edf0d0;
    vertical-align: top;
}
.cgv-privacy-table tbody tr:last-child td { border-bottom: none; }
.cgv-privacy-table tbody tr:nth-child(even) td { background: #f8faf0; }

/* Responsive */
@media (max-width: 767px) {
    .cgv-hero { padding: 20px 0 16px; }
    .cgv-hero-title { font-size: 1.15rem; }
    .cgv-article-body { padding: 16px 16px; }
    .cgv-toc-grid { grid-template-columns: 1fr 1fr; }
    .cgv-mentions-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .cgv-toc-grid { grid-template-columns: 1fr; }
}
