/* ============================================================
   TERMS.CSS — Conditions générales d'utilisation · ZEENEO
   Styles spécifiques à la page (sans header, footer, reset,
   variables, container, profile dropdown, search bar, bottom bar)
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.terms-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.terms-hero {
    background: linear-gradient(135deg, #0a3d1a 0%, #0f5c28 50%, #147a36 100%);
    padding: 40px 0 48px;
    position: relative;
    overflow: hidden;
}
.terms-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(30, 215, 96, 0.14) 0%, transparent 68%);
    border-radius: 50%;
    pointer-events: none;
}
.terms-hero::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -8%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.terms-hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}
.terms-hero h1 {
    color: var(--white);
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 720px;
    margin: 0 auto 12px;
}
.terms-hero .terms-hero-sub {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

/* ============================================================
   CONTENU PRINCIPAL
   ============================================================ */
.terms-main {
    padding: 36px 0 56px;
    margin-top: -24px;
    position: relative;
    z-index: 2;
}

.terms-layout {
    max-width: 820px;
    margin: 0 auto;
}

.terms-container {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 22px 32px;
    box-shadow: var(--shadow-card);
}
@media (min-width: 768px) {
    .terms-container {
        padding: 36px 40px 40px;
    }
}

/* ============================================================
   ACCORDÉON
   ============================================================ */
.terms-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.terms-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.terms-item:hover {
    border-color: rgba(30, 215, 96, 0.28);
    box-shadow: var(--shadow);
}

.terms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
    user-select: none;
    background: var(--bg);
    font-weight: 600;
    font-size: 15px;
    color: var(--dark);
    line-height: 1.4;
    transition: background 0.2s ease, color 0.2s ease;
}
.terms-header:hover {
    background: rgba(248, 249, 250, 0.95);
}
.terms-header.active {
    color: var(--green-deeper);
    background: var(--green-bg);
    border-bottom: 1px solid rgba(200, 237, 207, 0.8);
}
.terms-header-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.terms-chevron {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.terms-header.active .terms-chevron {
    transform: rotate(180deg);
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.terms-content {
    display: none;
    padding: 20px 18px 22px;
    border-top: 1px solid var(--border);
    animation: fadeIn 0.25s ease;
}
.terms-content.show {
    display: block;
}
.terms-content p {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--grey);
}
.terms-content p:last-child {
    margin-bottom: 0;
}
.terms-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin: 20px 0 10px;
    letter-spacing: -0.01em;
}
.terms-content h4:first-child {
    margin-top: 0;
}
.terms-content ul {
    margin: 0 0 14px 0;
    padding: 0;
    list-style: none;
}
.terms-content ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--grey);
    line-height: 1.65;
}
.terms-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    opacity: 0.85;
}
.terms-content ul li:last-child {
    margin-bottom: 0;
}

/* ============================================================
   BOUTON RETOUR
   ============================================================ */
.back-to-home {
    text-align: center;
    margin-top: 32px;
    padding-bottom: 8px;
}
.back-to-home a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green);
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--green);
    transition: background 0.2s ease, color 0.2s ease, gap 0.2s ease, box-shadow 0.2s ease;
}
.back-to-home a:hover {
    background: var(--green);
    color: var(--white);
    gap: 14px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(30, 215, 96, 0.25);
}
.back-to-home a svg {
    flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    .terms-main { padding: 28px 0 44px; margin-top: -20px; }
    .terms-container {
        padding: 22px 16px 26px;
        border-radius: var(--radius);
    }
    .terms-header {
        padding: 14px 14px;
        font-size: 14px;
    }
    .terms-content {
        padding: 16px 14px 18px;
    }
    .terms-content p,
    .terms-content ul li {
        font-size: 15px;
    }
    .terms-chevron {
        width: 30px;
        height: 30px;
    }
    .back-to-home { margin-top: 24px; }
}

@media (max-width: 480px) {
    .terms-hero { padding: 32px 0 40px; }
    .terms-hero .terms-hero-sub { font-size: 14px; }
}
