body, html {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
     background: transparent; /* sécurité : fond noir si l’image charge mal */
    position: relative; /* nécessaire pour le ::before */
    min-height: 100vh;
    overflow-x: hidden;
}


/* Fond d’écran desktop */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: url("images/fondecran.jpg") no-repeat center center;
    background-size: cover;
    z-index: -1;
}
   /* Toutes les images fullscreen */
    .fullscreen img {
       display: block; 
        width: 100%;           /* occupe toute la largeur disponible */
        max-width: 1220px;
        max-height: none;
        height: auto;          /* conserve les proportions */
        object-fit: contain;   /* aucune image tronquée */
        margin: 0 auto 20px auto;        /* centrage horizontal */
        padding: 0;
        box-sizing: border-box;
        overflow: hidden;
    }


/* Fond d’écran mobile */
@media screen and (max-width: 768px) {
    body::before {
        background: url("images/fondecranmobile.jpg") no-repeat center center;
        background-size: cover; /* si tu veux voir toute l’image */
        background-color: #000;   /* bandes noires si besoin */
    }


.fullscreen {
    height: auto;
    max-width: 100%;
    width: 100%;
    display: block;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    background: transparent;
    box-sizing:border-box;

    
}

/* Pour aligner les photos horizontales à gauche ou droite */
.fullscreen.horizontal-left img.horizontal {
    max-height: 80vh;
    height: auto;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;   /* pousse l'image à gauche */
    
    display: block;
    object-fit: contain;
    padding-top: 0;
    margin-bottom: 20px;
}

.fullscreen.horizontal-right img.horizontal {
    max-height: 80vh;
    height: auto;
    width: 100%;
    max-width: 100%;
    margin-left: 0 auto;    /* pousse l'image à droite */
    margin-right: 0 auto;
    display: block;
    object-fit: contain;
    margin-bottom: 20px;
}





/* ==== Responsive Mobile (≤768px) ==== */
@media screen and (max-width: 768px) {
	    body, html {
        background-attachment: scroll; /* pour éviter les bugs iOS */
         
       
	background-size: cover;   
}
    /* Conteneur fullscreen */
    .fullscreen {
        display: block;       /* désactive le flex pour éviter le décalage */
        text-align: center;   /* centre toutes les images */
        height: auto;         /* hauteur automatique selon image */
        padding: 1vh 0;       /* petit espace vertical */
        width:100%;
}

 

    /* Photo verticale spécifique (5ème photo) */
    #pourquoi img {
        display: block;
        max-width: 100%;
      
        height: auto;
        max-height: none;      /* limite la hauteur pour portrait */
        object-fit: contain;
        margin-top: 2vh;       /* petit espace au-dessus */
        margin: 0 auto;
    }

  nav {
        position: fixed;
        top: 0px;                 /* garde un petit espace avec le haut */
        left: 50%;                 /* place le menu au milieu */
        transform: translateX(-50%); /* recentre parfaitement */
        right: auto;               /* supprime le positionnement à droite */
        width: 100%;               /* laisse la largeur s’adapter */
        text-align: center;        /* tout centrer */
        z-index: 1000;
    }
 

    nav ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
        padding: 0 0;
        margin: 0;    
        list-style: none;
       
    }



    nav ul li {
	display: inline-block;
        margin: 0;             /* pas de marge verticale */
    }

    nav ul li a {
        display: inline-block;
        width: auto;           /* largeur s’adapte au texte */
        padding: 0px 0px;    /* espace autour du texte */
        font-size: 14px;       /* taille lisible sur mobile */
        background: rgba(0, 0, 0, 0.2);
        color: #fff; /* texte blanc */
    text-shadow: 
        0 0 4px #fff176,   /* halo jaune clair doux */
        0 0 8px #ffeb3b,   /* halo jaune vif */
        0 0 12px #ffd54f;  /* halo doré chaud */
        border-radius: 3px;
    }

    nav ul li a:hover {
        background: #c5b9a5; 
	color: #000;
    }
}


/* Section liens */
.main.style2 {
    background: transparent;
    color: #fff;
    padding: 3em 0;
    text-align: center;
}


.actions a.button {
    text-decoration: none;
    padding: 0.75em 1.5em;
    
    color: #000;
    border-radius: 5px;
    display: inline-block;
    margin: 0.5em;
    transition: 0.3s;
}


.actions.stacked li {display: block; margin: 0.5em 0;}
   .button.doctolib {
        background-image:url('../images/doctolib.jpg');
    }
    .button.maps {
        background-image:url('assets/images/googlemaps.png');
    }
    .button.mail {
        background-image:url('assets/images/mail.png');
    }
    .button.tel {
        background-image:url('assets/images/phone.png');
    }
.actions .button:hover { background-color:#c5b9a5; }
}

