 /* Reset CSS moderne */
 *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Variables CSS */
:root {
    --couleur-vert-1: #079610;
    --couleur-vert-2: #01814A;
    --coouleur-bleu-vert: #07968C;
    --couleur-noire: #272727;
    --couleur-texte: #272727;
    --couleur-bg: #ffffff;

    --dgd-default: #079610;
    --dgd-bleu-vert: linear-gradient(90deg, var(--coouleur-bleu-vert) 0%, var(--couleur-vert-1) 100%);
    --dgd-bleu-vert-2: linear-gradient(90deg, var(--coouleur-bleu-vert) 0%, var(--couleur-vert-2) 100%);

    --smooth-transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    --fast-transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    --custom-transition: all .7s cubic-bezier(0.94, 0.03, 0.36, 0.98);


    --font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    --font-family-bebas: 'Bebas Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;


    --max-width: 87vw;
    --padding: 40px;
}


/* Base */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--couleur-texte);
    background: var(--couleur-bg);
    line-height: 1.6;
    padding: 0px;
    margin: 0px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

h1, h2 {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
}

h3 {
    font-family: var(--font-family-bebas);
    text-transform: uppercase;
    font-weight: inherit;
    font-size: 2rem;
}

main {
    position: relative;
    max-width: 100vw;
    overflow: hidden;
}


.container {
    margin: 0px;
    padding: 0px;
}

/* Accessibilité : focus visible */
*:focus-visible {
    outline: 2px solid var(--couleur-vert-1);
    outline-offset: 2px;
}

/* Images responsives */
img {
    max-width: 100%;
    height: auto;
    display: block;
}


a {
    color: var(--couleur-vert-1);
    text-decoration: none;
    transition: var(--smooth-transition);
    cursor: pointer;
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}


section {
    height: 100vh;
    max-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}


.vert {
    color: var(--couleur-vert-1);
}

.text-gradient {
    background: var(--dgd-default);
    background: var(--dgd-bleu-vert);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7rem;
    align-items: center;
}

.grid-2 > div {
    display: flex;
    flex-direction: column;
}

.souligne {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 780px;
    height: 0.5rem;
    background-image: url('../img/curve-line.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}



/* CTA */

.bouton-cta {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 8px 8px 8px 35px;
    background: var(--dgd-default);
    background: var(--dgd-bleu-vert);
    color: #fff;
    text-transform: uppercase;
    border-radius: 50px;
    position: relative;
    font-weight: 600;
    font-size: 1.3rem;
}

.bouton-cta-blanc {
    background: #fff;
    color: var(--couleur-texte);
}

.bouton-cta-small {
    padding: 5px 6px 5px 25px;
    font-size: 1rem;
}

.bouton-icone-cta {
    transition: all 0.2s ease;
    border-radius: 50%;
    background-color: #fff;
    width: 48px;
    height: 48px;
    overflow: hidden;
    position: relative;
}

.bouton-cta-small .bouton-icone-cta {
    width: 36px;
    height: 36px;
}

.bouton-cta-blanc .bouton-icone-cta {
    background: var(--dgd-default);
    background: var(--dgd-bleu-vert);
}

.bouton-icone-cta img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: var(--custom-transition);
}

.bouton-icone-cta img:last-child {
    transform: translate(-50%, 130%);
}

.bouton-cta:hover .bouton-icone-cta img:first-child {
    transform: translate(200%, -50%);
}

.bouton-cta:hover .bouton-icone-cta img:last-child {
    transform: translate(-50%, -50%);
}





/* Menu */

header {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    z-index: 20;
}

header nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 10px 40px 10px 10px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
}

.logo-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 70px;
}

.menu {
    position: relative;
}

.menu ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.menu a {
    color: var(--couleur-texte);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.menu a:hover {
    color: var(--couleur-vert-1);
}

.menu a.active {
    color: var(--couleur-vert-1);
}



/* Sections */

/*Accueil*/
#accueil {
    background-image: url('../img/bg-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#accueil .section-content {
    width: 100%;
    height: 100%;
    display: flex;
    grid-template-columns: 1fr 2fr;
    justify-items: center;
    align-items: center;
    gap: 0px;
}

#accueil .section-content > div {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

#accueil .section-content .section-title {
    width: 36%;
    background-image: url('../img/bg-blanc-logo.png');
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100% 100%;
}

