/* === POLICE PAR DÉFAUT === */
body {
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    color: #212529;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

.themecolor {
    background-color: #C8E6C9;
}

.headerAccueil {
      padding: 2rem 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      text-align: center;
    }
    .headerAccueil_img {
      max-width: 100px;
      margin-bottom: 1rem;
    }
    .mainAccueil {
      max-width: 800px;
      margin: 2rem auto;
      padding: 2rem;
      background-color: white;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      border-radius: 10px;
    }

/* === TEXTE === */
.text-muted { color: #777; }
.text-primary { color: #C8E6C9; }

a {
    color: #C8E6C9;
    text-decoration: none;
}
a:hover, a:focus, a:active {
    color: #C8E6C9;
    text-decoration: underline;
}

/* === EN-TÊTES === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin: 0.5rem 0;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; padding-left: 20px; }
h3 { font-size: 1.2rem; padding-left: 0; }
h4 { font-size: 1rem; font-style: italic; }

/* === NAVBAR MODERNE === */
.navbar {
    background-color: #1c1c1c;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}
.navbar .navbar-brand {
    margin-right: 2rem;
    color: #C8E6C9;
    font-weight: 600;
    text-decoration: none;
}
.navbar .navbar-brand:hover {
    color: #C8E6C9;
}
.navbar .nav-link {
    color: #ccc;
    padding: 8px 12px;
    transition: color 0.3s ease;
    text-transform: none !important;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #C8E6C9;
}
.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color: #C8E6C9;
}

/* === LOGOS === */
.logo-desktop {
    height: 32px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}
.logo-mobile {
    height: 28px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}
@media (max-width: 400px) {
    .logo-mobile { height: 24px; }
}

/* === MODAL === */
.modal-content {
    background-color: white !important;
    z-index: 1055 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
.modal-backdrop.show {
    z-index: 1040 !important;
}

/* === BOUTONS === */
.btn-primary {
    background-color: #C8E6C9;
    border-color: #C8E6C9;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}
.btn-primary:hover {
    background-color: #C8E6C9;
    border-color: #C8E6C9;
    color: #fff;
}
.btn-xl {
    padding: 20px 40px;
    border-radius: 3px;
    font-size: 18px;
}

/* === UTILITAIRES === */
.justifie { text-align: justify; }
.img-centered {
    display: block;
    margin: 0 auto;
}
.zoomable {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}
.zoomable.zoomed {
    transform: scale(2);
    cursor: zoom-out;
    z-index: 10;
    position: relative;
}
table {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
}
table th, table td {
    border: 1px solid #444;
    padding: 8px;
    text-align: center;
}

/* === PIED DE PAGE === */
footer {
    padding: 20px 0;
    text-align: center;
    background-color: #2b3036;
    color: #aaa;
}
footer span.copyright {
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

/* === TRANSITIONS === */
a, .btn {
    transition: all 0.3s ease;
}
nav .navbar-nav .nav-link,
.dropdown-item {
    text-transform: none !important;
}
.apropos {
    text-align: center;
}

/* === FORMULAIRES === */
form {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}
.form-outline, .form-group, .mb-3 {
    margin-bottom: 1rem;
}
form label {
    font-weight: 500;
    margin-bottom: 0.4rem;
    display: inline-block;
}
form input, form textarea, form select {
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 100%;
}
@media (max-width: 576px) {
    form button[type="submit"] {
        display: block;
        width: 100% !important;
    }
}

/* === NAVBAR FIXES === */
.navbar, .navbar-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.navbar .nav-link { margin-right: 0.5rem; }
.navbar .nav-link.active::after { display: none; }
.navbar .navbar-brand {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

/* === AJUSTEMENTS POUR MOBILE === */
@media (max-width: 991.98px) {
    .navbar {
        position: relative;
        min-height: 56px;
        padding: 0;
    }

    .navbar .container-fluid {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative;
        height: 56px;
    }

    .navbar-toggler {
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
        z-index: 1031;
    }

    .navbar-brand {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1030;
        padding: 0;
        margin: 0;
    }

    .logo-mobile {
        display: block;
        height: 32px;
        margin: 0 auto;
        vertical-align: middle;
    }
}
