/* ============================================
   PAGE CGU - Conditions Générales d'Utilisation
   ============================================ */

/* Hero CGU */
.hero-cgu {
    cursor: default;
}

.hero-cgu h1 {
    margin: 0;
    font-size: 28px;
}

/* Wrapper CGU */
.cgu-wrapper {
    margin-bottom: 20px;
    border: 2px solid #B1ACAC;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
}

/* Container CGU avec scroll */
.cgu-container {
    padding: 20px;
    background: #fafafa;
    font-size: 15px;
    line-height: 1.7;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar personnalisée */
.cgu-container::-webkit-scrollbar {
    width: 12px;
}

.cgu-container::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.cgu-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #E95A79, #d14665);
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.cgu-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d14665, #c13454);
}

/* Sections CGU (titres H2) */
.cgu-section {
    color: white;
    font-size: 22px;
    margin: 20px -20px 12px -20px;
    padding: 12px 20px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cgu-section:first-of-type {
    margin-top: 0;
}

/* Alternance de couleurs pour les sections */
.section-blue {
    background: linear-gradient(90deg, #4A90E2, #2980b9);
}

.section-pink {
    background: linear-gradient(90deg, #E95A79, #d14665);
}

/* Texte des CGU */
.cgu-text {
    margin: 0 0 12px 0;
    text-align: justify;
    font-size: 17px;
    color: #333;
}

/* Mise en évidence */
.cgu-highlight {
    color: #4A90E2;
    font-size: 16px;
    display: inline-block;
    background: rgba(74, 144, 226, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

/* Listes CGU */
.cgu-list {
    margin: 8px 0 12px 25px;
    padding: 0;
    font-size: 17px;
    line-height: 1.6;
    list-style: none;
}

.cgu-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: #333;
}

.cgu-list li:before {
    content: "▸";
    color: #E95A79;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 16px;
}

/* ============================================
   ZONE D'ACCEPTATION
   ============================================ */

.acceptance-zone {
    border: 2px solid #E95A79;
    border-radius: 8px;
    padding: 20px;
    background: white;
    margin-top: 20px;
}

/* Checkbox container */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #E95A79;
}

.checkbox-label {
    flex: 1;
    cursor: pointer;
}

.checkbox-label strong {
    font-size: 16px;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.checkbox-sublabel {
    font-size: 14px;
    color: #666;
}

/* Boutons d'action */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 12px;
}

.action-buttons button {
    padding: 10px 24px;
    font-size: 16px;
    min-width: 120px;
}

/* Note d'acceptation */
.acceptance-note {
    text-align: center;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* État désactivé du bouton accepter */
.btn-auth:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-auth:disabled:hover {
    background: #ccc;
    transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .cgu-section {
        font-size: 18px;
        margin: 15px -20px 10px -20px;
        padding: 10px 20px;
    }
    
    .cgu-text {
        font-size: 15px;
    }
    
    .cgu-list {
        font-size: 15px;
        margin-left: 15px;
    }
    
    .cgu-container {
        max-height: 400px;
    }
    
    .checkbox-label strong {
        font-size: 14px;
    }
    
    .checkbox-sublabel {
        font-size: 12px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons button {
        width: 100%;
    }
}
