/* ==========================
   VARIABLES
========================== */

:root{

    /* Palette issue du logo */

    --charcoal:#2f3035;
    --sand:#b9a782;
    --sage:#87997a;
    --eucalyptus:#8ea7a1;
    --eco:#9cf000;

    --white:#ffffff;
    --bg:#f5f4ef;
    --text:#222222;

    --shadow:
    0 10px 30px rgba(0,0,0,.08);

    --radius:24px;
}

/* ==========================
   RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:
    "Outfit",
    sans-serif;

    background:var(--bg);
    color:var(--text);

    overflow-x:hidden;
}

/* ==========================
   HEADER
========================== */

.header{

    position:fixed;

    top:12px;
    left:50%;

    transform:translateX(-50%);

    width:min(1400px,95%);

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:14px 28px;

    background:
    rgba(255,255,255,.18);

    backdrop-filter:
    blur(20px);

    -webkit-backdrop-filter:
    blur(20px);

    border:
    1px solid rgba(255,255,255,.25);

    border-radius:28px;

    box-shadow:
    0 8px 30px rgba(0,0,0,.10);

    z-index:9999;
}

/* ==========================
   LOGO
========================== */

.logo{

    display:flex;
    align-items:center;

    gap:16px;

    flex-shrink:0;
}

.logo img{

    display:block;

    width:auto;

    height:85px;

    max-width:260px;

    object-fit:contain;

    transition:.3s ease;
}

.logo-text{

    display:flex;
    flex-direction:column;
}

.brand{

    font-size:.85rem;
    font-weight:700;
    color:var(--charcoal);
    letter-spacing:4px;
 padding-top: 46px;
}

.subtitle{

    font-size:.85rem;
    color:#666;
    letter-spacing:1px;


 }

a:link, a:visited, a:hover, a:active {
text-decoration: none; /* Supprime le soulignement dans tous les états */
}




/* ==========================
   MENU
========================== */

nav ul{

    list-style:none;

    display:flex;
    gap:40px;
}

nav a{

    text-decoration:none;

    color:var(--charcoal);

    font-weight:500;

    position:relative;
}

nav a::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-6px;

    width:0;
    height:2px;

    background:var(--eco);

    transition:.3s;
}

nav a:hover::after{

    width:100%;
}


/* ==========================
   SLIDER
========================== */

.slider{

    margin-top:140px; /* espace sous le header fixe */

    width:100%;
    height:500px;

    overflow:hidden;
    position:relative;
}

.slides{

    width:100%;
    height:100%;
    position:relative;
}

.slide{

    position:absolute;

    width:100%;
    height:100%;

    object-fit:cover;

    opacity:0;

    transition:opacity 1s ease;
}

.slide.active{

    opacity:1;
}

.slider .hero-content{

    position:absolute;

    top:50%;
    left:8%;

    transform:translateY(-50%);

    z-index:10;

    color:white;
}

.slider{
    position:relative;
}

.slider::before{

    content:"";

    position:absolute;
    inset:0;

    background:
    rgba(0,0,0,0.35);

    z-index:1;
}

.slider .hero-content{

    position:absolute;

    top:50%;
    left:8%;

    transform:translateY(-50%);

    z-index:2;
}

.hero-content h1{

    text-shadow:
    0 3px 12px rgba(0,0,0,.8);
}

.hero-content p{

    text-shadow:
    0 2px 8px rgba(0,0,0,.8);
}

/* ==========================
   CTA
========================== */

.cta{

    display:inline-flex;

    align-items:center;

    gap:10px;

margin-top:20px; /* descend le bouton */


    padding:18px 34px;

    background:var(--eco);

    color:#111;

    font-weight:700;

    text-decoration:none;

    border-radius:50px;

    transition:.3s;
}

.cta:hover{

    transform:
    translateY(-3px);

    box-shadow:
    0 10px 25px rgba(156,240,0,.3);
}

/* ==========================
   BLOCS
========================== */

.services{

    padding:20px 8%;

    display:grid;

    grid-template-columns:
    repeat(
    auto-fit,
    minmax(280px,1fr)
    );

    gap:30px;
}

.glass-card{

    padding:40px;

    border-radius:var(--radius);

    background:
    rgba(255,255,255,.6);

    backdrop-filter:
    blur(15px);

    box-shadow:var(--shadow);

    transition:.3s;
}






.glass-card h2{

    display:flex;
    align-items:center;
    gap:12px;

    margin-bottom:15px;

    color:var(--charcoal);
}

.glass-card h2 i{

    display:flex;
    align-items:center;
    justify-content:center;

    width:42px;
    height:42px;

    border-radius:50%;

    background:var(--eco);

    color:var(--charcoal);

    font-size:/*1rem*/ x-large;

    flex-shrink:0;
}




/* ==========================
   STORY
========================== */

.story{

    padding:120px 8%;

    background:white;

    text-align:center;
}

.story h2{

    color:var(--charcoal);

    font-size:3rem;

    margin-bottom:20px;
}

