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

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--gris);
    line-height: var(--line-height-relaxed);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header — fond blanc, sans bandeau */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Pas de padding-top sur main en home : header sticky, pas d'espace gris entre menu et bandeau */
#main-content {
    padding-top: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.logo img {
    height: 45px;
}

.main-nav {
    display: none;
    gap: var(--spacing-md);
}

.main-nav a {
    color: var(--header-nav-text);
    font-weight: 500;
    font-size: var(--text-base);
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--rose);
}

.powered-by {
    display: none;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--text-xs);
    color: var(--header-nav-text);
}

.powered-by__label {
    font-size: 0.875rem;
    line-height: 1.1;
    font-weight: 600;
}

.powered-by img {
    height: 24px;
}

.burger-menu {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.burger-menu span {
    width: 24px;
    height: 3px;
    background: var(--header-nav-text);
    border-radius: 2px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Menu mobile — fond blanc, texte lisible #262637 */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: var(--spacing-md) var(--spacing-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 1px solid var(--gray-200);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 12px;
}

.mobile-menu nav a {
    color: var(--header-nav-text);
    font-weight: 500;
    font-size: var(--text-base);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
}

.mobile-menu nav a:hover {
    background: var(--gray-100);
    color: var(--bleu);
}

.mobile-powered {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.mobile-powered span {
    display: block;
    font-size: 12px;
    color: #262637;
    margin-bottom: 8px;
}

.mobile-powered .powered-by__label {
    font-size: 13px;
    font-weight: 600;
}

.mobile-powered img {
    height: 28px;
}

/* Hero — bandeau en arrière-plan (image + overlay en une seule couche, pas de duplication) */
.hero {
    position: relative;
    background-color: var(--bleu);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.search-box-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 23, 42, 0.72);
    pointer-events: none;
    z-index: 2;
}

.search-box-icon i {
    font-size: 20px;
}

.search-box-icon svg {
    display: block;
}

.search-box input {
    width: 100%;
    padding: 0.95rem 3.1rem 0.95rem 3.1rem;
    font-size: var(--text-base);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
    height: 52px;
    position: relative;
    z-index: 1;
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    color: rgba(15, 23, 42, 0.85);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.search-box button:hover {
    background: rgba(15, 23, 42, 0.06);
    color: rgba(15, 23, 42, 0.95);
}

.search-box button i {
    font-size: 20px;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.autocomplete-dropdown.active {
    display: block;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: var(--gris);
    border-bottom: 1px solid var(--gray-100);
}

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

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: var(--gray-50);
    color: var(--rose);
}

.autocomplete-item i {
    color: var(--bleu);
    font-size: 16px;
}

.autocomplete-item.no-result {
    color: var(--gray-500);
    cursor: default;
    font-style: italic;
}

.autocomplete-item.no-result:hover {
    background: transparent;
    color: var(--gray-500);
}

.hero-geoloc {
    margin-top: 16px;
}

.hero-separator {
    display: block;
    margin: 14px auto 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.95;
}

.btn-geoloc-ecoles {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(600px, 100%);
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: var(--rose);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-geoloc-ecoles i {
    font-size: 22px;
}

.btn-geoloc-ecoles__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-geoloc-ecoles__icon svg {
    display: block;
}

.btn-geoloc-ecoles--full {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    height: 52px;
    padding: 0 18px;
    border-radius: 10px;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

.btn-geoloc-ecoles--full:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn-geoloc-ecoles--full:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

.btn-geoloc-ecoles:hover:not(:disabled) {
    background: var(--coral);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(244, 98, 99, 0.35);
}

.btn-geoloc-ecoles:disabled {
    opacity: 0.7;
    cursor: default;
}

.geoloc-message {
    margin-top: 6px;
    font-size: 13px;
    color: #e5e7eb;
}

.geoloc-message--error {
    color: #fecaca;
}

.geoloc-message--info {
    color: #e5e7eb;
}

/* Map section */
.map-section {
    padding: 60px 24px 16px;
    background: var(--gray-50);
}

.map-section h2 {
    text-align: center;
    font-size: 32px;
    color: var(--gris);
    margin-bottom: 24px;
}

.map-section .container {
    display: block;
}

.map-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    width: 100%;
}

#francemap {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: visible; /* ne pas rogner le bas de la carte sur mobile */
}

.map-aside {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.map-aside__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--gris);
    margin: 0 0 16px;
    text-align: left;
}

.map-aside__list {
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.map-aside__item {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    padding: 0;
    color: var(--gris);
}

.map-aside__item i {
    font-size: 20px;
    color: var(--rose);
    line-height: 1.2;
    margin-top: 2px;
}

.map-aside__item span {
    line-height: 1.6;
    font-size: 15px;
}

@media (min-width: 1024px) {
    .map-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 22px;
    }

    #francemap {
        max-width: 920px;
        margin: 0;
    }

    .map-aside {
        max-width: none;
        margin: 0;
        align-self: center;
    }
}

