/* ===================================
   SECTIONS - STYLES DE BASE
   =================================== */

section {
    position: relative;
    margin: 0;
    padding: 2rem 2rem;
    background: linear-gradient(to bottom, var(--dark-bg), var(--dark-bg));
}

/* ===================================
   HERO SECTION
   =================================== */

#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0rem 2rem;
    gap: 3rem;
    background-color: #0b0c0f;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 80%;
    z-index: 2;
    position: relative;
    padding: 20px;
}

/* À ajouter dans sections.css, dans la section HERO SECTION */

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-green);
    text-shadow: 0 0 30px rgba(149, 193, 31, 0.3);
    line-height: 1.2;
}

/* Style pour la ligne "Excellence & Innovation" */
.hero-content h1 .subtitle-line {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--light-text);
    margin-top: 0.5rem;
    text-shadow: none;
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--gray-text);
}

.hero-video-container {
    width: 90%;
    max-width: 1000px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16 / 9;
    position: relative;
}

.hero-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* ===================================
   SECTION MÉTIER
   =================================== */

.section-metier {
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-intro {
    margin-bottom: 6rem;
    position: relative;
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--light-text), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 auto 4rem;
    max-width: 800px;
    line-height: 1.3;
}

.tagline {
    font-size: clamp(2rem, 5vw, 3rem) !important;
    font-weight: 700;
    background: linear-gradient(135deg,
            var(--light-text) 0%,
            var(--primary-green) 50%,
            var(--primary-blue) 100%);
    background-size: 200% 200%;
    animation: gradientFlow 8s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.4;
    position: relative;
    padding: 0 0rem;
    text-shadow: 0 0 30px rgba(149, 193, 31, 0.2);
    letter-spacing: -0.5px;
}

.metier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 4rem auto 0;
    padding: 0 2rem;
}

.metier-card {
    position: relative;
    border-radius: 15px;
    background: var(--card-bg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.metier-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(149, 193, 31, 0.3),
        0 0 30px rgba(149, 193, 31, 0.2);
}

.metier-card h3 {
    position: relative;
    padding: 1.5rem 2rem;
    color: var(--light-text);
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 3;
    margin: 0;
    background: linear-gradient(135deg,
            rgba(11, 22, 44, 0.95),
            rgba(0, 20, 50, 0.95));
    border-bottom: 2px solid rgba(149, 193, 31, 0.2);
    transition: all 0.4s ease;
}

.metier-card:hover h3 {
    background: linear-gradient(135deg,
            rgba(149, 193, 31, 0.2),
            rgba(0, 48, 130, 0.2));
    border-bottom-color: var(--primary-green);
    color: var(--primary-green);
}

.card-video {
    position: relative;
    width: 100%;
    flex: 1;
    overflow: hidden;
}

.card-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.4s ease;
    filter: brightness(0.8);
}

.metier-card:hover .card-video video {
    transform: scale(1.15);
    filter: brightness(1);
}

.metier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(149, 193, 31, 0.3) 50%,
            transparent 100%);
    transform: skewX(-25deg);
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    pointer-events: none;
}

.metier-card:hover::before {
    left: 150%;
}

.metier-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(149, 193, 31, 0.1),
            rgba(0, 48, 130, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.metier-card:hover::after {
    opacity: 1;
}

/* Style pour le titre Hero avec "Excellence & Innovation" en blanc */
.hero-content h1 .subtitle-line {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--light-text);
    margin-top: 0.5rem;
    text-shadow: none;
}

/* ===================================
   SECTION SEGMENTS/PRODUITS
   =================================== */

.segments-produits {
    padding: 4rem 2rem;
}

.section-domaines {
    margin-bottom: 4rem;
}

.segments-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.segment-detail {
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto 6rem;
    scroll-margin-top: 100px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.segment-header {
    width: 100%;
    text-align: center;
    margin-bottom: 4rem;
}

.segment-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--light-text), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
}

