/* Styles non critiques */
.carousel {
    position: relative;
    overflow: hidden;
}
.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}
.carousel-item {
    min-width: 100%;
}
.carousel img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}
.carousel-controls button {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.menu-toggle {
    display: none;
}
.logo {
    height: 40px;
    margin-right: 1rem;
}
.error {
    color: red;
    font-size: 0.875rem;
    display: none;
    background: rgba(255, 0, 0, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.modal-content p {
    margin-bottom: 1rem;
}
.modal-content button {
    background: #1e3a8a;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.modal-content button:hover {
    background: #1e40af;
}
.spinner::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #1e3a8a;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}
.checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}
.checkbox-label span {
    flex-grow: 1;
}
.form-label {
    color: #1e3a8a;
    font-weight: 600;
}
.social-logo {
    width: 24px;
    height: 24px;
    margin: 0 8px;
    display: inline-block;
    transition: opacity 0.3s;
}
.social-logo:hover {
    opacity: 0.7;
}
.social-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5rem;
}
.footer-link {
    text-decoration: none;
}
.photo-preview-container {
    position: relative;
    display: inline-block;
}
.photo-preview-img {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 5px; /* Décalage interne pour la croix */
}
.photo-remove-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}
.photo-remove-btn:hover {
    background: darkred;
}
.hidden {
    display: none;
}
/* Ajout du padding-top pour les sections avec ancre */
section[id] {
    padding-top: 80px; /* Ajuster selon la hauteur réelle du header */
}
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
    }
    .nav-links {
        display: none;
    }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #1e3a8a;
        padding: 1rem;
    }
    .modal-content {
        width: 90%;
    }
    section[id] {
        padding-top: 70px; /* Ajuster pour mobile si nécessaire */
    }
}