.story p{

    max-width:850px;

    margin:auto;

    line-height:1.8;
}

/* ==========================
   FOOTER
========================== */

footer{

background:var(--charcoal);

    color:white;

    padding:80px 8%;
}

.footer-content{

    display:flex;
    justify-content:space-between;

    gap:50px;

    flex-wrap:wrap;
}

.footer-content h3{

    margin-bottom:15px;

    color:var(--eco);
}

.footer-content a{

    display:block;

    color:#ddd;

    text-decoration:none;

    margin-bottom:8px;
}

/* ==========================
   TOP BUTTON
========================== */

#topBtn{

    position:fixed;

    bottom:25px;
    right:25px;

    width:60px;
    height:60px;

    display:none;

    justify-content:center;
    align-items:center;

    border:none;
    border-radius:50%;

    background:
    rgba(156,240,0,.9);

    backdrop-filter:
    blur(10px);

    color:var(--charcoal);

    box-shadow:
    0 12px 30px rgba(0,0,0,.18);

    transition:.3s;
}

#topBtn i{

    font-size:1.25rem;
}

#topBtn:hover{

    transform:
    translateY(-5px)
    scale(1.05);
}

/* ==========================
   TABLETTE
========================== */

@media (max-width:1024px){

    .header{

        padding:12px 20px;
    }

    .logo img{

        height:70px;
        max-width:220px;
    }

    .brand{

        font-size:1.25rem;
    }

    nav ul{

        gap:25px;
    }

    .hero-content h1{

        font-size:4rem;
    }
}


@media (max-width:900px){

    .map-legend{
        display:none;
    }

    .map-overlay{
        max-width:280px;
        padding:15px 18px;
    }

    .map-overlay h1{
        font-size:1.6rem;
        margin:8px 0;
    }

    .map-overlay p{
        font-size:.85rem;
        line-height:1.4;
    }

    .badge{
        font-size:.8rem;
        padding:6px 10px;
    }

}


/* ==========================
   MOBILE
========================== */

@media (max-width:768px){

    .header{

        flex-direction:column;

        gap:15px;

        padding:15px;
    }

    .logo{

        justify-content:center;
    }

    .logo img{

        height:55px;
        max-width:170px;
    }

    .brand{

        font-size:1rem;
        letter-spacing:2px;
    }

    .subtitle{

        font-size:.7rem;
    }

    nav ul{

        flex-wrap:wrap;

        justify-content:center;

        gap:15px;
    }

    .hero{

        text-align:center;
    }

    .hero-content{

        padding:25px;
        margin:auto;
    }

    .hero-content h1{

        font-size:3rem;
    }

    .hero-content p{

        font-size:1rem;
    }

    .services{

        padding:80px 20px;
    }

    .story{

        padding:80px 20px;
    }

    .story h2{

        font-size:2rem;
    }
}
@media (max-width:768px){

    .slider{
        height:300px;
    }

}


/* ==========================
   PETITS SMARTPHONES
========================== */

@media (max-width:480px){

    .logo img{

        height:45px;
        max-width:140px;
    }

    .brand{

        font-size:.9rem;
    }

    nav ul{

        gap:10px;
    }

    nav a{

        font-size:.9rem;
    }

    .hero-content h1{

        font-size:2.3rem;
    }

    .cta{

        width:100%;

        justify-content:center;
    }
}

/* ==========================
   DARK MODE
========================== */

@media (prefers-color-scheme: dark){

    body{

        background:#151515;
        color:#f0f0f0;
    }

    .header{

        background:
        rgba(30,30,30,.55);
    }

    .brand,
    nav a{

        color:white;
    }

    .glass-card{

        background:
        rgba(40,40,40,.7);

        color:white;
    }

    .story{

        background:#1b1b1b;
    }

    .story h2{

        color:white;
    }
}



/* ==========================
   CONTACT BANNER
========================== */

.contact-banner{
    margin-top:140px;
    height:350px;
    position:relative;
    overflow:hidden;
}

.contact-banner img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.contact-banner::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.40);
}

.contact-banner .hero-content{
    position:absolute;
    top:50%;
    left:8%;
    transform:translateY(-50%);
    z-index:2;
    color:white;
}

.contact-banner h1{
    font-size:4rem;
    text-shadow:0 3px 12px rgba(0,0,0,.8);
}

.contact-banner p{
    text-shadow:0 2px 8px rgba(0,0,0,.8);
}

.badge{
    display:inline-block;
    padding:10px 18px;
    border-radius:50px;
    background:rgba(255,255,255,.15);
    backdrop-filter:blur(10px);
    margin-bottom:20px;
    font-weight:600;
}

@media (max-width:768px){

    .contact-banner{
        height:250px;
    }

    .contact-banner h1{
        font-size:2.4rem;
    }

}

.contact-layout{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
align-items:start;
}

.contact-column{
display:flex;
flex-direction:column;
gap:25px;
}

.column-title{
color:var(--charcoal);
font-size:2rem;
margin-bottom:10px;
padding-left:10px;
}

