* {
    font-family: "Outfit", sans-serif;
}

.fdf-signalement-form h1 {
    font-weight: 800;
    text-transform: uppercase;
}

.fdf-signalement-form h2 {
    font-weight: 600;
}

.fdf-signalement-form p, .fdf-signalement-form span, .fdf-signalement-form a {
    font-weight: 400;
}

.fdf-signalement-form {
    max-width: 800px;
    margin: 2em auto;
    padding: 2em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fdf-form-group {
    margin: 1em 0;
    padding: 0.5em;
    font-size: 1em;
    font-weight: 400;
}

@media (max-width: 768px) {
    .fdf-form-group {
        margin: 0.5em 0;
        padding: 0.5em 0;
        font-size: 1em;
    }
}


.fdf-form-label-required::after {
    content: "*";
    color: #D00000;
    font-size: 1em;
    position: relative;
    bottom: 5px;
    left: 5px;
}

@media (max-width: 768px) {
    #fdf_signal_localisation, #fdf-carte {
        height: 60vh !important;
        min-height: 350px !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        width: 100vw !important;
        position: relative;
        left: 50%;
        right: 50%;
    }
}

.fdf-form-group-required::after {
    content: "* : information obligatoire";
    color: #D00000;
    font-size: 0.8em;
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-weight: 400;
    font-family: "Outfit", sans-serif;
    font-style: italic;
    line-height: 1;
    pointer-events: none;
}

.fdf-form-group-required.no-obligatoire-indicator::after {
    display: none !important;
}

.fdf-form-label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    font-size: 1.2em;
    color: #D00000;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .fdf-form-label {
        font-size: 1.2em !important;
    }
}