#accueil .section-content .section-description {
    width: 64%;
    align-items: flex-start;
    padding-left: 10%;
    padding-right: 10%;
    color: #fff;
}

#accueil .section-content .section-title img {
    max-width: 230px;
}

#accueil .section-content .section-description h2 {
    font-size: 3.6rem;
    line-height: 1.3;
}

#accueil .section-content .section-description p {
    font-size: 2.8rem;
    font-weight: 300;
}


/* Service */

#service {
    padding-right: var(--padding);
    padding-left: var(--padding);
}

#service .section-droite {
    justify-content: center;
    text-align: center;
}

#service .section-gauche {
    gap: 50px;
}

#service .section-droite h3 {
    font-size: 2.7rem;
}

#service .section-droite ol {
    display: flex;
    justify-content: center;
    gap: 30px;
}

#service .section-gauche ol {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

#service .section-gauche li {
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--couleur-vert-1);
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
}

#service .section-gauche li img {
    width: 30px;
}


/* Projet */

#projet .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8rem;
}

#projet h2 {
    text-align: center;
    max-width: 60%;
}

#projet .etapes-projet {
    max-width: var(--max-width);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem 8rem;
}

#projet .etapes-projet li {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.etape {
    font-family: var(--font-family-bebas);
    font-size: 5rem;
    position: relative;
    line-height: 1;
}

.etape::after {
    content: '';
    position: absolute;
    top: 1.2rem;
    right: -1.2rem;
    width: 10px;
    height: 10px;
    background-color: var(--couleur-vert-1);
    border-radius: 50%;
}

.etapes-projet h3 {
    font-size: 2.2rem;
    line-height: 1.2;
    position: relative;
}

.etapes-projet h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 95px;
    height: 84px;
    background-image: url('../img/icone-projet-form.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: scale(0.8);
}

.etapes-projet .etape-2 h3::after {
    width: 115px;
    background-image: url('../img/icone-projet-rdv.png');
}

.etapes-projet .etape-3 h3::after {
    width: 106px;
    background-image: url('../img/icone-projet-install.png');
}

.etapes-projet .etape-4 h3::after {
    width: 101px;
    background-image: url('../img/icone-projet-prise.png');
}


/* Zones d'intervention*/

#secteurs {
    background-color: var(--couleur-vert-2);
    color: #fff;
    position: relative;
}

#secteurs::before,
#secteurs::after {
    content: '';
    position: absolute;
    top: -124px;
    left: 0;
    width: 100%;
    height: 125px;
    background-image: url('../img/bg-arrondi-secteurs.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#secteurs::after {
    top: inherit;
    bottom: -124px;
    transform: rotate(180deg);
}

#secteurs .section-content {
    max-width: var(--max-width);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6rem;
    position: relative;
}

#secteurs h2 {
    max-width: 70%;
    text-align: right;
}

#secteurs ol {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-size: 1.5rem;
}

.map-secteurs {
    position: absolute;
    top: 16%;
    left: 0;
    width: 60%;
    max-width: 60vw;
    height: 100%;
    background-image: url('../img/map-moselle-intervention.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


.map-secteurs-container {
    position: absolute;
    left: 44%;
    top: 63%;
    display: inline-block;
}

.map-secteurs-container .cercle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px dotted #fff;
    border-radius: 50%;
    animation: routation 60s linear infinite;
}

.map-secteurs-container .cercle-2 {
    width: 160px;
    height: 160px;
    border-width: 3px;
    animation-duration: 50s;
}

.map-secteurs-container .cercle-3 {
    width: 220px;
    height: 220px;
    border-width: 4px;
    animation-duration: 40s;
}

@keyframes routation {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(359deg);
    }
}


/* Feuilles */

/* Éléments décoratifs parallax */
.parallax-leaf {
    position: absolute;
    width: 120px;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    pointer-events: none;
}

.parallax-leaf.leaf-1 {
    top: 15%;
    left: 10%;
    width: 150px;
    height: 150px;
}

.parallax-leaf.leaf-2 {
    top: 50%;
    right: 15%;
    width: 100px;
    height: 100px;
}

.parallax-leaf.leaf-3 {
    bottom: 20%;
    left: 20%;
    width: 130px;
    height: 130px;
}


/* Avis */