.contact-card{
padding:35px;
}

@media (max-width:900px){


.contact-layout{
    grid-template-columns:1fr;
}

.column-title{
    text-align:center;
}


}

/* ==========================
   CARTE CONTACT
========================== */

.contact-map{
    position:relative;
    margin-top:140px;
    height:500px;
    overflow:hidden;
}

#map{
    width:100%;
    height:100%;
    z-index:1;
}

.map-overlay{

    position:absolute;
    z-index:1000;

    top:50%;
    left:8%;

    transform:translateY(-50%);

    max-width:500px;

    padding:30px;

    border-radius:24px;

    background:rgba(47,48,53,.82);

    backdrop-filter:blur(15px);

    color:white;
}

.map-overlay h1{
    margin:15px 0;
    font-size:3rem;
}

.map-overlay p{
    line-height:1.8;
}

.leaflet-popup-content{
    font-family:"Outfit",sans-serif;
    line-height:1.6;
}

@media (max-width:768px){

    .contact-map{
        height:400px;
    }

    .map-overlay{

        left:20px;
        right:20px;

        max-width:none;

        padding:20px;
    }

    .map-overlay h1{
        font-size:2rem;
    }

}


.map-legend{
    display:flex;
    gap:25px;
    margin-top:20px;
    flex-wrap:wrap;
}

.map-legend span{
    display:flex;
    align-items:center;
    gap:8px;
    font-weight:600;
}

.map-legend .fa-building-circle-check{
    color:#39b54a;
    font-size:1.1rem;
}

.map-legend .fa-store{
    color:#2b7cff;
    font-size:1.1rem;
}



@media (max-width:768px){

    .map-overlay{
        display:none;
    }

    .contact-map{
        height:350px;
    }

}



@media (max-width:900px){

    .header{
        flex-wrap:nowrap;
    }

    .logo{
        display:flex;
        align-items:center;
        gap:12px;
    }

    .logo img{
        height:60px;
        width:auto;
    }

    .logo-text{
        display:flex;
        flex-direction:column;
        justify-content:center;
    }

    .brand{
        white-space:nowrap;
    }

    .subtitle{
        white-space:nowrap;
    }

}



/* =====================================
   CORRECTIONS RESPONSIVE CONTACT
   À AJOUTER À LA FIN DU STYLE.CSS
===================================== */

/* Alignement logo identique au desktop */
.logo-text{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.brand{
    padding-top:0 !important;
}

.email-address{
    display:block;
    width:fit-content;
    margin:15px auto 0 auto;
    text-align:center;
}

/* Tablette */
@media (max-width:900px){

    .map-legend{
        display:none;
    }

    .map-overlay{
        max-width:240px;
        padding:12px 15px;
    }

    .map-overlay h1{
        font-size:1.3rem;
        margin:5px 0;
    }

    .map-overlay p{
        font-size:.8rem;
        line-height:1.3;
    }

    .badge{
        font-size:.7rem;
        padding:4px 8px;
    }

    .header{
        flex-wrap:nowrap;
    }

    .logo{
        display:flex;
        align-items:center;
        gap:12px;
    }

    .logo img{
        height:60px;
        width:auto;
        max-width:none;
    }
}

/* Smartphone */
@media (max-width:768px){

    .header{
        flex-direction:row !important;
        justify-content:space-between;
        align-items:center;
        padding:12px 15px;
    }

    .logo{
        display:flex;
        align-items:center;
        gap:10px;
    }

    .logo img{
        height:55px;
        width:auto;
    }

    .brand{
        font-size:.8rem;
        letter-spacing:2px;
    }

    .subtitle{
        font-size:.7rem;
    }

    .map-overlay{
        display:none;
    }

    .contact-map{
        height:350px;
    }

    .email-card{
        text-align:center;
    }

    .email-address{
        max-width:90%;
        word-break:break-word;
    }

    nav ul{
        gap:10px;
        justify-content:flex-end;
    }

    nav a{
        font-size:.85rem;
    }
}








/* =====================================
   PAGES INTERNES
===================================== */

.page-content{
    padding:180px 8% 80px;
}

.page-title{
    text-align:center;
    margin-bottom:60px;
}

.page-title h1{
    font-size:3rem;
    color:var(--charcoal);
    margin:15px 0;
}

.page-title p{
    max-width:800px;
    margin:auto;
    line-height:1.8;
}

.two-columns{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:30px;
}

.two-columns .glass-card{
    padding:35px;
}

.two-columns h2{
    margin-bottom:15px;
}

.two-columns p{
    line-height:1.8;
}

.two-columns i{
    margin-right:10px;
    color:var(--gold);
}

@media (max-width:900px){

    .page-content{
        padding:160px 6% 60px;
    }

    .page-title h1{
        font-size:2.3rem;
    }

}

@media (max-width:768px){

    .two-columns{
        grid-template-columns:1fr;
    }

    .page-content{
        padding:140px 5% 50px;
    }

    .page-title h1{
        font-size:2rem;
    }

}







footer {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    padding: 20px;
}