/* Hero Section */
.sondagesexp-hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sondagesexp-hero[data-page="sondages"] { background-image: url('medias/Rmetal.jpg'); }
.sondagesexp-hero[data-page="fondations"] { background-image: url('medias/rb.png'); }
.sondagesexp-hero[data-page="renforcement"] { background-image: url('medias/btp2.jpg'); }
.sondagesexp-hero[data-page="reprises"] { background-image: url('medias/renforcementMaconnerie.jpg');
}

.sondagesexp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-subtitle {
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0;
    animation: fadeInDown 1s ease forwards;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    position: relative;
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

.vertical-line {
    position: absolute;
    top: 0;
    right: -30px;
    width: 3px;
    height: 0;
    background-color: black;
    animation: drawLine 1s ease forwards;
    animation-delay: 0.5s;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
section {
    padding: 80px 0;
}

.intro-section {
    background-color: #f5f5f5;
}

.intro-section h2,
.techniques-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin: 0;
    padding: 0;
    text-align: center;
}

.horizontal-line {
    width: 50px;
    height: 3px;
    background-color: black;
    margin: 20px auto 40px;
}

.intro-section p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #666;
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
}

.techniques-section {
    background-color: white;
    margin-top: 0;
}

.technique-box {
    background-color: #f5f5f5;
   
    border-radius: 5px;
    padding: 25px;
    margin: 20px 0;
}


.technique-box h3 {
    font-size: 30px;
    color: #333;
    margin-bottom: 15px;
}

.technique-box p, .technique-box ul {
    text-align: justify;
    font-size: 1.3rem; /* Taille par défaut pour desktop */
    color: #666;
    line-height: 1.6;
}

.technique-box ul {
    margin: 15px 0;
    padding-left: 20px;
}

.technique-box li {
    margin-bottom: 10px;
}

.about-text p {
    font-size: 1.2rem; /* Ajustez la taille de la police selon vos besoins */
    line-height: 1.5; /* Ajustez l'interligne pour une meilleure lisibilité */
}

/* Animations */
@keyframes drawLine {
    from { height: 0; }
    to { height: 100%; }
}

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

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

/* Media Queries */
@media screen and (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
    .hero-subtitle { font-size: 1.3rem; }
    section { padding: 60px 0; }
    .intro-section h2,
    .techniques-section h2 { font-size: 2.2rem; }
    .horizontal-line { margin: 15px auto 30px; }
    .intro-section p {
        font-size: 1rem;
        line-height: 1.7;
        padding: 0 20px;
    }
    .tabs {
        margin: 30px auto 0;
        padding: 0 20px;
    }
}

@media screen and (max-width: 768px) {
    .sondages-hero { height: 300px; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-subtitle {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .technique-box p {
        font-size: 0.9rem; /* Ajustez la taille pour tablette */
    }

    .vertical-line {
        right: -20px;
        width: 2px;
    }
    section { padding: 50px 0; }
    .intro-section h2,
    .techniques-section h2 { font-size: 2rem; }
    .horizontal-line {
        width: 40px;
        margin: 15px auto 25px;
    }
    .tab-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
        flex: 1 1 calc(50% - 8px);
    }
    .tab-content { padding: 20px; }
    .tab-content h3 { font-size: 1.3rem; }

    .about-text p {
        font-size: 1rem; /* Ajustez la taille de la police pour mobile */
    }
}

@media screen and (max-width: 480px) {
    .sondages-hero { height: 250px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-subtitle {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    .vertical-line {
        right: -15px;
        width: 2px;
    }
    section { padding: 40px 0; }
    .intro-section h2,
    .techniques-section h2 { font-size: 1.8rem; }
    .horizontal-line {
        width: 30px;
        margin: 10px auto 20px;
    }
    .intro-section p {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 0 15px;
    }
    .tab-buttons {
        flex-direction: column;
        gap: 8px;
    }
    .tab-btn {
        width: 100%;
        padding: 12px 15px;
    }
    .tab-content { padding: 15px; }
    .tab-content h3 { font-size: 1.2rem; }
}

/* Media Query pour mobile (jusqu'à 425px) */
@media screen and (max-width: 425px) {
    .technique-box p {
        font-size: 0.8rem; /* Ajustez la taille pour mobile */
    }
}