* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

main {
    width: 100%;
    margin: 0;
    padding: 0;
}

.container-content {
    width: 100%;
    margin: 0;
}

/* Section Style */
.info-section {
    padding: 4rem 0;
    border-bottom: 1px solid #e8e8e8;
    /* Compense la barre sticky (hero) lors des ancres */
    scroll-margin-top: 120px;
    width: 100%;
}

/* Titres de sections - style standardisé */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
    padding-top: 2rem;
    padding-left: 4rem;
    padding-right: 4rem;
    box-sizing: border-box;
}

.section-content {
    width: 100%;
    padding-left: 4rem;
    padding-right: 4rem;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

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

/* Harmonisation: pas de padding-top sur la 1re section pour coller la sous‑nav à 50px de la hero */
.info-section:first-of-type {
    padding-top: 0;
}

/* Layout 2 colonnes */
.two-columns {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Pas de centrage vertical pour la section contact */
#contact .two-columns {
    align-items: start;
    grid-template-columns: 2.8fr 1fr;
    /* même layout que BDE */
}

/* Localisation: sidebar (à droite de la carte) sticky doux en desktop */
#localisation .two-columns>div:last-child {
    align-self: start;
    position: sticky;
    top: 90px;
}

/* Cartes d'info de la sidebar: effet hover léger et header enrichi */
#localisation .info-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-bottom: 1rem;
}

#localisation .info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15);
}

#localisation .info-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#localisation .info-card h3 i {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.35);
}

/* Adresse: actions capsules sous l'adresse */
/* (boutons adresse retirés) */

/* Responsive: désactiver le sticky en mobile/tablette */
@media (max-width: 1024px) {
    #localisation .two-columns>div:last-child {
        position: static;
        top: auto;
    }
}

/* Assurer l'alignement symétrique des colonnes */
.two-columns>* {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    min-width: 0;
}

/* S'assurer que les divs enfants s'étirent correctement */
.two-columns>div {
    display: flex;
    flex-direction: column;
}

.two-columns-equal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 1024px) {

    .two-columns,
    .two-columns-equal {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* Styles obsolètes supprimés - utilisation de .section-title */

/* Désactiver le hero sticky sur cette page */
.hero-banner {
    position: relative !important;
    top: auto !important;
    z-index: 1 !important;
    margin-bottom: 0 !important;
}

/* Barre de progression de lecture */
.reading-progress {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    z-index: 100000;
}

.reading-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 80ms linear;
}

/* Sous-navigation sticky */
.subnav {
    position: sticky;
    top: 64px;
    /* sous la navbar globale */
    z-index: 2000;
    background: transparent;
    border: none;
    padding: 0;
    margin: 50px auto 100px auto;
    max-width: 1400px;
}

.subnav .container-content {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.subnav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: #263042;
    font-weight: 700;
    border: 1.5px solid #e0e0e0;
    transition: all 160ms ease;
    background: #fff;
}

.subnav a:hover,
.subnav a.active {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.25);
}

.subnav .nav-count {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

/* (ancienne quick-nav supprimée) */

/* Info Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #667eea;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.info-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

/* Accessibilité: helper screen-reader only (local) */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.info-card strong {
    color: #333;
}

/* Map Container */
.map-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
}

#map {
    height: 550px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

/* Masquer le panneau de routage par défaut */
.leaflet-routing-container {
    display: none !important;
}