.segment-description {
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: center;
    color: var(--light-text);
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 2rem;
    background: var(--gradient-card);
    border-radius: 20px;
    border: 1px solid rgba(149, 193, 31, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-default), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.segment-description.visible {
    transform: translateY(0);
    opacity: 1;
}

.segment-description p {
    max-width: 90%;
    margin: 0 auto;
    position: relative;
    padding: 1rem 0;
}

.segment-description strong {
    color: var(--primary-green);
    font-weight: 600;
}

@media (hover: hover) {
    .segment-description:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
        border-color: rgba(149, 193, 31, 0.2);
    }
}



/* ===================================
   SECTION ÉQUIPES & MOYENS
   =================================== */

.section-equipes {
    padding: 0rem 2rem;
    position: relative;
    overflow: hidden;
}

.equipes-container {
    display: flex;
    gap: 4rem;
    max-width: 1400px;
    margin: 4rem auto 0;
    align-items: flex-start;
}

.competences-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.competences-list.visible {
    opacity: 1;
    transform: translateX(0);
}

.competence-item {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(149, 193, 31, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.competence-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.competence-item h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.competence-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.competence-item li {
    color: var(--light-text);
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.competence-item li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

.equipe-image {
    flex: 1;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.equipe-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.equipe-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

/* ===================================
   SECTION MOYENS TECHNIQUES
   =================================== */

.moyens-techniques {
    padding: 8rem 2rem;
}

.moyens-section {
    margin-top: 4rem;
    position: relative;
}

.moyens-title {
    margin-top: 2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--light-text), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.moyens-description {
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding: 2rem;
}

.moyens-content-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.moyens-content-item {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.moyens-content-item.reverse {
    flex-direction: row-reverse;
}

.moyens-image {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.moyens-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-default);
}

.moyens-image img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Vidéo dans la section moyens */
.moyens-video {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-default);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.moyens-video:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.moyens-video video {
    width: 100%;
    height: auto;
    display: block;
}

.moyens-text {
    flex: 1;
    padding: 1rem 0;
}

.moyens-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
    font-weight: 600;
}

.moyens-text h4 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--light-text);
    font-weight: 600;
    text-align: center;
}

.moyens-text p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.moyens-text ul {
    padding-left: 0;
    margin: 1.5rem 0;
}

.moyens-text ul li {
    margin: 1rem 0;
    line-height: 1.6;
    color: var(--light-text);
}

#moyens-techniques .moyens-text p {
    text-align: justify;
    text-justify: inter-word;
}


/* ===================================
   SECTION CONTACT
   =================================== */

.section-contact {
    padding: 8rem 2rem;
    background: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
    width: 100%;
}

.contact-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-info h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.contact-info h3:first-child {
    margin-top: 0;
}

.contact-info p {
    color: var(--light-text);
    line-height: 1.8;
    margin: 0.5rem 0;
}

.contact-info a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-green);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    height: 700px;
    box-shadow: var(--shadow-default);
    transition: box-shadow 0.3s ease;
}

.map-container:hover {
    box-shadow: var(--shadow-hover);
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* Liens de la carte */
.map-links {
    margin: 1rem 0;
}

.map-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(149, 193, 31, 0.1);
    border-radius: 8px;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

.map-links a:hover {
    background: rgba(149, 193, 31, 0.2);
    transform: translateX(5px);
}

/* Réseaux sociaux */
.social-links {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--light-text);
}

.social-link:hover {
    background: rgba(149, 193, 31, 0.1);
    transform: translateY(-2px);
}

.social-link img {
    width: 24px;
    height: 24px;
}

/* Horaires */
.horaires-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.horaires-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.horaires-list li:last-child {
    border-bottom: none;
}

.horaires-list li:hover {
    padding-left: 0.5rem;
    border-color: var(--primary-green);
}

.horaires-list li span:first-child {
    font-weight: 500;
}

.horaires-list li span:last-child {
    color: var(--gray-text);
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */

@media screen and (max-width: 1024px) {
    .equipes-container {
        flex-direction: column;
        gap: 3rem;
    }

    .moyens-content-item,
    .moyens-content-item.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .moyens-image {
        max-width: 100%;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .map-container {
        height: 500px;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 4rem 1rem;
    }

    .section-metier,
    .section-equipes,
    .moyens-techniques,
    .section-contact {
        padding: 4rem 1rem;
    }

    .metier-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .segment-detail {
        padding: 2rem 1rem;
    }

    .map-container {
        height: 400px;
    }
}