:root{
    --gradient: linear-gradient(90deg, #166534cc, #036aa1cc), url('./images/techno_bg.jpg') center center;
}

.hero .img-container
{
    height: 400px;
}

.hero .img-container .wrapper
{
    top: 40%;
}

.hero .img-container .wrapper .content .title
{
    margin: 0 auto;
    text-align: center;
    max-width: 70%;
    letter-spacing: -1.2%;
}

.hero .img-container .wrapper .content .explain
{
    max-width: 50%;
    margin: 0 auto;
    text-align: center;
}


/* Litte add from accueil */

.btn-primary {
    display: inline-block;
    background: var(--simple-gradient);
    color: transparent;
    background-clip: text;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #15803d;
}


@media (max-width: 768px) {
   
    .hero .img-container .wrapper .content .title
    {
        text-align: start;
        max-width: 90%;
        margin-left: 0;
        line-height: 40px;
    }

    .hero .img-container .wrapper .content .explain
    {
        text-align: start;
        margin: 0 unset;
        max-width: unset;   
    }

    .hero .img-container .wrapper
    {
        top: 30%;
    }

    .hero .img-container
    {
        height: 450px;
    }

}

/* Styling the main content of the technology page */

.tech_main-content {
    position: relative; /* Nécessaire pour positionner le SVG par rapport à ce conteneur */
    padding-bottom: 60px;
}

.tech_svg {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: -1; 
}

.collect-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 90%;
    max-width: var(--max-cont_size);
    margin: 0 auto;
    position: relative; 
    z-index: 1;
}

.section-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 900px;
    margin-top: 120px;
    background-color: white; /* Je vais changer cela après */
}

.section-header > div {
    font-size: 28px;
    font-weight: 600;
    background: var(--simple-gradient);
    background-clip: text;
    color: transparent;
    line-height: 1.3;
}

.section-header span {
    color: #666;
    font-size: 1rem;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Pour la responsivité sur mobile */
    width: 100%;
}

.stat-card {
    background-color: white;
    border-radius: 16px;
    padding: 24px;
    flex-basis: 298px; /* Largeur de base de chaque carte */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}



/* Animation style */
.tech_svg .first-arrow, .first-circle, .second-circle, .power-circle
{
    visibility: hidden;
}

.valorisation-content-card, .alimentation-card, .destination-card
{
    position: relative;
}

.first-ali-card
{
    visibility: hidden;
}

.alimentation-card .card-icon
{
    visibility: hidden;
} 

.alimentation-card .card-title
{
    visibility: hidden;
} 

.alimentation-card .card-description
{
    visibility: hidden;
} 


.fency-stuff, .c-left, .c-right, .dest-bg
{
    box-shadow: 1px 5px 30px #036aa162;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    z-index: -1;
    border: solid 2px #036aa1cc;
}


.c-left, .c-right
{
    z-index: 2;
    border: none;
    top: 0;
    border-radius: 16px;
    transform-origin: 60%;
    transform: translateX(-50%);
}

.destination-image-overlay
{
    clip-path: circle(0 at 50% 50%);  
}

.dest-bg
{
    border: none;
}
/* End animation style */

/* .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
} */

.stat-icon {
    font-size: 2rem;
    color: #16a34a; /* Vert */
    margin-bottom: 15px;
}

.stat-number {
    font-size: 30px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.stat-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin: 5px 0 10px 0;
}

.stat-description {
    color: #718096;
    line-height: 1.6;
    margin: 0;
}

/* --- Section Valorisation --- */
.valorisation-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px; /* Espace entre le titre, la carte et l'image */
    width: 90%;
    max-width: var(--max-cont_size);
    margin-top: 150px; /* Espace vertical avec la section précédente */
    margin-inline: auto;
    position: relative;
    z-index: 1;
    padding: 0 15px; /* Add some horizontal padding for smaller screens */
    box-sizing: border-box; /* Ensures padding doesn't add to the width */
}

.valorisation-content-card {
    background-color: white;
    padding: 24px;
    width: 100%;
    max-width: 850px;
    box-sizing: border-box;
}