#avis .section-content {
    max-width: var(--max-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
    position: relative;
    margin-top: 5rem;
}

#avis h2  {
    text-align: center;
}

.avis-clients {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.avis-clients li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    border-radius: 25px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
}

.commentaire-client {
    font-size: 0.9rem;
}

#avis .souligne {
    bottom: inherit;
    top: 5rem;
    width: 680px;
}

.invitation-avis {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.invitation-avis  h4 {
    font-size: 1.7rem;
    font-weight: 600;
}

.invitation-avis a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--couleur-texte);
    border: 1px solid var(--couleur-vert-1);
    border-radius: 25px;
    padding: 0.5rem 2rem;
}

.invitation-avis a:hover {
    background-color: var(--couleur-vert-1);
    color: #fff;
}


/* Contact */ 

#contact .section-content {
    max-width: var(--max-width);
    width: 100%;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
}

#contact .section-gauche {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.informations-adresse,
.informations-telephone {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.informations-adresse ul {
    display: flex;
    flex-direction: column;
}

#contact .section-droite {
    width: 100%;
    padding: 2rem;
    border-radius: 25px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
}


/* Footer */


#footer .footer-container {
    width: 100%;
    max-width: var(--max-width);
    grid-template-columns: 2fr 1.3fr;
    gap: 10rem;
}


#footer .section-gauche {
    gap: 2rem;
    text-align: center;
    align-items: center;
}

#footer .section-droite {
    gap: 2rem;
}

#footer .section-droite ol {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: flex-start;
}

#footer .informations-adresse {
    align-items: flex-end;
}

#footer .informations-adresse img {
    width: 150px;
}

#footer .informations-telephone a img {
    width: 150px;
}



/* Devis */


#devis {
    position: fixed;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--couleur-vert-2);
    background: var(--dgd-bleu-vert-2);
    color: #fff;
    z-index: 50;
    top: 0;
    right: -105%;
    transition: var(--smooth-transition);
}

#devis.active {
    right: 0;
}

#devis .section-content {
    max-width: var(--max-width);
    width: 100%;
    align-items: center;
    grid-template-columns: 1.5fr 2fr;
}

.close-devis {
    position: absolute;
    right: 6rem;
    top: 4rem;
    cursor: pointer;
    color: #fff;
    font-size: 2.5rem;
}



/* Formulaires */

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 3rem;
}

form .form-field {
    display: flex;
    flex-direction: column;
}

form label {
    font-weight: 600;
}

form input,
form textarea,
form select {
    background-color: #E1F5ED;
    border-radius: 10px;
    padding: 1rem;
    border: 0px;
    font-family: var(--font-family);
    transition: var(--smooth-transition);
    outline: 2px solid rgba(0, 0, 0, 0);
}

form .full-width {
    grid-column: 1 / -1;
}

form button[type="submit"] {
    border: 0;
    outline: 0;
    justify-self: flex-start;
    cursor: pointer;
    transition: var(--smooth-transition);
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.85em;
    margin-top: 5px;
    min-height: 1.2em;
}

.form-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.checkbox-field label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-field span {
    font-size: 0.9em;
}

/* Message de retour */
.form-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background-color: #fff;
    padding: 4rem;
}

.success-message h3 {
    font-size: 2.3rem;
}

/* Menu indicator */

.menu-indicator {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 3px;
    background: var(--couleur-vert-1);
    border-radius: 2px;
    transition: none;
    pointer-events: none;
    z-index: 1;
}


.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    filter: invert(1);
}

.scroll-indicator.visible {
    opacity: 1;
}

.scroll-indicator svg {
    width: 30px;
    height: 50px;
    animation: bounce 2s infinite;
}

/* Animations */

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(0px);
    }
}

/* Animations d'entrée */
.section-content {
    opacity: 1;
}

/* Split text animation */
h1, h2 {
    overflow: hidden;
}

h1 .char,
h2 .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) rotateX(-90deg);
    transform-origin: 0% 50%;
}

.word {
    display: inline-block;
    white-space: nowrap;
  }


/* Responsive */
@media (max-width: 768px) {
    .menu ul {
        gap: 15px;
        font-size: 0.9rem;
    }
    
    section h1 {
        font-size: 2.5rem !important;
    }
    
    section h2 {
        font-size: 2rem !important;
    }
}