/**
 * PAGES_FOOTER.CSS
 * Utilise les design tokens de design-tokens.css
 */

/* Styles pour les pages standards (mentions légales, CGV, etc.) */

.page-container {
    max-width: min(100% - 2 * var(--page-pad-x), 1080px);
    margin: calc(var(--navbar-height-desktop) + 1.5rem) auto var(--section-gap);
    padding: clamp(1.75rem, 1rem + 3vw, 3.25rem);
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-soft);
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
}

.page-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.page-title {
    font-family: var(--font-family-display);
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
    color: var(--text-primary);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.page-content {
    font-family: 'Signika', sans-serif;
    color: #444;
    line-height: 1.6;
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--medium-gray);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.legal-section h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin: 25px 0 15px;
    font-weight: 500;
}

.legal-section p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.legal-section ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-section li {
    margin-bottom: 10px;
}

/* Classes CSS supplémentaires pour les pages du footer */

/* --- Éléments généraux --- */
.highlight {
    font-weight: 600;
    color: var(--secondary-color);
}

.price {
    font-weight: 600;
    color: var(--primary-color);
}

.required {
    color: var(--secondary-color);
}

.phone-number, .email {
    font-weight: 600;
    color: var(--primary-dark);
}

.link-primary {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.link-primary:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* --- Boîtes d'information --- */
.info-box {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 2px;
}

.info-box.highlight {
    background-color: rgba(255, 67, 101, 0.1);
    border-left: 4px solid var(--secondary-color);
}

.info-box.warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
}

.info-box.warning i {
    color: #ffc107;
}

.info-box.secure {
    background-color: rgba(6, 214, 160, 0.1);
    border-left: 4px solid var(--accent-color);
}

.info-box.secure i {
    color: var(--accent-color);
}

/* --- Listes --- */
.check-list {
    list-style-type: none;
    padding-left: 5px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.check-list li:before {
    content: "\F26E";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.feature-list {
    list-style-type: none;
    padding-left: 5px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.feature-list li i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.steps-list {
    counter-reset: steps-counter;
    list-style-type: none;
    padding-left: 5px;
}

.steps-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    counter-increment: steps-counter;
}

.steps-list li:before {
    content: counter(steps-counter);
    position: absolute;
    left: 0;
    top: -2px;
    width: 25px;
    height: 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-list {
    list-style-type: none;
    padding-left: 5px;
}

.contact-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.contact-list li i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* --- Sections FAQ --- */
.faq-section .faq-item {
    margin-bottom: 25px;
    border-bottom: 1px dashed var(--medium-gray);
    padding-bottom: 15px;
}

.faq-section .faq-item:last-child {
    border-bottom: none;
}

.faq-section h3 {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.faq-section h3:before {
    content: "\F282";
    font-family: "bootstrap-icons";
    margin-right: 10px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-section h3.active:before {
    content: "\F286";
}

.faq-section .faq-content {
    padding-left: 25px;
}

.faq-content {
    overflow: hidden;
    display: none; /* Initial state */
    opacity: 0;
    max-height: 0;
    transition: opacity 0.3s ease, max-height 0.5s ease;
}

.faq-section h3.active {
    color: var(--primary-dark); /* Feedback visuel */
}

.intro-message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.intro-message i, .faq-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
}

/* --- Formulaire de contact (design pro) --- */
.contact-form {
    background: #fff;
    border: 1px solid rgba(132, 79, 192, 0.12);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 6px 20px rgba(132, 79, 192, 0.06);
}

.contact-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    margin: 0;
}

.contact-form .form-row > [class*="col-"] {
    flex: 1 1 calc(50% - 10px);
    min-width: 220px;
    padding: 0;
}

.contact-form .form-group {
    margin-bottom: 18px;
}

.contact-form label,
.contact-form .form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #3a3a3a;
    margin-bottom: 6px;
}

.contact-form .form-control,
.contact-form .form-select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #e3e0ea;
    border-radius: 9px;
    font-size: 0.95rem;
    color: #333;
    background: #fcfbfe;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(132, 79, 192, 0.12);
    outline: none;
}

.contact-form textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.contact-form .form-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 4px 0 8px;
}

.contact-form .form-check-input {
    margin-top: 3px;
    flex: 0 0 auto;
}

.contact-form .form-check-label {
    font-weight: 400;
    font-size: 0.88rem;
    color: #666;
    margin: 0;
}

.contact-form .g-recaptcha-container {
    margin: 6px 0 4px;
}

.contact-form .form-actions {
    text-align: left;
    margin-top: 22px;
}

.contact-form .form-note {
    text-align: left;
    font-size: 0.85rem;
    color: #999;
    margin-top: 12px;
}

.contact-form button,
.contact-form .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: #fff;
    padding: 0.8rem 2.1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(132, 79, 192, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(132, 79, 192, 0.4);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

/* --- Contact et adresse --- */
.contact-methods {
    margin-top: 30px;
}

.contact-options {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0;
}

.contact-option {
    flex: 1 1 280px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    background: #fff;
    border: 1px solid rgba(132, 79, 192, 0.12);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 14px rgba(132, 79, 192, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(132, 79, 192, 0.12);
}

.contact-option .contact-icon {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 0;
    flex: 0 0 auto;
}

.contact-option h3 {
    margin: 0 0 3px;
    font-size: 1.05rem;
    color: var(--primary-dark);
}

.contact-option p {
    margin: 0 0 2px;
    font-size: 0.9rem;
    color: #666;
}

.contact-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.address-container {
    display: flex;
    align-items: flex-start;
}

.company-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.address-line {
    margin-bottom: 5px;
}

/* --- Sécurité --- */
.security-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.timeline-card {
    position: relative;
    padding-left: 60px;
    margin-bottom: 20px;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    height: 45px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon i {
    color: white;
    font-size: 1.2rem;
}

.timeline-content {
    position: relative;
}

.timeline-content:before {
    content: '';
    position: absolute;
    top: 22px;
    left: -15px;
    width: 15px;
    height: 2px;
    background-color: var(--primary-light);
}

/* --- Options de paiement --- */
.payment-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.payment-icon {
    margin-top: 5px;
}

.payment-list {
    list-style-type: none;
    padding-left: 5px;
}

.payment-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.payment-list li i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* --- Boutons définis dans buttons.css --- */

/* --- Responsive --- */
@media (max-width: 767px) {
    .contact-options {
        flex-direction: column;
    }
    
    .contact-option {
        margin-bottom: 0;
    }

    .timeline-card {
        padding-left: 45px;
    }
    
    .timeline-icon {
        width: 35px;
        height: 35px;
    }
    
    .intro-message i, .faq-icon, .contact-icon, .service-icon, .security-icon, .address-icon, .payment-icon {
        font-size: 1.5rem;
    }
    
    .info-box {
        flex-direction: column;
    }
    
    .info-box i {
        margin-bottom: 10px;
    }
    
    .security-feature {
        flex-direction: column;
    }
    
    .security-feature i {
        margin-bottom: 10px;
    }
}

/* Responsive - Tablet */
@media (max-width: 1023px) {
    .page-container {
        margin-top: 160px; /* Aligné avec navbar tablet */
        padding: 20px;
    }

    .page-title {
        font-size: 1.7rem;
    }

    .legal-section h2 {
        font-size: 1.4rem;
    }

    .legal-section h3 {
        font-size: 1.2rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .page-container {
        margin-top: var(--navbar-offset, 226px); /* Aligné avec navbar mobile */
        padding: 15px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-content {
        font-size: 0.95rem;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-section h3 {
        font-size: 1.1rem;
    }

    .legal-section p {
        font-size: 0.95rem;
    }
}