/* ============================================================
   LivreConnect Vitrine — Pages intérieures
   Charte : fond blanc, accent violet (--color-accent: #7c3aed),
   couleurs vives des 5 cercles, ombres légères, radius 8px
   ============================================================ */

/* ============================================================
   PAGE HERO — Bandeau lumineux (fond blanc, accent barre gauche)
   ============================================================ */
.page-hero {
    background: #fff;
    color: var(--color-primary);
    padding: 5rem 0 3.5rem;
    margin-top: 96px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--color-accent);
}
.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: .75rem;
    color: var(--color-primary);
}
.page-hero .lead {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
.page-hero .hero-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}
.page-hero .hero-meta {
    font-size: .85rem;
    color: #94a3b8;
    margin-top: 1.25rem;
}

/* ============================================================
   LEGAL PAGE LAYOUT (CGU, CGV, Privacy, RGPD, Cookies)
   ============================================================ */
.legal-page {
    padding: 2rem 0 4rem;
    background: #fff;
}
.legal-page > .container {
    max-width: 860px;
}
/* Ancien sidebar vertical — remplacé par nav horizontale */
.legal-sidebar {
    display: none;
}

/* Navigation horizontale en boutons-icônes */
.legal-nav-bar {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    padding: .75rem 0;
    position: sticky;
    top: 96px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.legal-nav-bar .container {
    position: relative;
}
/* Indicateur de scroll à droite (gradient fondu) */
.legal-nav-bar .container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to right, transparent, #fff 80%);
    pointer-events: none;
    z-index: 2;
}
.legal-nav-bar .nav-pills-wrap {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: .25rem 3rem .25rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.legal-nav-bar .nav-pills-wrap::-webkit-scrollbar {
    display: none;
}
.legal-nav-pill {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border-radius: 50px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #64748b;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all .25s;
    flex-shrink: 0;
}
.legal-nav-pill i {
    font-size: .75rem;
    color: var(--color-accent);
}
.legal-nav-pill:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: #f5f3ff;
}
.legal-nav-pill.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}
.legal-nav-pill.active i {
    color: #fff;
}

.legal-content section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 200px;
}
.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
}
.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 1.5rem;
    margin-bottom: .75rem;
}
.legal-content p,
.legal-content li {
    color: #475569;
    font-size: .95rem;
    line-height: 1.7;
}
.legal-content ul {
    padding-left: 1.25rem;
}
.legal-content ul li {
    margin-bottom: .3rem;
}
.legal-content ul li::marker {
    color: var(--color-accent);
}

/* ============================================================
   INFO BOXES — Accent couleurs vives
   ============================================================ */
.info-box {
    background: #f5f3ff;
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.info-box.warning {
    background: #fffbeb;
    border-left-color: var(--color-c4);
}
.info-box.success {
    background: #f0fdf4;
    border-left-color: var(--color-c5);
}
.info-box.danger {
    background: #fef2f2;
    border-left-color: var(--color-c1);
}
.info-box p {
    margin-bottom: 0;
    font-size: .9rem;
}

/* ============================================================
   CONTACT CARD
   ============================================================ */
.contact-card {
    background: var(--color-bg-light);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    border: 1px solid #f1f5f9;
}
.contact-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
}
.contact-card a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}
.contact-card a:hover {
    text-decoration: underline;
}

/* ============================================================
   DATA TABLE — Fond blanc, header accent violet
   ============================================================ */
.data-table {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 1.5rem 0;
}
.data-table table {
    margin-bottom: 0;
    width: 100%;
}
.data-table th {
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    font-size: .85rem;
    padding: .85rem 1rem;
    border: none;
}
.data-table td {
    padding: .75rem 1rem;
    font-size: .9rem;
    color: #475569;
    vertical-align: top;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}
.data-table tr:nth-child(even) td {
    background: var(--color-bg-light);
}

/* ============================================================
   COOKIE TOGGLES — Accent violet
   ============================================================ */
