/* ======= POLICE GLOBALE ======= */
body, input, select, button, textarea {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

h2, h3, h4 {
    font-weight: 600;
    color: #1a1a1a;
}

/* ======= FORMULAIRES ======= */
.styled-form {
    text-align: left;
}
.form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}
.form-container h2,
.form-container h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}
.form-container .highlight {
    color: #e63946;
}
.form-subtitle,
.intro-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
}
.form-group {
    margin-bottom: 18px;
    text-align: left;
    display: flex;
    flex-direction: column;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}
.form-group input,
.styled-form input,
.styled-form select,
.styled-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.3s ease;
}
.form-group input:focus,
.styled-form input:focus,
.styled-form select:focus,
.styled-form textarea:focus {
    border-color: #e63946;
    outline: none;
    box-shadow: 0 0 5px rgba(230,57,70,0.3);
}
.alert,
.alert-error {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}
.alert.success {
    background-color: #d4edda;
    color: #155724;
}
.alert.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* ======= BOUTONS ======= */
button,
.btn,
.btn-primary,
.btn-submit {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    color: #fff;
    background: #e63946;
    transition: background 0.3s ease;
}
.btn:hover,
.btn-primary:hover,
.btn-submit:hover {
    background: #c5303c;
}
.btn-secondary {
    background: #555;
}
.btn-secondary:hover {
    background: #333;
}

/* ======= RECHERCHE & FILTRES ======= */
.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}
.search-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.search-form input[type="text"],
.search-form select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}
.search-form button {
    grid-column: span 2;
}
@media (max-width: 768px) {
    .search-form {
        grid-template-columns: 1fr;
    }
}

/* ======= GRILLE RESULTATS ======= */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* ======= CARTE AUTO-ECOLE ======= */
.auto-ecole-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.3s;
    width: 250px;
    height: 300px;
    overflow: hidden;
    text-align: center;
}
.auto-ecole-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.auto-ecole-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 5px;
}
.auto-ecole-card h4 {
    font-size: 16px;
    margin: 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.auto-ecole-card p {
    margin: 2px 0;
    font-size: 12px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.auto-ecole-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* ======= MENU HORIZONTAL ======= */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-nav .logo a {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3em;
    color: #e63946;
}
#menu-toggle {
    display: none;
}
.menu-links {
    display: flex;
    gap: 25px;
}
.menu-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 5px;
    transition: 0.3s;
    letter-spacing: 0.5px;
}
.menu-links a:hover,
.menu-links a.active {
    background-color: #e63946;
    color: #fff;
    font-weight: 600;
}
.hamburger {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
}
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .menu-links {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
        display: none;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    #menu-toggle:checked + .hamburger + .menu-links {
        display: flex;
    }
}

/* ======= NEWSLETTER ======= */
.newsletter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}
.newsletter-box {
    max-width: 600px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}
.newsletter-box h2 {
    color: #e63946;
    margin-bottom: 15px;
}
.newsletter-box p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1rem;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.newsletter-form input[type="email"] {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
}
.btn-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* ======= CONNEXION / INSCRIPTION ======= */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}
.auth-container h2 {
    margin-bottom: 20px;
    color: #e63946;
}
.auth-form .form-group {
    text-align: left;
    margin-bottom: 15px;
}
.auth-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
.auth-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: 0.2s;
}
.auth-form input:focus {
    border-color: #e63946;
    outline: none;
    box-shadow: 0 0 5px rgba(230,57,70,0.3);
}
.auth-footer {
    margin-top: 15px;
    font-size: 14px;
}
.auth-footer a {
    color: #e63946;
    text-decoration: none;
    font-weight: bold;
}
.auth-footer a:hover {
    text-decoration: underline;
}

/* ======= FIELDSETS ======= */
fieldset {
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}
legend {
    font-weight: bold;
    padding: 0 10px;
    color: #2c3e50;
}
.checkbox-group label {
    display: block;
    margin-bottom: 8px;
}

/* ======= FOOTER ======= */
.site-footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 10px;
    margin-top: 40px;
    border-top: 3px solid #e63946;
    font-size: 14px;
}
.site-footer p {
    margin: 0;
}

/* ======= CONFIRMATION ======= */
.confirmation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
}
.confirmation-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    text-align: center;
    max-width: 450px;
}
.confirmation-box h2 {
    color: #e63946;
    margin-bottom: 15px;
    font-size: 24px;
}
.confirmation-box p {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}
.confirmation-box .btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background-color: #e63946;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}
.confirmation-box .btn-primary:hover {
    background-color: #c32f3b;
}

/* ======= CONTACT ======= */
.contact-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}
.contact-container h2 {
    text-align: center;
    color: #e63946;
    margin-bottom: 20px;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}
.contact-form label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}
.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #e63946;
    outline: none;
    box-shadow: 0 0 5px rgba(230, 57, 70,0.3);
}
.contact-form button {
    margin-top: 20px;
    width: 100%;
}