.main-stats-container {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    padding-bottom: 35px;
    margin-bottom: 32px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.main-stat-item {
    flex: 1;
    min-width: 200px;
    text-align: center; 
}

.main-stat-item .stat-header {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 12px;
    font-size: 2.2rem;
    font-weight: 700;
    color: #16a34a; /* Vert */
}

.main-stat-item h4 {
    font-size: 1.2rem;
    color: #2d3748;
    margin: 10px 0;
}

.main-stat-item p {
    color: #718096;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem; /* Slightly adjust for readability */
}

.process-box {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.process-box h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

.process-steps {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap; /* Allow steps to wrap */
}

.process-step {
    flex: 1;
    min-width: 150px; /* Ensure steps don't get too small */
    padding: 10px; /* Add padding for better spacing */
}

.process-step i {
    font-size: 1.8rem;
    color: #16a34a; /* Vert */
    margin-bottom: 10px;
}

.process-step h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 5px 0;
}

.process-step p {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.5;
    margin: 0;
}

.tech-image-card {
    position: relative;
    width: 100%;
    max-width: var(--max-cont_size);
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background-image: url('/asset/images/usine.jfif'); /* Assurez-vous que le chemin est correct */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; /* Aligne le texte en bas */
    color: white;
}

.text-overlay {
    width: 100%;
    padding: 25px;
    box-sizing: border-box;
    background: linear-gradient(transparent, rgba(22, 101, 52, 0.5), rgba(3, 106, 161, 0.5));
}

.text-overlay h4 {
    font-size: 1.5rem;
    margin: 0 0 5px 0;
}

.text-overlay p {
    margin: 0;
    line-height: 1.5;
    max-width: 450px;
}

/* Bouton d'action */

@keyframes bg-animation {
    0% {
    background-position: bottom left; 
    }
    25% {
    background-position: center left; 
    }

    50% {
    background-position: top center; 
    }

    75% {
    background-position: center right; 
    }

    100% {
    background-position: bottom center; 
    }

}


.final-techno
{
    background: var(--second-part-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    overflow-x: clip;

}
.call-to-action
{
    width: 92%;
    max-width: var(--max-cont_size);
    margin: 0 auto;
    display: flex;
    justify-content: center;
}
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background: var(--stat-gradient);
    background-size: 200%;
    color: white;
    background-position: bottom left;
    animation: bg-animation 35s ease-out infinite alternate-reverse;
}

.cta-button:hover {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.cta-button i {
    margin-left: 10px;
}

@media (max-width: 768px) 
{
    .cta-button
    {
        font-size: 1rem;
        text-align: center;
    }    
}

/* --- Media Queries for Responsiveness --- */

/* For screens smaller than 768px (e.g., tablets in portrait, large phones) */
@media (max-width: 768px) {
    .valorisation-section {
        margin: 40px auto;
        gap: 20px;
    }

    .section-header
    {
        text-align: start;
    }

    .valorisation-content-card {
        padding: 25px;
    }

    .main-stats-container {
        flex-direction: column; /* Stack stats vertically */
        gap: 25px;
        padding-bottom: 25px;
        margin-bottom: 25px;
    }

    .main-stat-item {
        min-width: unset; /* Remove min-width to allow full flexibility */
        width: 100%; /* Take full width when stacked */
    }

    .main-stat-item .stat-header {
        font-size: 2rem; /* Slightly smaller */
    }

    .main-stat-item h4 {
        font-size: 1.1rem;
    }

    .main-stat-item p {
        font-size: 0.9rem;
    }

    .process-box {
        padding: 20px;
    }

    .process-box h5 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .process-steps {
        flex-direction: column; /* Stack process steps vertically */
        gap: 15px;
    }

    .process-step {
        min-width: unset;
        width: 100%;
    }

    .process-step i {
        font-size: 1.6rem;
    }

    .process-step h6 {
        font-size: 0.95rem;
    }

    .process-step p {
        font-size: 0.85rem;
    }

    .tech-image-card {
        height: 220px; /* Adjust height for smaller screens */
        border-radius: 12px;
    }

    .text-overlay {
        padding: 20px;
    }

    .text-overlay h4 {
        font-size: 1.3rem;
    }

    .text-overlay p {
        font-size: 0.9rem;
    }
}

/* For screens smaller than 480px (e.g., mobile phones) */
@media (max-width: 480px) {
    .valorisation-section {
        margin: 30px auto;
        gap: 15px;
        width: 95%; /* Make it slightly wider to utilize more space */
    }

    .valorisation-content-card {
        padding: 20px;
        border-radius: 12px;
    }

    .main-stat-item .stat-header {
        font-size: 1.8rem;
    }

    .main-stat-item h4 {
        font-size: 1rem;
    }

    .main-stat-item p {
        font-size: 0.85rem;
    }

    .process-box {
        padding: 15px;
        border-radius: 10px;
    }

    .process-box h5 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .process-step i {
        font-size: 1.4rem;
    }

    .process-step h6 {
        font-size: 0.9rem;
    }

    .process-step p {
        font-size: 0.8rem;
    }

    .tech-image-card {
        height: 180px; /* Further adjust height */
        border-radius: 10px;
    }

    .text-overlay {
        padding: 15px;
    }

    .text-overlay h4 {
        font-size: 1.1rem;
    }

    .text-overlay p {
        font-size: 0.85rem;
        max-width: 100%; /* Allow text to take full width */
    }
}


/* --- Section Alimentation du Réseau --- */
.alimentation-section {
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    align-items: center;
    gap: 35px; /* Espace entre les éléments de la section */
    width: 90%;
    max-width: var(--max-cont_size);
    margin: 60px auto; /* Espace vertical avec la section précédente */
    padding: 0 15px; /* Padding horizontal pour les petits écrans */
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.alimentation-section .alimentation-header
{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
    background-color: white;
    margin-bottom: 300px;
    margin-top: 90px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    background: var(--simple-gradient);
    background-clip: text;
    color: transparent;
    text-align: center;

}

.section-subtitle {
    font-size: 1rem;
    color: #718096;
    text-align: center;
    max-width: 900px;
    line-height: 1.6;
    margin-top: 0;
}

.alimentation-cards-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
    flex-wrap: wrap; /* Permet aux cartes de s'envelopper */
}

.alimentation-card {
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    flex: 1;
    min-width: 300px; /* Taille minimale pour les cartes */
    max-width: 400px; /* Taille maximale pour les cartes */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease; /* Animation au survol */
}

.alimentation-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    color: #16a34a; /* Vert */
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 10px 0;
}

.card-description {
    font-size: 1rem;
    color: #718096;
    line-height: 1.6;
    margin: 0;
}

.destination-card {
    background-color: white;
    border-radius: 16px;
    padding: 35px;
    width: 100%;
    max-width: var(--max-cont_size);
    box-sizing: border-box;
    text-align: center;
    margin-top: 20px; /* Espace par rapport aux cartes du dessus */
}

.destination-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 25px 0;
}