.cookie-category {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cookie-category h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .25rem;
    color: var(--color-primary);
}
.cookie-category p {
    font-size: .85rem;
    color: #64748b;
    margin-bottom: 0;
}
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    margin-left: 1rem;
}
.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #d1d5db;
    border-radius: 26px;
    transition: .3s;
}
.cookie-toggle .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .3s;
}
.cookie-toggle input:checked + .slider {
    background: var(--color-accent);
}
.cookie-toggle input:checked + .slider:before {
    transform: translateX(22px);
}
.cookie-toggle input:disabled + .slider {
    background: var(--color-c5);
    opacity: .7;
    cursor: not-allowed;
}

/* ============================================================
   RIGHTS GRID (RGPD) — Cards blanches, icônes couleurs cercles
   ============================================================ */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}
.right-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem;
    transition: transform .2s, box-shadow .2s;
    border-top: 3px solid var(--color-accent);
}
.right-card:nth-child(1) { border-top-color: var(--color-c1); }
.right-card:nth-child(2) { border-top-color: var(--color-c2); }
.right-card:nth-child(3) { border-top-color: var(--color-c3); }
.right-card:nth-child(4) { border-top-color: var(--color-c4); }
.right-card:nth-child(5) { border-top-color: var(--color-c5); }
.right-card:nth-child(6) { border-top-color: var(--color-c1); }
.right-card:nth-child(7) { border-top-color: var(--color-c2); }
.right-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.right-card .right-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.right-card:nth-child(1) .right-icon { background: #fef2f2; color: var(--color-c1); }
.right-card:nth-child(2) .right-icon { background: #f0f9ff; color: var(--color-c2); }
.right-card:nth-child(3) .right-icon { background: #f5f3ff; color: var(--color-c3); }
.right-card:nth-child(4) .right-icon { background: #fffbeb; color: var(--color-c4); }
.right-card:nth-child(5) .right-icon { background: #f0fdf4; color: var(--color-c5); }
.right-card:nth-child(6) .right-icon { background: #fef2f2; color: var(--color-c1); }
.right-card:nth-child(7) .right-icon { background: #f0f9ff; color: var(--color-c2); }
.right-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--color-primary);
}
.right-card p {
    font-size: .85rem;
    color: #64748b;
    margin-bottom: 1rem;
}
.right-card .btn-action {
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: .45rem 1.25rem;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .2s;
    text-decoration: none;
    display: inline-block;
}
.right-card .btn-action:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}

/* ============================================================
   ABOUT PAGE — Fond blanc, cards vives
   ============================================================ */
.about-section {
    padding: 4rem 0;
    background: #fff;
}
.about-section:nth-child(even) {
    background: var(--color-bg-light);
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.about-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
    border: 1px solid #f1f5f9;
}
.about-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.about-card .card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f5f3ff;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
}
/* Couleurs alternées des cercles pour les icônes */
.about-card:nth-child(1) .card-icon { background: #fef2f2; color: var(--color-c1); }
.about-card:nth-child(2) .card-icon { background: #f0f9ff; color: var(--color-c2); }
.about-card:nth-child(3) .card-icon { background: #f5f3ff; color: var(--color-c3); }
.about-card:nth-child(4) .card-icon { background: #fffbeb; color: var(--color-c4); }
.about-card:nth-child(5) .card-icon { background: #f0fdf4; color: var(--color-c5); }
.about-card:nth-child(6) .card-icon { background: #f5f3ff; color: var(--color-accent); }
.about-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--color-primary);
}
.about-card p {
    color: #64748b;
    font-size: .9rem;
    line-height: 1.6;
}

/* Team members */
.team-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: transform .2s;
    border: 1px solid #f1f5f9;
}
.team-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.team-card .team-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center top;
}
/* Gradient fallback par cercle */
.team-card:nth-child(1) .team-photo { background: linear-gradient(135deg, var(--color-c1), #f43f5e); }
.team-card:nth-child(2) .team-photo { background: linear-gradient(135deg, var(--color-c2), #38bdf8); }
.team-card:nth-child(3) .team-photo { background: linear-gradient(135deg, var(--color-c3), #a78bfa); }
.team-card:nth-child(4) .team-photo { background: linear-gradient(135deg, var(--color-c4), #fbbf24); }
.team-card .team-body {
    padding: 1.5rem;
}
.team-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .25rem;
    color: var(--color-primary);
}
.team-card .team-role {
    color: var(--color-accent);
    font-weight: 600;
    font-size: .85rem;
}
.team-card p {
    font-size: .85rem;
    color: #64748b;
    margin-top: .75rem;
    line-height: 1.5;
}

/* Stats row */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}
.stats-row .stat-block {
    text-align: center;
}
.stats-row .stat-block .stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-accent);
    display: block;
}
.stats-row .stat-block .stat-label {
    font-size: .9rem;
    color: #64748b;
}

/* ============================================================
   ERROR PAGE (404) — Fond blanc, code accent
   ============================================================ */
.error-section {
    padding: 4rem 0;
    text-align: center;
    background: #fff;
}
.error-code {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-accent), var(--color-c2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: -1rem;
}
.error-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: .75rem;
    color: var(--color-primary);
}
.error-section p {
    color: #64748b;
    max-width: 500px;
    margin: 0 auto 2rem;
}
.error-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}
.error-links a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    transition: transform .2s, box-shadow .2s;
    border: 1px solid #f1f5f9;
}
.error-links a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--color-accent);
    border-color: var(--color-accent);
}
.error-links a i {
    color: var(--color-accent);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* ============================================================
   AUTH PAGES — Card blanche centrée, accent violet
   ============================================================ */
.auth-section {
    padding: 4rem 0;
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
    background: var(--color-bg-light);
    margin-top: 96px;
}
.auth-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    max-width: 440px;
    margin: 0 auto;
    border-top: 4px solid var(--color-accent);
}
.auth-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: .5rem;
    color: var(--color-primary);
}
.auth-card .auth-subtitle {
    text-align: center;
    color: #64748b;
    font-size: .9rem;
    margin-bottom: 2rem;
}
.auth-card .form-label {
    font-weight: 600;
    font-size: .9rem;
    color: var(--color-primary);
}
.auth-card .form-control {
    border-radius: var(--radius);
    padding: .65rem 1rem;
    border: 1.5px solid #e5e7eb;
    transition: border-color .2s, box-shadow .2s;
}
.auth-card .form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .1);
}
.auth-card .btn-auth {
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: .7rem;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    transition: background .2s, transform .2s;
}
.auth-card .btn-auth:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}
.auth-card .auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .9rem;
}
.auth-card .auth-links a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}
.auth-card .auth-links a:hover {
    text-decoration: underline;
}
.auth-card .alert {
    border-radius: var(--radius);
    font-size: .9rem;
    border: none;
}
.auth-card .alert-success {
    background: #f0fdf4;
    color: #166534;
}
.auth-card .alert-danger {
    background: #fef2f2;
    color: #991b1b;
}

/* ============================================================
   CTA BANNER — Fond accent violet
   ============================================================ */
.cta-banner {
    padding: 4rem 0;
    background: var(--color-bg-light);
    color: var(--color-primary);
    text-align: center;
    border-top: 1px solid #f1f5f9;
}
.cta-banner h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: .75rem;
    color: var(--color-primary);
}
.cta-banner p {
    color: #64748b;
    margin-bottom: 1.5rem;
}
.cta-banner .btn-cta-final {
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: .75rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    display: inline-block;
}
.cta-banner .btn-cta-final:hover {
    background: #6d28d9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .page-hero h1 { font-size: 1.75rem; }
    .page-hero { padding: 4rem 0 2.5rem; }
    .legal-nav-pill { font-size: .75rem; padding: .35rem .7rem; }
    .rights-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 767px) {
    .page-hero { padding: 3.5rem 0 2rem; }
    .error-code { font-size: 5rem; }
    .rights-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .error-links { grid-template-columns: 1fr; }
    .auth-card { margin: 0 1rem; padding: 1.5rem; }
}
