/* French (left-to-right) pages only - loaded by fr/*.html after the shared stylesheets. */

/* French menu labels are longer than the Arabic ones: keep each label on one line and
   tighten spacing so the menu and the round buttons fit on laptop screens. */
@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link {
        white-space: nowrap;
        margin-left: 0;
        margin-right: 16px;
        font-size: 16px;
    }
    .navbar-light .navbar-nav .nav-link.dropdown-toggle::after {
        margin-left: 6px;
    }
}

@media (min-width: 1400px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 24px;
        font-size: 18px;
    }
}

/* Small laptops / landscape tablets (992-1199px): even tighter */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 10px;
        font-size: 14px;
    }
    .navbar .navbar-brand.ms-lg-5 {
        margin-left: 1rem !important;
    }
    .navbar > .d-flex.ms-lg-5 {
        margin-left: 1rem !important;
    }
}

/* Desktop: menu right after the logo on the left (mirror of the Arabic site);
   the round buttons and the language switch stay at the far right. */
@media (min-width: 992px) {
    .navbar .navbar-collapse .navbar-nav.ms-auto {
        margin-left: 1.5rem !important;
        margin-right: auto !important;
    }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar .navbar-collapse .navbar-nav.ms-auto {
        margin-left: .25rem !important;
    }
}

/* Map legend: the colour dot sits on the left of the text (Arabic: on the right) */
.legend-color-indicator { margin-left: 0; margin-right: 1rem; }

/* About page - "Nos réalisations": cards of equal height, "%" next to the number */
.stats-section .row > [class*="col-"] { display: flex; }
.stats-section .stats-card { flex: 1 1 0; min-width: 0; padding: 40px 16px; display: flex; flex-direction: column; justify-content: flex-start; }
.stats-section .stats-card > .stats-number { margin-bottom: 10px; line-height: 1.2; }
.stats-section .stats-number-row .stats-number { line-height: 1.2; }
.stats-unit {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: #1f9a8a;
}
[data-theme="dark"] .stats-unit { color: #4fd1b5; }

/* Contact page - "Coordonnées": blue line between the icon and the text (left side), like the Arabic page mirrored */
.contact-info-item { border-right: none; border-left: 3px solid #2a5298; padding-right: 0; padding-left: 15px; }
@media (max-width: 768px) {
    .contact-info-item { border-left: none; padding-left: 0; }
}

/* Home page - district buttons under the map: French names are longer than the Arabic ones.
   Icon above the name, smaller side padding, all buttons the same height. */
.district-buttons .row > [class*="col"] { display: flex; }
.district-buttons .btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 2px;
    font-size: 0.8rem;
    white-space: nowrap;
    line-height: 1.2;
}
.district-buttons .btn i { margin: 0 !important; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .district-buttons .btn { font-size: 0.72rem; }
}