/* Contact Form */
.contact-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 3rem 3.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.contact-form h3 {
    color: #1e40af;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Espace vertical supplémentaire pour Sujet et Message */
.contact-form .form-group.full-width {
    margin-top: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    /* aligner avec BDE */
    font-size: 0.95rem;
}

.form-group label .required {
    color: #e74c3c;
}

.form-control {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.btn-submit {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    /* espace avec le champ au-dessus */
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* Messages de formulaire */
.form-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    margin-top: 1rem;
    /* Animation gérée par modern-theme.css */
}

.form-message i {
    font-size: 1.3rem;
}

.form-message-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.form-message-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

/* Carte contact (alignée au style BDE) */
.contact-info {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 2.5rem;
    border: 2px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info h3 i {
    color: #3b82f6;
    font-size: 1.2rem;
}

.contact-subtitle {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: #444;
    font-size: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    transition: all 0.2s ease;
}

.contact-item i {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: #fff;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-top: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.contact-item:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.12);
}

.contact-item span {
    color: #374151;
}

.contact-item a {
    color: #1e40af;
    text-decoration: none;
    position: relative;
}

.contact-item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.2s ease;
}

.contact-item a:hover::after,
.contact-item a:focus::after {
    width: 100%;
}

/* Boutons Itinéraire (capsules) */
.route-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.route-btn i {
    font-size: 12px;
}

.route-btn--transport {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.route-btn--parking {
    background: linear-gradient(135deg, #10b981, #059669);
}

.route-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    filter: brightness(1.05);
}

.route-btn:active {
    transform: translateY(0);
}

.route-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.alert {
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Transport Items */
.transport-list {
    display: grid;
    gap: 1.5rem;
}

.transport-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.transport-item:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.15);
}

.transport-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.transport-details h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.transport-details p {
    color: #666;
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

/* FAQ Items - Deux colonnes indépendantes */
.faq-list {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .faq-list {
        flex-direction: column;
        /* Une seule colonne sur mobile */
    }
}

.faq-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
    /* Permet au contenu de se rétrécir si nécessaire */
}

@media (max-width: 1024px) {
    .faq-column {
        width: 100%;
    }
}

.faq-item {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #667eea;
    width: 100%;
    box-sizing: border-box;
}

/* Accordion - questions */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-align: left;
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 700;
}

.faq-question .faq-icon {
    color: #667eea;
    margin-right: .25rem;
}

.faq-question::after {
    content: '\f107';
    /* chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.95rem;
    color: #667eea;
    transition: transform .2s ease;
}

.faq-question[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Accordion - answers */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

.faq-answer p {
    margin-top: .8rem;
}

.faq-item h4 i {
    color: #667eea;
    margin-top: 0.2rem;
}

.faq-item p {
    color: #555;
    line-height: 1.7;
}

/* Liens dans les réponses FAQ */
.faq-link {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.2s ease;
    word-break: break-all;
}

.faq-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.faq-link:visited {
    color: #764ba2;
}

/* Barre de recherche FAQ */
.faq-search-container {
    margin-bottom: 2.5rem;
}

.faq-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-search-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.faq-search-icon {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.faq-search-wrapper:focus-within .faq-search-icon {
    color: #667eea;
}

.faq-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #2d3748;
    background: transparent;
    padding: 0;
}

.faq-search-input::placeholder {
    color: #94a3b8;
}

.faq-search-clear {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.faq-search-clear:hover {
    color: #667eea;
    background: #f1f5f9;
}

.faq-search-clear:active {
    transform: scale(0.95);
}

/* Zone de résultats de recherche */
.faq-search-results {
    margin-bottom: 2rem;
    /* Animation gérée par modern-theme.css */
}

/* Animation fadeIn gérée par modern-theme.css */

/* Highlight des termes recherchés */
.faq-item mark {
    background-color: #fef3c7;
    color: #92400e;
    padding: 0.1em 0.2em;
    border-radius: 3px;
    font-weight: 600;
}

.faq-item .faq-answer mark {
    background-color: #dbeafe;
    color: #1e40af;
}


/* Responsive */
@media (max-width: 1024px) {
    .section-title {
        padding-left: 2rem;
        padding-right: 2rem;
        font-size: 2.2rem;
    }

    .section-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 768px) {
    main {
        padding: 0;
    }

    .section-title {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .section-content {
        padding: 0 1.5rem;
    }

    .faq-search-container {
        margin-bottom: 2rem;
    }

    .faq-search-wrapper {
        padding: 0.6rem 0.8rem;
    }

    .faq-search-input {
        font-size: 0.95rem;
    }

    .quick-nav {
        flex-direction: column;
    }

    .quick-nav a {
        justify-content: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .info-section {
        padding: 2.5rem 0;
    }

    .contact-container {
        padding: 1.5rem !important;
    }

    .two-columns {
        gap: 2rem;
    }

    #map {
        height: 450px;
    }

    .transport-item {
        flex-direction: column;
        text-align: center;
    }

    .map-container {
        padding: 1.5rem;
    }
}

/* Mobile étroit: ajustements supplémentaires */
@media (max-width: 600px) {
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .section-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .two-columns {
        gap: 1.25rem;
    }

    .info-card,
    .map-container {
        padding: 1rem;
        border-radius: 10px;
    }

    #map {
        height: 320px;
    }

    .contact-form {
        padding: 1.25rem 1rem;
    }

    .faq-item {
        padding: 1rem 1.25rem;
    }

    .route-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
}

/* Forcer l'empilement du formulaire et de la carte contact sur mobile/tablette */
@media (max-width: 900px) {
    #contact .two-columns {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }

    #contact .two-columns>* {
        width: 100% !important;
        max-width: 100% !important;
    }
}