/* Sections principales */
.sector {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sector.first {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 5px solid #0066cc;
}

.sector.mid {
    max-width: 1200px;
    margin: 50px auto;
}

.sector.last {
    margin-bottom: 60px;
}

/* Titres */
.sector h3 {
    padding: 15px 0;
    margin: 0 0 20px 0;
    font: 700 26px/36px 'gothammediumregular', Arial, sans-serif;
    color: #1a1a1a;
    border-bottom: 3px solid #0066cc;
    position: relative;
}

.sector h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: #f04e4c;
}

.sector.first h4 {
    padding: 10px 0;
    margin: 0 0 15px 0;
    font: 700 28px/38px 'gothammediumregular', Arial, sans-serif;
    color: #0066cc;
}

/* Paragraphes */
.sector p {
    font: 400 17px/28px 'Lato', Arial, sans-serif;
    color: #333;
    margin: 20px 0;
    text-align: justify;
}

.sector p strong {
    color: #000;
    font-weight: 700;
}

/* Liens */
.sector p a {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.sector p a:hover {
    border-bottom: 1px solid #0066cc;
}

/* Bouton de soumission */
.sector.first p a[href*="bcf-groupe"] {
    display: inline-block;
    color: #fff !important;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
    margin: 20px 0;
}

.sector.first p a[href*="bcf-groupe"]:hover {
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
    transform: translateY(-2px);
    border: none;
}

/* Grille d'images des étapes */
.formImages {
    width: 95%;
    max-width: 1400px;
    padding: 0 20px;
    margin: 80px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    box-sizing: border-box;
}

.panelImage {
    position: relative;
    flex: 0 0 calc(25% - 30px);
    max-width: 320px;
    min-width: 280px;
}

.panelImage a {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.panelImage a:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transform: translateY(-5px);
}

.panelImage a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: 0.3s ease;
    opacity: 1;
}

.panelImage a:hover img {
    transform: scale(1.08);
    transition: 0.3s ease;
    opacity: 0.85;
}

.panelImage h3 {
    display: block;
    width: 140px;
    height: 50px;
    font: 700 20px/50px 'Apercu Pro', Arial, sans-serif;
    color: #fff;
    background: #0066cc;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 175px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    z-index: 10;
}

.panelImage p {
    font: 400 17px/24px 'gotham_lightregular', Arial, sans-serif;
    color: #333;
    margin: 70px auto 20px auto;
    padding: 0 10px;
    text-align: center;
    min-height: 72px;
}

.panelImage .blank {
    width: 100%;
    height: 1px;
    visibility: hidden;
}

/* Responsive */
@media only screen and (max-width: 1400px) {
    .formImages {
        max-width: 1100px;
        gap: 25px;
    }
    
    .panelImage {
        flex: 0 0 calc(33.333% - 25px);
    }
}

@media only screen and (max-width: 1060px) {
    .formImages {
        max-width: 750px;
        padding: 0 30px;
        gap: 20px;
    }
    
    .panelImage {
        flex: 0 0 calc(50% - 20px);
    }
    
    .sector {
        padding: 25px 30px;
        margin: 30px 20px;
    }
}

@media only screen and (max-width: 720px) {
    .formImages {
        max-width: 100%;
        padding: 0 15px;
        gap: 30px;
    }
    
    .panelImage {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .sector {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .sector h3 {
        font-size: 22px;
        line-height: 30px;
    }
    
    .sector.first h4 {
        font-size: 24px;
        line-height: 32px;
    }
    
    .sector p {
        font-size: 16px;
        line-height: 26px;
    }
}