/* Scroll horizontal uniquement sur le wrapper : la hauteur suit tout le SVG */
.francemap-scroll {
    display: block;
    width: 100%;
}

#francemap svg {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.map-tooltip {
    position: absolute;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    font-size: 12px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -120%);
    white-space: nowrap;
    z-index: 10;
    transition: opacity 0.1s ease;
}

.map-tooltip.is-visible {
    opacity: 1;
}

.map-placeholder {
    background: white;
    border-radius: var(--radius);
    padding: 80px;
    text-align: center;
    color: var(--gris);
}

.map-placeholder i {
    font-size: 64px;
    color: var(--bleu);
    margin-bottom: 16px;
}

/* CTA Banner */
.cta-banner {
    background: var(--rose);
    color: white;
    padding: 48px 24px;
}

.cta-banner--blue {
    background: var(--bleu);
}

.cta-banner--media .btn-white {
    color: var(--bleu);
}

.cta-banner--media h3 {
    font-size: clamp(1.65rem, 2.7vw, 2.35rem);
    line-height: 1.15;
    margin-bottom: 14px;
}

.cta-banner--media p {
    margin-bottom: 22px;
}

.cta-banner--media .btn-white {
    margin-top: 2px;
}

.cta-media {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.cta-media__content {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-media__visual {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.cta-media__visual img {
    width: 100%;
    max-width: 440px;
    height: 100%;
    max-height: none;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.cta-banner--media .banner-content {
    max-width: 1100px;
}

.cta-duo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0 auto;
    max-width: 900px;
}

.cta-duo__item {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    padding: 20px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-duo__title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    margin-bottom: 8px;
    color: white;
    font-weight: 700;
}

.cta-duo__item p {
    margin-bottom: 16px;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-duo__item .btn-proposer-ecole-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.cta-duo__item .btn-proposer-ecole-inline--white {
    background: var(--white);
    border-color: var(--white);
    color: var(--rose);
}

.cta-duo__item .btn-proposer-ecole-inline--white:hover {
    background: var(--rose);
    border-color: var(--rose);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta-duo__item .btn-proposer-ecole-inline--white:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

.cta-duo__item .btn-proposer-ecole-inline:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
    opacity: 1;
}

.cta-duo__item .btn-proposer-ecole-inline:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

.banner-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.banner-content h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.banner-content p {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.95;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--rose);
    padding: 12px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Bandeau "Vous êtes bateau-école ?" : hover identique aux 2 boutons */
.cta-banner .cta-duo__item .btn-white {
    /* Même base que le bouton gauche */
    background: var(--white);
    color: var(--rose);
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid var(--white);
    box-shadow: none;
    opacity: 1;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.cta-banner .cta-duo__item .btn-white:hover {
    background: var(--rose);
    border-color: var(--rose);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* "Bateaux-ecoles.com, qu'est-ce que c'est ?" */
.info-icons__list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.info-icons__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 16px;
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: var(--gris);
}

.info-icons__item i {
    font-size: 22px;
    color: var(--rose);
    margin-top: 2px;
    flex: 0 0 auto;
}

.info-icons__item span {
    line-height: 1.6;
    font-size: 15px;
}

/* "L'annuaire en chiffres" */
.stats-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 0;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 999px;
    background: white;
    border: 1px solid rgba(244, 98, 99, 0.22);
    color: var(--gris);
}

.stat-pill i {
    font-size: 22px;
    color: var(--rose);
}

.stat-pill__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-pill__value {
    font-weight: 800;
    font-size: 20px;
    color: var(--rose);
    line-height: 1.1;
}

.stat-pill__label {
    font-size: 14px;
    line-height: 1.2;
    opacity: 0.95;
}

/* Quick search */
.quick-search {
    padding: 80px 24px;
}

.quick-search h2 {
    text-align: center;
    font-size: 32px;
    color: var(--gris);
    margin-bottom: 48px;
}

.search-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.search-column h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    color: var(--bleu);
    margin-bottom: 16px;
}

.search-column ul {
    list-style: none;
}

.search-column li {
    margin-bottom: 0;
}

.search-column a {
    color: var(--gris);
    padding: 2px 12px;
    display: block;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.search-column a:hover {
    background: var(--gray-50);
    color: var(--rose);
}

/* Guide sections */
.guide-section {
    padding: 80px 24px;
    background: var(--gray-50);
}

.guide-section h2 {
    text-align: center;
    font-size: 32px;
    color: var(--gris);
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .cta-duo {
        grid-template-columns: 1fr 1fr;
    }

    .info-icons__list {
        grid-template-columns: 1fr 1fr;
    }

    .cta-media {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 28px;
    }

    .cta-media__visual {
        justify-content: flex-end;
    }

    .cta-media__visual img {
        max-width: 420px;
        max-height: 260px;
    }

    .cta-banner--media {
        padding-top: 56px;
        padding-bottom: 56px;
    }
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--gris);
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--rose);
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--bleu);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
}

.faq-answer section {
    padding: 8px 24px 24px;
}

.faq-answer h2,
.faq-answer h3,
.faq-answer h4 {
    color: var(--gris);
    margin: 0 0 0.5em;
    font-weight: 600;
    line-height: 1.35;
}

.faq-answer h2 { font-size: 1.25rem; margin-top: 0.25em; }
.faq-answer h3 { font-size: 1.125rem; margin-top: 1.25em; }
.faq-answer h3:first-child { margin-top: 0; }
.faq-answer h4 { font-size: 1rem; margin-top: 1em; }

.faq-answer p {
    margin: 0 0 1em;
    padding: 0;
    color: var(--gris);
    line-height: 1.7;
    font-size: 15px;
}

.faq-answer ul {
    margin: 0 0 1em 1.25em;
    padding: 0;
}

.faq-answer li {
    margin-bottom: 0.35em;
    line-height: 1.6;
    color: var(--gris);
}

.faq-answer p:last-child,
.faq-answer ul:last-child {
    margin-bottom: 0;
}

.link-more {
    display: inline-block;
    margin: 1em 0 0;
    padding: 0;
    color: var(--bleu);
    font-weight: 600;
}

/* Permits section */
.permits-section {
    padding: 80px 24px;
}

.permits-section h2 {
    text-align: center;
    font-size: 32px;
    color: var(--gris);
    margin-bottom: 48px;
}

.permits-grid {
    display: grid;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .permits-grid {
        /* Petits écrans : 2 colonnes */
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .permits-grid {
        /* Écrans moyens et grands : 3 colonnes */
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.permit-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.permit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.permit-card i {
    font-size: 48px;
    color: var(--bleu);
    margin-bottom: 16px;
}

.permit-card h3 {
    font-size: 18px;
    color: var(--gris);
    margin-bottom: 8px;
}

.permit-card p {
    font-size: 14px;
    color: #888;
}

/* Footer */
.footer-wave-top {
    background:transparent url('/assets/images/footer_top.png') center bottom no-repeat;
    background-size:contain;
    height:200px;
    margin-bottom: 0;
    display: block;
}

.site-footer {
    background:var(--bleu) url('/assets/images/footer_bottom.png') center bottom no-repeat;
    background-size:contain;
    color: white;
    position: relative;
    margin-top: 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    opacity: 0.9;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: white;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-col a:hover {
    opacity: 1;
}

.footer-col .footer-subtitle {
    font-weight: 600;
    margin-top: 16px;
    opacity: 1;
}

.partner-links a {
    font-weight: 600;
}





/* Desktop */
@media (min-width: 768px) {
    .main-nav {
        display: flex;
    }
    
    .powered-by {
        display: flex;
    }
    
    .burger-menu {
        display: none;
    }
    
    .search-columns {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-columns {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* Mobile / smartphone : scroll horizontal UNIQUEMENT dans le wrapper (pas de débord sur toute la page) */
@media (max-width: 768px) {
    .map-section {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 44px;
        /* Empêche la carte large d’élargir le document → plus de « marge » fantôme à droite */
        overflow-x: hidden;
    }

    .map-section .container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
        align-items: center;
    }

    /* Boîte fixée à la largeur écran : le dépassement est scrollé à l’intérieur de .francemap-scroll */
    #francemap {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .francemap-scroll {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        /* Pas de padding-right ici : ça gonflait la largeur du flux et décalait tout le site */
        padding-bottom: 12px;
    }

    #francemap svg,
    .francemap-scroll svg {
        min-width: 600px;
        max-width: none;
        width: auto;
        height: auto;
        display: block;
        /* Air après la carte au bout du scroll, sans élargir le conteneur parent */
        margin-right: 24px;
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .map-section {
        padding-bottom: 52px;
    }

    .francemap-scroll {
        padding-bottom: 14px;
    }

    .francemap-scroll svg {
        min-width: 620px;
        margin-right: 28px;
        margin-bottom: 8px;
    }
}

/* Smartphone : titre plus compact + sous-titre masqué */
@media (max-width: 600px) {
    .hero-title {
        font-size: var(--text-3xl);
        line-height: 1.1;
    }

    .hero-subtitle {
        display: none;
    }
}