.destination-image-overlay {
    position: relative;
    width: 100%;
    height: 300px; /* Hauteur fixe pour l'image */
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.destination-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* S'assure que l'image couvre l'espace */
    z-index: 0;
}

.destination-text-overlay {
    position: relative; /* Pour être au-dessus de l'image */
    z-index: 1;
    width: 100%;
    padding: 25px;
    box-sizing: border-box;
    background: linear-gradient(transparent, rgba(22, 101, 52, 0.5), rgba(3, 106, 161, 0.5));
    color: white;
    text-align: left; /* Alignement du texte à gauche */
}

.destination-text-overlay p {
    font-size: 1.03rem;
    line-height: 1.6;
    margin: 0;
    max-width: 550px; /* Limite la largeur du texte pour la lisibilité */
}


/* --- Media Queries for Responsiveness (Ajouter/Modifier ces sections) --- */

/* For screens smaller than 768px (e.g., tablets in portrait, large phones) */
@media (max-width: 768px) {
    .alimentation-section {
        gap: 25px;
        margin: 40px auto;
    }

    .tech_svg
    {
        display: none;
    }

    .alimentation-section .alimentation-header
    {
        margin-bottom: unset;
    }

    .section-title {
        font-size: 2rem;
        text-align: start;
    }

    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
        text-align: start;
    }

    .alimentation-cards-container {
        flex-direction: column; /* Empile les cartes verticalement */
        gap: 20px;
    }

    .alimentation-card {
        min-width: unset; /* Annule le min-width */
        max-width: 100%; /* Prend toute la largeur */
        padding: 25px;
    }

    .card-icon {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-description {
        font-size: 0.95rem;
    }

    .destination-card {
        padding: 25px;
    }

    .destination-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .destination-image-overlay {
        height: 250px; /* Ajuste la hauteur de l'image */
    }

    .destination-text-overlay {
        padding: 20px;
    }

    .destination-text-overlay p {
        font-size: 1rem;
    }
}

/* For screens smaller than 480px (e.g., mobile phones) */
@media (max-width: 480px) {
    .alimentation-section {
        gap: 20px;
        margin: 30px auto;
        width: 95%;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 5px;
    }

    .alimentation-card {
        padding: 20px;
        border-radius: 12px;
    }

    .card-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-description {
        font-size: 0.9rem;
    }

    .destination-card {
        padding: 20px;
        border-radius: 12px;
    }

    .destination-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .destination-image-overlay {
        height: 200px; /* Encore plus petit pour les très petits écrans */
        border-radius: 10px;
    }

    .destination-text-overlay {
        padding: 15px;
    }

    .destination-text-overlay p {
        font-size: 0.9rem;
    }
}


/*Last things*/

.collect-section .section-header 
{
    
}