.fdf-form-group input[type="text"],
.fdf-form-group input[type="email"],
.fdf-form-group input[type="tel"],
.fdf-form-group textarea {
    font-size: 1em;
    font-weight: 400;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.fdf-form-group textarea {
    min-height: 100px;
    resize: vertical;
    font-size: 1.2em;
    font-weight: 400;
    width: 100%;
}

.fdf-form-group .fdf-submit {
    background: #D00000;
    color: #fff;
    padding: 1em 2em;
    border: none;
    border-radius: 30px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}   

.fdf-form-group .fdf-submit:hover {
    background: #b30000;
}

.fdf-form-group .fdf-submit:disabled {
    background: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.7;
}

.fdf-map-container {
    height: 400px;
    margin-bottom: 1em;
    border: 1px solid #ddd;
    border-radius: 15px;
    overflow: hidden;
}

.fdf-photo-preview {
    display: none;
    margin-top: 1em;
}

.fdf-photo-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.fdf-message {
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.fdf-message.fdf-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    color: #155724;
}

.fdf-message.fdf-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.fdf-success-content {
    text-align: center;
}

.fdf-success-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.fdf-success-content h3 {
    color: #155724;
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: bold;
}

.fdf-confirmation {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 16px;
    line-height: 1.5;
}

.fdf-confirmation a {
    color: #155724;
    font-weight: bold;
    text-decoration: none;
}

.fdf-confirmation a:hover {
    text-decoration: underline;
}

.fdf-success-actions {
    margin-top: 20px;
}

.fdf-btn-reset {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fdf-btn-reset:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.fdf-error-icon {
    font-size: 24px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.fdf-error-text {
    display: inline-block;
    vertical-align: middle;
    line-height: 1.5;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fdf-error-message {
    color: #D00000 !important;
    font-size: 0.9em !important;
    margin-top: 8px !important;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.fdf-error-message::before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 16px;
}

.fdf-form-group-required.fdf-error,
.fdf-field-checkbox.fdf-error {
    border-left: 4px solid #D00000;
    padding-left: 15px;
    background: rgba(218, 0, 0, 0.05);
    border-radius: 4px;
    margin: 10px 0;
}

.fdf-input.fdf-error,
.fdf-error textarea {
    border: 2px solid #D00000 !important;
    background: rgba(218, 0, 0, 0.05);
}

.fdf-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}


.fdf-loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #D00000;
    border-radius: 50%;
    animation: fdf-spin 1s linear infinite;
}

@keyframes fdf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fdf-submit-button:disabled {
    background: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .fdf-message {
        margin: 15px 0;
        padding: 15px;
    }
    
    .fdf-success-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .fdf-success-content h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .fdf-confirmation {
        padding: 12px;
        font-size: 14px;
    }
    
    .fdf-btn-reset {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.fdf-submit-button {
    background: #D00000;
    color: #fff;
    padding: 1em 2em;
    border: none;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

@media (max-width: 768px) {
    .fdf-submit-button {
        font-size: 1.2em;
    }
}

.fdf-submit-button:hover {
    background: #b30000;
}

.fdf-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.fdf-submit-button.disabled {
    background: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
    color: #fff !important;
}

.fdf-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr !important;
    gap: 1em;
    margin-top: 1.5em;
}

@media (max-width: 768px) {
    .fdf-radio-group {
        grid-template-columns: 1fr;
        gap: 0.5em;
        margin-top: 0.5em;
    }
}

.fdf-form-group-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 1.5em;
}

.fdf-form-group-2 .fdf-form-label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.fdf-form-group-2 input {
    width: 100%;
    padding: 1.2em;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .fdf-form-group-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.fdf-form-label-2 {
    font-size: 1em;
    font-weight: 400;
}

@media (max-width: 768px) {
    .fdf-radio-label-oui, .fdf-radio-label-non, .fdf-radio-label-depart, .fdf-radio-label-fumee {
        font-size: 1.2em;
    }

    .fdf-radio input[type="radio"] {
        margin-right: 0.5em;
    }
}

#fdf_already_reported_oui, #fdf_already_reported_non, #fdf_signal_type_depart, #fdf_signal_type_fumee {
    display: none;
}

.fdf-radio-label-oui, .fdf-radio-label-non, .fdf-radio-label-depart, .fdf-radio-label-fumee {
    font-size: 1em;
    font-weight: 500;
    font-family: "Outfit", sans-serif;
    border: 1px dashed #333;
    padding: 0.5em 0.5em;
    border-radius: 30px;
    margin-bottom: 0.2em;
    display: inline-block;
    width: 100%;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 40px;
    cursor: pointer;
}@media (max-width: 768px) {
    .fdf-radio-label-oui, .fdf-radio-label-non, .fdf-radio-label-depart, .fdf-radio-label-fumee {
        font-size: 1em !important;
        min-height: 20px !important;
        padding: 0.5em 0.5em !important;
        margin-bottom: 0.1em !important;
        border-radius: 10px !important;
        border: 1px dashed #333 !important;
        box-shadow: none !important;
        font-weight: 600 !important;
        font-family: "Outfit", sans-serif !important;
        line-height: 1 !important;
        text-align: left !important;
    }
}

.fdf-radio-label-oui {
    background-color: #b1d9bc;
    border: 1px solid #b1d9bc;
}

.fdf-radio-label-non {
    background-color: #f0d5d5;
    border: 1px solid #f0d5d5;
}

.fdf-radio-label-oui:hover, .fdf-radio-label-non:hover {
    border: 1px solid #155724;
    background-color: #155724;
    color: #fff;
}

.fdf-radio-label-non:hover {
    border: 1px solid #D00000;
    background-color: #D00000;
    color: #fff;
}

.fdf-radio-label-depart:hover {
    border: 1px solid #333;
    background-color: #333;
    color: #fff;
}

.fdf-radio-label-fumee:hover {
    border: 1px solid #666;
    background-color: #666;
    color: #fff;
}

.fdf-radio-label-depart:selected {
    border: 1px solid #333;
    background-color: #333;
    color: #fff;
}

.fdf-radio-label-fumee:selected {
    border: 1px solid #666;
    background-color: #666;
    color: #fff;
}

@media (max-width: 768px) {
    .fdf-radio-label-oui, .fdf-radio-label-non, .fdf-radio-label-depart, .fdf-radio-label-fumee {
        font-size: 1.2em;
    }
}

.fdf-radio input[type="radio"] {
    margin-right: 0.5em;
}

.fdf-photo-credit {
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid #eee;
}

.fdf-photo-credit label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.fdf-photo-credit input {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.fdf-address-display {
    font-size: 1em;
    font-weight: 500;
    color: #333;
    font-style: italic;
}

.fdf-media-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.fdf-media-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.fdf-media-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.fdf-media-item .fdf-media-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #D00000;
}

.fdf-media-item .fdf-media-remove:hover {
    background: #fff;
}

/* ===== STYLES POUR LES MESSAGES D'ERREUR DE SÉCURITÉ DES FICHIERS ===== */

.fdf-media-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.1);
    animation: fadeInUp 0.5s ease-out;
}

.fdf-media-error .fdf-error-icon {
    font-size: 24px;
    color: #D00000;
    flex-shrink: 0;
}

.fdf-media-error .fdf-error-message {
    color: #721c24;
    font-weight: 600;
    font-size: 1em;
    line-height: 1.4;
    flex: 1;
}

.fdf-media-name {
    color: #495057;
    font-size: 0.9em;
    font-style: italic;
    margin-top: 5px;
    word-break: break-all;
}

/* Styles pour les conteneurs de prévisualisation avec erreur */
.fdf-media-preview-item.error {
    border: 2px solid #D00000;
    background: rgba(248, 215, 218, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
}

/* Animation pour les messages d'erreur */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive pour les messages d'erreur */
@media (max-width: 768px) {
    .fdf-media-error {
        padding: 12px;
        margin: 8px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .fdf-media-error .fdf-error-icon {
        font-size: 20px;
        align-self: center;
    }
    
    .fdf-media-error .fdf-error-message {
        font-size: 0.9em;
        text-align: center;
    }
    
    .fdf-media-name {
        font-size: 0.8em;
        text-align: center;
        width: 100%;
    }
}

.fdf-input {
    width: 100%;
    font-size: 1.2em;
    font-weight: 400;
    transition: all 0.3s ease;
}

.fdf-input-file {
    font-size: 0.8em !important;
    font-weight: 400;
    transition: all 0.3s ease;
    font-family: "Outfit", sans-serif;
    font-style: italic;
    margin-top: 1em;
}

.fdf-input-file[type="file"]::file-selector-button {
    background: #D00000;
    color: #fff;
    padding: 1em 2em;
    border: none;
    border-radius: 30px;
    font-size: 1em !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fdf-input::placeholder {
    color: #666;
    font-weight: 400;
}

.fdf-input:focus {
    outline: none;
    border-color: #D00000;
    box-shadow: 0 0 0 2px rgba(218, 0, 0, 0.1);
}

.fdf-input:hover {
    border-color: #999;
}

.fdf-text-intro {
    font-size: 1em;
    font-weight: 500;
    margin-top: 1em;
}

.fdf-text-intro p {
    margin: 10px 0;
    line-height: 1.6;
    font-size: 1em;
    font-weight: 400;
}

.fdf-text-intro p:first-child {
    margin-top: 0;
    font-weight: 600;
    font-size: 1.2em;
}
@media (max-width: 768px) {
    .fdf-text-intro p {
        font-size: 1.1em;
    }

    .fdf-text-intro p:first-child {
        font-size: 1.1em;
    }

    .fdf-text-intro {
        margin-bottom: 0.5em;
        padding: 0.5em;

    }
}

.fdf-text-intro p:last-child {
    margin-bottom: 0;
}

.fdf-text-intro strong {
    font-weight: 600;
    color: #D00000;
}

.fdf-text-intro strong::before {
    content: "⚠️";
    font-size: 1.2em;
    margin-right: 0.5em;
}

.fdf-text-intro i {
    color: #666;
    font-family: "Outfit", sans-serif;
}

.fdf-text-info {
    font-size: 0.8em;
    color: #666;
    line-height: 1.5;
    display: flex;
}

.fdf-text-footer {
    font-size: 0.8em;
    color: #666;
    line-height: 1.5;
}

.fdf-text-info, .fdf-text-footer p {
    margin: 5px 0;
}



.fdf-text-info p:first-child {
    margin-top: 0;
}

.fdf-text-info p:last-child {
    margin-bottom: 0;
}

.fdf-field-checkbox {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .fdf-field-checkbox {
        margin: 0.5em 0;
        padding: 0.5em;
    }
}

.fdf-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.fdf-field-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #D00000;
    flex-shrink: 0;
}

.fdf-field-checkbox label {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    cursor: pointer;
    flex: 1;
}

.fdf-field-checkbox .fdf-text-info {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
}

.fdf-field-checkbox .fdf-text-info p {
    margin: 5px 0;
    font-size: 0.8em;
    color: #666;
    line-height: 1.5;
}

.fdf-field-checkbox .fdf-text-info p:first-child {
    margin-top: 0;
}

.fdf-field-checkbox .fdf-text-info p:last-child {
    margin-bottom: 0;
}


/* Styles pour le bouton Charger plus */
.fdf-load-more-container {
    text-align: center;
    margin: 20px 0;
}

.fdf-load-more-button {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 16px;
    transition: all 0.2s ease-in-out;
}

.fdf-load-more-button:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.fdf-load-more-button:disabled {
    background-color: #e9ecef;
    border-color: #ced4da;
    cursor: not-allowed;
    opacity: 0.65;
}

/* ===== INDICATEUR DE PROGRESSION MODERNE ===== */
.fdf-step {
    display: none;
}

.fdf-step-active {
    display: block;
}

.fdf-step-header h3 {
    display: none;
}

.fdf-step-header {
    text-align: center;
    position: relative;
}



/* Indicateur de progression moderne (étapes) */
.fdf-step-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2em auto 1em;
    position: relative;
    padding: 0 2em;
}

/* Ligne de progression */
.fdf-step-progress::before {
    content: "";
    position: absolute;
    top: 25%;
    left: 25%;
    right: 25%;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
    border-radius: 2px;
    transition: all 0.5s ease;
}

.fdf-step-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.fdf-step-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 15px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(135deg, #f5f5f5, #e9e9e9);
    color: #999;
    border: 4px solid #e0e0e0;
    font-family: "Outfit", sans-serif;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fdf-step-circle.completed {
    background: linear-gradient(135deg, #D00000, #b30000);
    color: white;
    border: 4px solid #D00000;
    box-shadow: 0 6px 20px rgba(218, 0, 0, 0.3);
    transform: scale(1.05);
}

.fdf-step-circle.active {
    background: linear-gradient(135deg, #D00000, #b30000);
    color: white;
    border: 5px solid #D00000;
    transform: scale(1.15);
    box-shadow: 
        0 0 0 8px rgba(218, 0, 0, 0.1),
        0 8px 25px rgba(218, 0, 0, 0.4);
    animation: pulse-active 2s infinite;
}

.fdf-step-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    text-align: center;
    font-family: "Outfit", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    line-height: 1.3;
    max-width: 80px;
}

/* Labels pour étapes complétées et actives */
.fdf-step-circle.completed + .fdf-step-label,
.fdf-step-circle.active + .fdf-step-label {
    color: #D00000;
    font-weight: 700;
}

/* Animation pour l'étape active */
@keyframes pulse-active {
    0% {
        box-shadow: 
            0 0 0 8px rgba(218, 0, 0, 0.1),
            0 8px 25px rgba(218, 0, 0, 0.4);
    }
    50% {
        box-shadow: 
            0 0 0 12px rgba(218, 0, 0, 0.05),
            0 8px 25px rgba(218, 0, 0, 0.4);
    }
    100% {
        box-shadow: 
            0 0 0 8px rgba(218, 0, 0, 0.1),
            0 8px 25px rgba(218, 0, 0, 0.4);
    }
}

/* Ligne de progression dynamique */
.fdf-step-1 .fdf-step-progress::before {
    background: linear-gradient(to right, #e0e0e0 0%, #e0e0e0 100%);
}

.fdf-step-2 .fdf-step-progress::before {
    background: linear-gradient(to right, #D00000 0%, #D00000 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .fdf-step-progress {
        max-width: 450px;
        margin: 0.5em auto 1em;
        padding: 0 1em;
    }

    .fdf-step-header p {
        margin-top: 0;
        font-size: 0.8em;
    }
    .fdf-carto-container {
        margin: 0;
        min-height: 300px;
    }

    .fdf-step-header {
        margin-top: 0;
        margin-bottom: 0;
    }

    .fdf-step-circle {
        width: 45px;
        height: 45px;
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .fdf-step-circle.active {
        transform: scale(1.1);
    }
    
    .fdf-step-label {
        font-size: 11px;
        max-width: 60px;
    }
    
    .fdf-step-progress::before {
        left: 25%;
        right: 25%;
    }
}

/* Autres styles d'étapes */
.fdf-step-header p {
    font-size: 1.2em;
    font-weight: 400;
    margin-top: 2em;
    text-align: left;
}


.fdf-step-navigation {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #eee;
    text-align: right;
    padding-right: 1em;
    margin-bottom: 2em;
}

.fdf-step-navigation button {
    margin-left: 1em;
}

.fdf-btn-prev {
    background: #6c757d !important;
    color: #fff;
    padding: 1em 2em;
    border: none !important;
    border-radius: 30px;
    font-size: 1.2em;
    font-family: "Outfit", sans-serif;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: none !important;
}

.fdf-btn-prev[type="button"],
.fdf-btn-next[type="button"],
.fdf-submit-button[type="button"] {
    box-shadow: none !important;
    border: none !important;
}

.fdf-btn-next {
    background: #D00000;
    color: #fff;
    font-family: "Outfit", sans-serif;
    padding: 1em 2em;
    border: none;
    border-radius: 30px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.fdf-btn-next:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.fdf-already-reported-message {
    background: #d4edda;
    color: #155724;
    padding: 1em;
    border-radius: 4px;
    margin-top: 1em;
}

.fdf-carto-container {
    margin: 1.5em 0;
}

.fdf-step-question {
    margin: 2em 0;
    padding: 1em;
    border-radius: 4px;
    font-size: 1.2em;
    font-weight: 400;
}

@media (max-width: 768px) {
    .fdf-step-question {
        margin: 0.5em 0;
        padding: 0.5em;
    }
}

.fdf-step-question p {
    font-size: 1em;
    font-weight: 400;
}

.fdf-map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 4px;
}

/* ===== STYLES POUR LES ÉTATS SÉLECTIONNÉS ===== */

/* Styles pour les boutons radio quand ils sont sélectionnés */
.fdf-radio-label-oui:has(input[type="radio"]:checked),
.fdf-radio-label-oui.selected {
    border: 1px solid #155724;
    background-color: #155724;
    color: #fff;
    opacity: 0.8;
}

.fdf-radio-label-non:has(input[type="radio"]:checked),
.fdf-radio-label-non.selected {
    border: 1px solid #D00000;
    background-color: #D00000;
    color: #fff;
    opacity: 0.8;
}

.fdf-radio-label-depart:has(input[type="radio"]:checked),
.fdf-radio-label-depart.selected {
    border: 1px solid #333;
    background-color: #333;
    color: #fff;
    opacity: 0.8;
}

.fdf-radio-label-fumee:has(input[type="radio"]:checked),
.fdf-radio-label-fumee.selected {
    border: 1px solid #666;
    background-color: #666;
    color: #fff;
    opacity: 0.8;
}

/* Styles de compatibilité sans :has() - seront appliqués via JavaScript */
.fdf-radio-label-oui.radio-checked {
    border: 1px solid #155724 !important;
    background-color: #155724 !important;
    color: #fff !important;
    opacity: 0.8 !important;
}

.fdf-radio-label-non.radio-checked {
    border: 1px solid #D00000 !important;
    background-color: #D00000 !important;
    color: #fff !important;
    opacity: 0.8 !important;
}

.fdf-radio-label-depart.radio-checked {
    border: 1px solid #333 !important;
    background-color: #333 !important;
    color: #fff !important;
    opacity: 0.8 !important;
}

.fdf-radio-label-fumee.radio-checked {
    border: 1px solid #666 !important;
    background-color: #666 !important;
    color: #fff !important;
    opacity: 0.8 !important;
}

/* Avertissement de doublon amélioré */
.fdf-duplicate-warning {
    margin: 15px 0;
    padding: 0;
    display: none;
    animation: slideDown 0.5s ease-out;
}

.fdf-warning-content {
    padding: 10px;
    text-align: center;
}

.fdf-warning-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.fdf-warning-text {
    font-size: 1em;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Liste des signalements récents */
.fdf-signalements-list {
    margin: 20px 0;
    text-align: left;
}

.fdf-signalements-list h4 {
    color: #D00000;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.fdf-loading-signalements {
    text-align: center;
    color: #856404;
    font-style: italic;
    padding: 20px;
}

.fdf-no-signalements {
    text-align: center;
    color: #856404;
    font-style: italic;
    padding: 20px;
}

.fdf-signalements-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.fdf-signalement-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

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

.fdf-signalement-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.fdf-signalement-icon {
    font-size: 20px;
    margin-right: 10px;
}

.fdf-signalement-title {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.fdf-signalement-distance {
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.fdf-signalement-info {
    margin-bottom: 15px;
}

.fdf-signalement-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.fdf-signalement-description {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
}

.fdf-signalement-statut {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Statuts des signalements */
.fdf-signalement-item.statut-valide .fdf-signalement-statut {
    background: #d4edda;
    color: #155724;
}

.fdf-signalement-item.statut-declare .fdf-signalement-statut {
    background: #fff3cd;
    color: #856404;
}

.fdf-signalement-item.statut-en_cours .fdf-signalement-statut {
    background: #d1ecf1;
    color: #0c5460;
}

.fdf-signalement-item.statut-eteint .fdf-signalement-statut {
    background: #e2e3e5;
    color: #495057;
}

.fdf-signalement-actions {
    text-align: center;
}

.fdf-btn-view-signalement {
    background: #D00000;
    color: white !important;
    text-decoration: none;
    padding: 1em 2em;
    border-radius: 10px;
    font-size: 1em !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
    display: inline-block;
}

.fdf-btn-view-signalement:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.fdf-warning-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.fdf-btn-validate-signalement {
    background: #D00000;
    color: white;
    border: none !important;
    padding: 1em 2em;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.fdf-btn-validate-signalement:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

/* Formulaire bloqué - champs spécifiques */
.fdf-form-blocked {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fdf-form-blocked::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
    pointer-events: none;
    border-radius: 4px;
}

.fdf-form-blocked input,
.fdf-form-blocked textarea,
.fdf-form-blocked button {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.fdf-form-blocked .fdf-form-label::after {
    content: " (Désactivé - Doublon détecté)";
    color: #dc3545;
    font-size: 0.8em;
    font-weight: normal;
    font-style: italic;
    display: block;
    margin-top: 4px;
}

.fdf-step-2 .fdf-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: #6c757d !important;
}

/* Styles spécifiques pour les champs bloqués en cas de doublon */
.fdf-form-group.fdf-form-blocked .fdf-form-label::after {
    content: " (Désactivé - Doublon détecté)";
    color: #dc3545;
    font-size: 0.8em;
    font-weight: normal;
    font-style: italic;
    display: block;
    margin-top: 4px;
}

.fdf-commune-error {
    font-size: 1.2em !important;
    text-align: center;
  }

/* Masque complètement les champs bloqués */
.fdf-form-group.fdf-form-blocked {
    display: none !important;
}

/* Responsive pour les signalements */
@media (max-width: 768px) {
    .fdf-warning-content {
        padding: 15px;
    }
    
    .fdf-signalements-grid {
        max-height: 300px;
        padding: 5px;
    }
    
    .fdf-signalement-item {
        padding: 12px;
    }
    
    .fdf-signalement-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .fdf-signalement-distance {
        align-self: flex-end;
    }
    
    .fdf-btn-validate-signalement {
        min-width: auto;
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .fdf-signalements-list h4 {
        font-size: 16px;
    }
}

/* Styles pour les boutons de modération dans la liste des signalements */
.fdf-signalement-moderation {
    text-align: center;
    margin-top: 10px;
}

.fdf-signalement-moderation .fdf-moderation-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

.fdf-signalement-moderation .fdf-confirm,
.fdf-signalement-moderation .fdf-false-alert {
    border: none;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 120px;
}


.fdf-signalement-moderation .fdf-thank-you {
    color: #28a745;
    font-style: italic;
    font-size: 14px;
    font-weight: 500;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#fdf-signalement-form .fdf-message.fdf-error {
    background-color: #fff5f5;
    border-color: #D00000;
    color: #D00000;
}

#fdf-signalement-form .fdf-error-icon {
    font-size: 24px;
    margin-right: 10px;
}

#fdf-signalement-form .fdf-error-text {
    font-size: 16px;
    font-weight: 500;
}

#fdf-signalement-form .fdf-error-message {
    color: #D00000;
    font-size: 0.9em;
    margin-top: 8px;
    position: relative;
    padding-left: 20px;
}

#fdf-signalement-form .fdf-error-message::before {
    content: "⚠️";
    position: absolute;
    left: 0;
    top: 0;
}

#fdf-signalement-form .fdf-form-group-required.fdf-error,
#fdf-signalement-form .fdf-field-checkbox.fdf-error {
    border-color: #D00000;
    background-color: #fff5f5;
}

#fdf-signalement-form .fdf-input.fdf-error,
#fdf-signalement-form .fdf-error textarea {
    border-color: #D00000;
    background-color: #fff5f5;
}

.fdf-signalement-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.fdf-signalement-anonyme {
    margin-bottom: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

.fdf-signalement-connexion {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1.5rem;
}

.fdf-signalement-separator {
    color: #666;
    font-size: 1.2em;
    font-weight: 600;
    padding: 0 10px;
    display: flex;
    align-items: center;
    position: relative;
    min-width: 100px;
    justify-content: center;
}

.fdf-signalement-separator::before,
.fdf-signalement-separator::after {
    content: '';
    height: 1px;
    background-color: #666;
    flex: 1;
    margin: 0 10px;
    min-width: 20px;
}

.fdf-signalement-text {
    font-size: 1.2rem;
    color: #0000ED;
    font-weight: 600;
    line-height: 1.5;
    padding-bottom: 0.8em;
    margin: 0;
}

@media (max-width: 768px) {
    .fdf-signalement-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .fdf-signalement-col {
        width: 100%;
    }
    
    .fdf-signalement-text {
        padding: 1rem;
        font-size: 1rem;
    }
}

.fdf-btn-anonyme {
    background: #D00000;
    color: white;
    border: none;
    padding: 1em 2em;
    border-radius: 30px;
    font-size: 1.2em;
    font-family: "Outfit", sans-serif;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1em;
    width: 100%;
}

.fdf-btn-anonyme:hover {
    background: #b30000;
}

@media (max-width: 768px) {
    .fdf-btn-anonyme {
        padding: 10px 20px;
        font-size: 14px;
    }
} 

.maplibregl-ctrl-geolocate {
    background-color: #fff !important;
  }

/* ===== STYLES POUR LA GÉOLOCALISATION ===== */

/* Popup de géolocalisation refusée */
.fdf-geolocation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.fdf-geolocation-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fdf-geolocation-popup-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
}

.fdf-geolocation-popup-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.fdf-geolocation-popup-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.fdf-geolocation-popup-message {
    font-size: 16px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 25px;
}

.fdf-geolocation-popup-activate,
.fdf-geolocation-popup-close {
    background-color: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin: 0 5px;
}

.fdf-geolocation-popup-close {
    background-color: #856404;
}

/* Messages d'erreur de géolocalisation bloquante */
.fdf-geolocation-required-error {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
}

.fdf-error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fdf-error-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.fdf-error-title {
    font-size: 20px;
    font-weight: bold;
    color: #856404;
    margin-bottom: 10px;
}

.fdf-error-message {
    color: #856404;
    margin-bottom: 20px;
    line-height: 1.5;
}

.fdf-error-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.fdf-error-activate {
    background-color: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.fdf-error-reload {
    background-color: #856404;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

/* Messages d'erreur de rayon de localisation */
.fdf-location-radius-error {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fdf-radius-error-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fdf-radius-error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.fdf-radius-error-message {
    font-size: 16px;
    line-height: 1.5;
    color: #856404;
    margin-bottom: 25px;
}

.fdf-radius-error-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.fdf-radius-error-activate {
    background-color: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.fdf-radius-error-close {
    background-color: #856404;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

/* Indicateur de chargement pour géolocalisation */
.fdf-geolocation-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fdf-loading-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fdf-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: fdf-spin 1s linear infinite;
    margin: 0 auto 15px;
}

.fdf-loading-text {
    color: #333;
    font-size: 16px;
}

/* Message de succès pour géolocalisation */
.fdf-geolocation-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    z-index: 10000;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== STYLES POUR LA CARTE ===== */

/* Overlay de protection mobile */
.fdf-mobile-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(2px) !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: opacity 0.3s ease !important;
}

.fdf-mobile-overlay-hiding {
    opacity: 0 !important;
    pointer-events: none !important;
}

.fdf-mobile-overlay-first-tap {
    background: rgba(218, 0, 0, 0.1) !important;
}

.fdf-mobile-overlay-first-tap .fdf-mobile-overlay-content {
    border-color: #DA0000 !important;
    box-shadow: 0 4px 20px rgba(218, 0, 0, 0.3) !important;
    transform: scale(1.05) !important;
}

.fdf-mobile-overlay-first-tap .fdf-mobile-overlay-title {
    color: #DA0000 !important;
}

.fdf-mobile-overlay-content {
    text-align: center !important;
    padding: 30px !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    border: 2px solid #DA0000 !important;
    max-width: 280px !important;
    margin: 20px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.fdf-mobile-overlay-icon {
    font-size: 48px !important;
    margin-bottom: 15px !important;
    animation: fdf-mobile-pulse 2s infinite !important;
}

@keyframes fdf-mobile-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.fdf-mobile-overlay-title {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #DA0000 !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
}

.fdf-mobile-overlay-subtitle {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.4 !important;
}

/* Contrôle de recherche sur la carte */
.fdf-search-control {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    width: 300px !important;
    max-width: calc(100vw - 20px) !important;
}

.fdf-search-box {
    position: relative !important;
    background: white !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
    overflow: hidden !important;
}

.fdf-search-input {
    width: 100% !important;
    padding: 12px 16px !important;
    border: none !important;
    outline: none !important;
    font-size: 14px !important;
    font-family: inherit !important;
    background: transparent !important;
    color: #333 !important;
}

.fdf-search-input::placeholder {
    color: #999 !important;
    font-style: italic !important;
}

.fdf-search-results {
    max-height: 300px !important;
    overflow-y: auto !important;
    border-top: 1px solid #eee !important;
    background: white !important;
}

.fdf-search-item {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    cursor: pointer !important;
    border-bottom: 1px solid #f5f5f5 !important;
    transition: background-color 0.2s ease !important;
}

.fdf-search-item:last-child {
    border-bottom: none !important;
}

.fdf-search-item:hover,
.fdf-search-item.active {
    background-color: #f8f9fa !important;
}

.fdf-search-icon {
    font-size: 16px !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
}

.fdf-search-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.fdf-search-label {
    font-weight: 500 !important;
    color: #333 !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.fdf-search-city {
    font-size: 12px !important;
    color: #666 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Crédit IGN sur la carte */
.fdf-ign-credit {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    font-size: 11px;
    font-family: "Outfit", sans-serif;
    color: #333;
    border-radius: 3px;
    z-index: 1000;
    pointer-events: none;
}

/* ===== STYLES POUR LES PRÉVISUALISATIONS MÉDIA ===== */

/* Prévisualisation photos */
.fdf-photo-preview-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.fdf-photo-loading,
.fdf-video-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.fdf-photo-image {
    position: relative;
    overflow: hidden;
}

.fdf-photo-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.fdf-photo-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 5px;
}

.fdf-photo-preview-item:hover .fdf-photo-overlay {
    opacity: 1;
}

.fdf-photo-remove,
.fdf-video-remove {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #D00000;
    font-weight: bold;
}

.fdf-photo-remove:hover,
.fdf-video-remove:hover {
    background: white;
}

.fdf-photo-name,
.fdf-video-name {
    padding: 8px;
    font-size: 12px;
    color: #666;
    border-top: 1px solid #eee;
    word-break: break-all;
}

.fdf-photo-status,
.fdf-video-status {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.fdf-photo-valid,
.fdf-video-valid {
    background: #d4edda;
    color: #155724;
}

.fdf-photo-invalid,
.fdf-video-invalid {
    background: #f8d7da;
    color: #721c24;
}

/* Prévisualisation vidéos */
.fdf-video-preview-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.fdf-video-thumbnail {
    position: relative;
}

.fdf-video-thumbnail video {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.fdf-video-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fdf-video-preview-item:hover .fdf-video-overlay {
    opacity: 1;
}

.fdf-video-play-icon {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    margin-right: auto;
}

.fdf-video-overlay .fdf-video-remove {
    position: absolute;
    top: 5px;
    right: 5px;
}

/* Responsive pour les contrôles de carte */
@media (max-width: 768px) {
    .fdf-search-control {
        width: calc(100vw - 20px) !important;
        max-width: none !important;
    }
    
    .fdf-search-input {
        font-size: 16px !important; /* évite le zoom sur iOS */
    }
    
    .fdf-mobile-overlay-content {
        padding: 20px !important;
        max-width: 250px !important;
    }
    
    .fdf-mobile-overlay-icon {
        font-size: 36px !important;
        margin-bottom: 10px !important;
    }
    
    .fdf-mobile-overlay-title {
        font-size: 16px !important;
    }
    
    .fdf-mobile-overlay-subtitle {
        font-size: 12px !important;
    }
}

/* ===== STYLES POUR LES MESSAGES DE PATIENCE ===== */

/* Message de patience pendant l'envoi */
.fdf-patience-message {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 10000 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fdf-patience-message.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.fdf-patience-content {
    background: white !important;
    padding: 40px !important;
    border-radius: 12px !important;
    text-align: center !important;
    max-width: 500px !important;
    width: 90% !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.fdf-patience-message.show .fdf-patience-content {
    transform: scale(1) !important;
}

.fdf-patience-spinner {
    width: 50px !important;
    height: 50px !important;
    border: 4px solid #f3f3f3 !important;
    border-top: 4px solid #DA0000 !important;
    border-radius: 50% !important;
    animation: fdf-spin 1s linear infinite !important;
    margin: 0 auto 20px !important;
}

.fdf-patience-content h3 {
    color: #333 !important;
    margin: 0 0 10px 0 !important;
    font-size: 1.4em !important;
    font-weight: bold !important;
}

.fdf-patience-content p {
    color: #666 !important;
    margin: 0 !important;
    font-size: 1em !important;
}




/* ========================================
   NOUVEAU SYSTÈME FORMULAIRE UNE SEULE ÉTAPE
   ======================================== */

/* Mode une seule étape */
.fdf-single-step-mode .fdf-step-header,
.fdf-single-step-mode .fdf-step-progress,
.fdf-single-step-mode .fdf-step-navigation .fdf-btn-next,
.fdf-single-step-mode .fdf-step-navigation .fdf-btn-prev {
    display: none !important;
}

.fdf-single-step-mode .fdf-form {
    padding-top: 0;
}

.fdf-form.fdf-single-step {
    background: #ffffff;
    margin-bottom: 30px;
}

.fdf-form.fdf-single-step .fdf-form-group {
    margin-bottom: 25px;
}

.fdf-form.fdf-single-step .fdf-form-submit {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.fdf-form.fdf-single-step .fdf-submit-button {
    background: #DA0000;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fdf-form.fdf-single-step .fdf-submit-button:hover:not(:disabled) {
    background: #b30000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 0, 0, 0.3);
}

.fdf-form.fdf-single-step .fdf-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========================================
   CHARGEMENT DU FORMULAIRE
   ======================================== */

.fdf-form-loading {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.fdf-form-loading .fdf-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #DA0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.fdf-form-loading .fdf-loading-text {
    color: #6c757d;
    font-size: 16px;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   PROTECTION ANTI-SPAM
   ======================================== */

.fdf-signalement-blocked {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.fdf-blocked-content {
    max-width: 500px;
    margin: 0 auto;
}

.fdf-blocked-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.fdf-blocked-title {
    font-size: 24px;
    font-weight: 700;
    color: #856404;
    margin-bottom: 15px;
}

.fdf-blocked-message {
    font-size: 16px;
    color: #856404;
    margin-bottom: 20px;
    line-height: 1.5;
}

.fdf-blocked-info {
    background: rgba(255, 234, 167, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.fdf-blocked-info p {
    margin: 8px 0;
    color: #6c5400;
    font-size: 14px;
}

.fdf-blocked-actions {
    margin-top: 25px;
}

.fdf-btn-reload {
    background: #856404;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.fdf-btn-reload:hover {
    background: #6c5400;
}

/* ========================================
   MESSAGES D'ERREUR GÉNÉRIQUES
   ======================================== */

.fdf-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

/* ========================================
   CHAMPS BLOQUÉS PAR DOUBLONS
   ======================================== */

.fdf-form-blocked {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.fdf-field-blocked {
    background: #f5f5f5 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    border-color: #ddd !important;
}

.fdf-field-blocked:focus {
    outline: none !important;
    box-shadow: none !important;
}

.fdf-form-blocked::after {
    content: "🔒 Champs désactivés - Signalement récent détecté";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffeaa7;
    color: #856404;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    pointer-events: auto;
}

/* Bouton désactivé par doublon */
.fdf-submit-button.duplicate-disabled {
    background: #ddd !important;
    color: #999 !important;
    cursor: not-allowed !important;
    position: relative;
}

.fdf-submit-button.duplicate-disabled::after {
    content: "Signalement récent dans cette zone";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 10;
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {

    
    .fdf-signalement-blocked {
        padding: 20px;
        margin: 10px;
    }
    
    .fdf-blocked-title {
        font-size: 20px;
    }
    
    .fdf-blocked-message {
        font-size: 14px;
    }
    
    .fdf-form-loading {
        padding: 40px 15px;
        margin: 10px;
    }
    
    .fdf-form-blocked::after {
        top: 5px;
        right: 5px;
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .fdf-submit-button.duplicate-disabled::after {
        bottom: -20px;
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* ========================================
   HERO ACCUEIL — shortcode [fdf-hero-accueil]
   Design épuré, plein largeur (1140px container)
   ======================================== */

.fdf-hero-accueil {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    padding-top: clamp(1.25rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
}

/* Sécurité : neutralise les <p>/<br> que wpautop ou un éditeur pourrait glisser entre nos éléments */
.fdf-hero-accueil p:empty,
.fdf-hero-accueil > p,
.fdf-hero-accueil__main > p,
.fdf-hero-accueil__side > p,
.fdf-hero-accueil__main > br,
.fdf-hero-accueil__side > br,
.fdf-espaces p:empty,
.fdf-espaces > p,
.fdf-espaces__scroller > p,
.fdf-espaces__scroller > br {
    display: none !important;
}

.fdf-hero-accueil__cta {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "body cta";
    align-items: end;
    gap: 1.5rem;
    min-height: clamp(280px, 22vw, 360px);
    height: 100%;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border-radius: 20px;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.fdf-hero-accueil__cta-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.85) 100%),
        linear-gradient(110deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
}

.fdf-hero-accueil__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.fdf-hero-accueil__cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ---------------------------------------------------------------------------
   Effet "zoom plein écran" au clic sur la carte CTA.
   Le lien est repositionné en position:fixed avec ses dimensions courantes,
   puis animé vers 100vw/100vh avant la navigation (gérée en JS).
   --------------------------------------------------------------------------- */
.fdf-hero-accueil__cta--zooming {
    position: fixed !important;
    margin: 0 !important;
    z-index: 99999 !important;
    transform: none !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45) !important;
    transition:
        top 0.7s cubic-bezier(0.65, 0, 0.35, 1),
        left 0.7s cubic-bezier(0.65, 0, 0.35, 1),
        width 0.7s cubic-bezier(0.65, 0, 0.35, 1),
        height 0.7s cubic-bezier(0.65, 0, 0.35, 1),
        border-radius 0.7s cubic-bezier(0.65, 0, 0.35, 1) !important;
    will-change: top, left, width, height, border-radius;
}

.fdf-hero-accueil__cta--zooming.is-fullscreen {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    border-radius: 0 !important;
}

/* Pendant le zoom : on atténue les contenus textuels pour laisser respirer l'image */
.fdf-hero-accueil__cta--zooming .fdf-hero-accueil__cta-live,
.fdf-hero-accueil__cta--zooming .fdf-hero-accueil__cta-body,
.fdf-hero-accueil__cta--zooming .fdf-hero-accueil__cta-cta {
    transition: opacity 0.45s ease;
    opacity: 0;
}

/* Scrim sombre qui apparaît derrière l'élément zoomé */
.fdf-hero-accueil__cta-scrim {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: #050505;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.fdf-hero-accueil__cta-scrim.is-visible {
    opacity: 1;
}

/* Petit spinner facultatif au centre du plein écran */
.fdf-hero-accueil__cta-spinner {
    position: fixed;
    z-index: 100000;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease 0.3s;
    animation: fdf-hero-cta-spin 0.9s linear infinite;
}

.fdf-hero-accueil__cta-spinner.is-visible {
    opacity: 1;
}

@keyframes fdf-hero-cta-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Body en attente de navigation : on bloque le scroll */
.fdf-hero-accueil__cta-zooming-lock {
    overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
    .fdf-hero-accueil__cta--zooming,
    .fdf-hero-accueil__cta-scrim,
    .fdf-hero-accueil__cta-spinner {
        transition: none !important;
        animation: none !important;
    }
}

/* « En direct » : coin haut-gauche au-dessus du dégradé */
.fdf-hero-accueil__cta-live {
    position: absolute;
    z-index: 1;
    top: clamp(1.25rem, 2.5vw, 2rem);
    left: clamp(1.25rem, 2.5vw, 2rem);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: min(280px, 70%);
    padding: 0.4rem 0.7rem 0.4rem 0.55rem;
    border-radius: 9999px;
    background: rgba(127, 29, 29, 0.35);
    border: 1px solid rgba(248, 113, 113, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fecaca;
    pointer-events: none;
}

.fdf-hero-accueil__cta-live-dot {
    position: relative;
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    align-self: center;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.5);
    animation: fdf-hero-live-dot-pulse 1.1s ease-in-out infinite;
}

.fdf-hero-accueil__cta-live-label {
    line-height: 1;
    padding-top: 0.05em;
    align-self: center;
}

.fdf-hero-accueil__cta-live-dot::before,
.fdf-hero-accueil__cta-live-dot::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.65);
    transform: translate(-50%, -50%) scale(0.35);
    animation: fdf-hero-live-radar 2s ease-out infinite;
    pointer-events: none;
}

.fdf-hero-accueil__cta-live-dot::after {
    animation-delay: 0.9s;
}

@keyframes fdf-hero-live-dot-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.75;
        transform: scale(0.92);
    }
}

@keyframes fdf-hero-live-radar {
    0% {
        transform: translate(-50%, -50%) scale(0.35);
        opacity: 0.95;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.75);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fdf-hero-accueil__cta-live-dot {
        animation: none;
    }

    .fdf-hero-accueil__cta-live-dot::before,
    .fdf-hero-accueil__cta-live-dot::after {
        animation: none;
        opacity: 0;
    }
}

.fdf-hero-accueil__cta-body {
    grid-area: body;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    max-width: 720px;
}

.fdf-hero-accueil__cta-eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.fdf-hero-accueil__cta-count {
    font-size: clamp(1.75rem, 4.2vw, 2.75rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
    text-wrap: balance;
}

.fdf-hero-accueil__cta-sub {
    font-size: 0.9375rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
}

.fdf-hero-accueil__cta-cta {
    grid-area: cta;
    align-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.125rem;
    border-radius: 9999px;
    background: #fff;
    color: #0a0a0a;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.25s ease, background 0.2s ease;
}

.fdf-hero-accueil__cta:hover .fdf-hero-accueil__cta-cta {
    transform: translateX(2px);
}

.fdf-hero-accueil__cta-arrow {
    flex-shrink: 0;
}

.fdf-hero-accueil__main {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 0.875rem;
    align-items: stretch;
    margin: 0;
}

.fdf-hero-accueil__side {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    height: 100%;
}

.fdf-hero-accueil__side > .fdf-hero-accueil__vig {
    flex: 0 0 auto;
}

.fdf-hero-accueil__side > .fdf-hero-accueil__sos {
    flex: 1 1 auto;
}

.fdf-hero-accueil__vig-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--fdf-muted, #737373) 10%, var(--fdf-bg, #fff));
    color: var(--fdf-text, #0a0a0a);
    transition: background 0.2s ease, color 0.2s ease;
}

.fdf-hero-accueil__vig--link:hover .fdf-hero-accueil__vig-icon {
    background: color-mix(in srgb, var(--fdf-text, #0a0a0a) 10%, var(--fdf-bg, #fff));
}

.fdf-hero-accueil__vig {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.625rem 0.875rem;
    border-radius: 12px;
    border: 1px solid var(--fdf-border, #e5e5e5);
    background: var(--fdf-bg, #fff);
    text-decoration: none;
    color: var(--fdf-text, #0a0a0a);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.fdf-hero-accueil__vig:hover {
    transform: translateY(-1px);
    border-color: var(--fdf-text, #0a0a0a);
}

.fdf-hero-accueil__vig:focus-visible {
    outline: 2px solid var(--fdf-text, #0a0a0a);
    outline-offset: 2px;
}

.fdf-hero-accueil__vig-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--fdf-vig-color, var(--fdf-muted, #737373));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--fdf-vig-color, var(--fdf-muted, #737373)) 18%, transparent);
}

.fdf-hero-accueil__vig-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.fdf-hero-accueil__vig-title {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fdf-muted, #737373);
}

.fdf-hero-accueil__vig-count {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--fdf-text, #0a0a0a);
}

.fdf-hero-accueil__vig-arrow {
    flex-shrink: 0;
    color: var(--fdf-muted, #737373);
    transition: transform 0.2s ease, color 0.2s ease;
}

.fdf-hero-accueil__vig:hover .fdf-hero-accueil__vig-arrow {
    color: var(--fdf-text, #0a0a0a);
    transform: translateX(2px);
}

.fdf-hero-accueil__vig--ok {
    --fdf-vig-color: #16a34a;
}

.fdf-hero-accueil__vig--warn {
    --fdf-vig-color: #f97316;
}

.fdf-hero-accueil__vig--danger {
    --fdf-vig-color: #dc2626;
}

.fdf-hero-accueil__vig--neutral {
    --fdf-vig-color: var(--fdf-muted, #737373);
}

/* Bloc SOS — signaler un feu + numéro 112 (compact) */
.fdf-hero-accueil__sos {
    --fdf-sos-color: #d00100;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding: 0.625rem 0.875rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--fdf-sos-color) 25%, var(--fdf-border, #e5e5e5));
    background: color-mix(in srgb, var(--fdf-sos-color) 5%, var(--fdf-bg, #fff));
    min-width: 0;
}

.fdf-hero-accueil__sos-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1 1 auto;
}

.fdf-hero-accueil__sos-eyebrow {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fdf-sos-color);
    line-height: 1.1;
}

.fdf-hero-accueil__sos-tel {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--fdf-text, #0a0a0a);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.fdf-hero-accueil__sos-tel:hover {
    color: var(--fdf-sos-color);
}

.fdf-hero-accueil__sos-tel svg {
    flex-shrink: 0;
    color: var(--fdf-sos-color);
}

.fdf-hero-accueil__sos-tel-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.fdf-hero-accueil__sos-tel-lead {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fdf-muted, #737373);
}

.fdf-hero-accueil__sos-tel-num {
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--fdf-text, #0a0a0a);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.fdf-hero-accueil__sos-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    background: var(--fdf-sos-color);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.fdf-hero-accueil__sos-cta:hover {
    background: #a80100;
    transform: translateY(-1px);
}

.fdf-hero-accueil__sos-cta:focus-visible {
    outline: 2px solid var(--fdf-sos-color);
    outline-offset: 2px;
}

.fdf-hero-accueil__sos-cta svg {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .fdf-hero-accueil__cta {
        grid-template-columns: 1fr;
        grid-template-areas:
            "body"
            "cta";
        align-items: start;
        min-height: 240px;
        padding: 1.125rem 1rem;
        border-radius: 16px;
        gap: 1rem;
    }

    .fdf-hero-accueil__cta-live {
        top: 1.125rem;
        left: 1rem;
        max-width: min(260px, 78%);
    }

    .fdf-hero-accueil__cta-cta {
        align-self: start;
        justify-self: start;
    }

    .fdf-hero-accueil__cta-body {
        max-width: 100%;
    }

    .fdf-hero-accueil__main {
        grid-template-columns: 1fr;
    }

    .fdf-hero-accueil__cta {
        min-height: 240px;
    }

    .fdf-hero-accueil__vig {
        padding: 0.75rem 0.875rem;
        border-radius: 12px;
    }

    .fdf-hero-accueil__sos {
        gap: 0.75rem;
        padding: 0.75rem 0.875rem;
        border-radius: 12px;
    }

    .fdf-hero-accueil__sos-cta {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }

    .fdf-hero-accueil__sos-tel-num {
        font-size: 1.25rem;
    }
}

/* ========================================
   ESPACES PAR PROFIL — shortcode [fdf-espaces-profil]
   Compact, scroll horizontal, look épuré
   ======================================== */

.fdf-espaces {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
}

.fdf-espaces__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.875rem;
}

.fdf-espaces__title {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fdf-muted, #737373);
}

.fdf-espaces__hub {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--fdf-text, #0a0a0a);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.fdf-espaces__hub:hover {
    opacity: 0.7;
}

.fdf-espaces__hub svg {
    transition: transform 0.2s ease;
}

.fdf-espaces__hub:hover svg {
    transform: translateX(2px);
}

.fdf-espaces__scroller {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.625rem;
    padding: 4px 1px;
    margin: 0;
}

.fdf-espaces__card {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    padding: 0.75rem 0.875rem;
    border-radius: 12px;
    border: 1px solid var(--fdf-border, #e5e5e5);
    background: var(--fdf-bg, #fff);
    color: var(--fdf-text, #0a0a0a);
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.fdf-espaces__card:hover {
    border-color: var(--fdf-text, #0a0a0a);
    background: var(--fdf-surface, #f5f5f5);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.fdf-espaces__card:focus-visible {
    outline: 2px solid var(--fdf-text, #0a0a0a);
    outline-offset: 2px;
}

.fdf-espaces__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--fdf-surface, #f5f5f5);
    color: var(--fdf-text, #0a0a0a);
    transition: background 0.2s ease, color 0.2s ease;
}

.fdf-espaces__card:hover .fdf-espaces__icon {
    background: var(--fdf-text, #0a0a0a);
    color: var(--fdf-bg, #fff);
}

.fdf-espaces__label {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
    line-height: 1.2;
}

.fdf-espaces__label-main {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fdf-text, #0a0a0a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fdf-espaces__label-sub {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--fdf-muted, #737373);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile : passage en scroll horizontal compact */
@media (max-width: 720px) {
    .fdf-espaces__scroller {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .fdf-espaces__scroller::-webkit-scrollbar {
        display: none;
        height: 0;
        width: 0;
    }

    .fdf-espaces__card {
        flex: 0 0 auto;
        scroll-snap-align: start;
        min-width: 168px;
        max-width: 220px;
        padding: 0.625rem 0.75rem;
    }

    .fdf-espaces__icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .fdf-espaces__icon svg {
        width: 18px;
        height: 18px;
    }
}



