/* Reset général */
* {
    margin: 0;
    padding: 0;
    background-color: rgb(237, 223, 208);
    font-family: 'Times New Roman', Times, serif;

}

/* Navigation */
nav {
    border: 2px solid rgb(255, 255, 255);
    width: 100%;
    margin: 0 auto;
    background-color: rgb(237, 223, 208);
    position: sticky;
    top: 0;
}

nav ul {
    list-style-type: none;
    margin-top: 30px;
}

nav ul li {
    float: left;
    width: 25%;
    text-align: center;
    position: relative;
}

nav ul::after {
    content: "";
    display: table;
    clear: both;
}

nav a {
    display: block;
    text-decoration: none;
    color: black;
    border-bottom: 2px solid transparent;
    padding: 10px 0;
}

nav a:hover {
    color: #3b2f2f;
    border-bottom: 2px solid#3b2f2f;
}

/* Menu déroulant */
nav ul li.deroulant > a::after {
    content: "▼";
    font-size: 12px;
}

nav ul li ul,
.sous {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(237, 223, 208);
    width: 200px;
    box-shadow: 0px 1px 2px #CCC;
    z-index: 1000;
    text-align: center;
    padding: 0;
}

nav ul li:hover ul,
nav > ul li:hover .sous {
    display: block;
}

.sous li {
    float: none;
    width: 100%;
    text-align: center;
}

.sous a {
    padding: 10px;
    border-bottom: none;
}

.sous a:hover {
    background-color: rgb(237, 223, 208);
}

/* Bandeau / Hero */
.hero-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
}

.hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Dancing Script', cursive;
    font-size: 48px;
    color: white;
    text-shadow: 2px 2px 6px #3b2f2f;
     margin: 0;
}

/* Texte de page */
.page-text,
.contact-info {
    width: 80%;
    margin: 40px auto;
    font-size: 18px;
    line-height: 2;
    text-align: center;
    color : #3b2f2f
}

/* Titres */
.page-text h1,
.contact-info h2 {
    margin-bottom: 20px;
}

/* Logo */
.logo-container {
    width: 300px;
    margin: 30px auto;
    text-align: center;
}

.logo {
    width: 100%;
    height: auto;
}

/* Section "Qui sommes-nous" */
.qui-sommes-nous {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: 50% 70%;
}

.activités {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: 100% 95%;
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* colonnes flexibles */
  grid-auto-rows: 150px; /* hauteur de base */
  gap: 10px;
  grid-auto-flow: dense; /* important : remplissage automatique pour éviter les trous */
  padding: 15px;
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* Classes pour jouer avec la taille des images */
.mosaic .big {
  grid-column: span 2;
  grid-row: span 2;
}

.mosaic .wide {
  grid-column: span 2;
  grid-row: span 1;
}

.mosaic .tall {
  grid-column: span 1;
  grid-row: span 2;
}

.mosaic img:first-child {
  grid-column: 1 / -1; /* prend toute la largeur de la grille */
  grid-row: span 3;    /* hauteur du bandeau (ajuste si besoin) */
}


/* Texte spécial */
.mon-texte {
    font-family: 'Dancing Script', cursive;
    font-size: 60px;
    font-weight: normal;
    text-align: center;
    margin: 10px 0;
}
nav ul li {
    float: left;
    width: 20%;
    text-align: center;
    position: relative; /* pour positionner le sous-menu par rapport au li */
}

nav ul li a {
    display: block;
    padding: 10px 0; /* padding pour le lien */
}

nav ul li ul {
    display: none;
    position: absolute;
    top: 80%; /* juste au bas du li */
    left: 0;
    margin: 0; /* pas de marge qui créerait un gap */
    padding: 0; /* pas de padding qui créerait un gap */
    background-color: rgb(237, 223, 208);
    width: 200px;
    box-shadow: 0px 1px 2px #CCC;
    z-index: 1000;
}

nav ul li:hover > ul {
    display: block; /* activation du sous-menu */
}

nav ul li ul li {
    width: 100%;
    float: none;
}

nav ul li ul li a {
    padding: 10px; /* padding pour chaque item du sous-menu */
    text-align: center;
    display: block;
}

nav ul li ul li a:hover {
    background-color: rgb(249, 113, 229);
    color: white;
}
nav ul {
    display: flex;
    justify-content: center;
    gap: 8px; /* espace entre les pages */
}

nav ul li {
    float: none;
}


/* Section Avis Clients */
.avis-section {
  padding: 0px 20px;
  text-align: center;
}

.avis-title {
  font-family: 'Dancing Script', cursive;
  font-size: 48px;
  color: #3b2f2f;
  margin-bottom: 50px;
}

/* Conteneur */
.avis-wrapper {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Carte avis */
.avis-item {
  background-color: rgb(255, 255, 255);
  width: 300px;
  padding: 30px 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Texte avis */
.avis-message {
  font-style: italic;
  font-size: 17px;
  line-height: 1.8;
  color: #3b2f2f;
  margin-bottom: 20px;
  background-color: transparent;
}

/* Nom client */
.avis-client {
  font-weight: bold;
  color: #3b2f2f;
  margin-bottom: 10px;
  background-color: transparent;
}

/* Étoiles */
.avis-stars {
  color: #3b2f2f;
  font-size: 20px;
  background-color: transparent;
}
.hero-container video {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: 50% 100%;
  display: block;
}
.social {
  text-align: center;
  margin: 40px 0;
}

nav {
  position: relative; /* référence pour le positionnement */
}

.instagram-link {
  position: absolute;
  top: 25px;
  right: 40px;
}

.instagram-logo {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.instagram-logo:hover {
  transform: scale(1);
  opacity: 0.8;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 10px; /* espace entre Instagram et Contact */
}

.icon {
    width: 30px;
    height: 30px;
    cursor: pointer; /* montre que c'est cliquable */
}

.icon:hover {
    transform: scale(1.1); /* léger zoom au survol */
    transition: 0.2s;
}

nav {
  position: relative; /* référence pour le positionnement */
}

.tel-link {
  position: absolute;
  top: 25px;
  right: 100px;
}

.tel-logo {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.instagram-logo:hover {
  transform: scale(1);
  opacity: 0.8;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 10px; /* espace entre Instagram et Contact */
}

.icon {
    width: 30px;
    height: 30px;
    cursor: pointer; /* montre que c'est cliquable */
}

.icon:hover {
    transform: scale(1.1); /* léger zoom au survol */
    transition: 0.2s;
}

.texte2 {
  width: 50%;          /* largeur du texte */
  margin-left: 0;     /* collé à gauche */
  margin-right: auto; /* vide à droite */
  text-align: justify; /* optionnel */
}



.texte2 {
  width: 50%;
  margin: 0;
  text-align: justify;
}

.photo-droite {
  width: 40%;
  height: auto;
  object-fit: cover;
  border-radius: 10px; /* optionnel mais joli */
  filter: brightness(1.2); 
}
.contenu {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 60px;
  width: 100%; /* s'assurer que Flexbox peut contenir les enfants */
  flex-wrap: nowrap; /* éviter que ça passe en ligne suivante */
}

.contenu.inverse {
  flex-direction: row-reverse;
}

.photo-droite {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* taille initiale */
  display: block;
  max-width: 100%;
  border-radius: 8px; /* optionnel : coins arrondis */
}

.photo-droite:hover {
  transform: scale(1.05) translateY(-5px); /* agrandit et surélève */
  box-shadow: 0 10px 20px rgba(0,0,0,0.3); /* ombre subtile */
}

/* --- ADAPTATION MOBILE --- */
@media screen and (max-width: 768px) {
    
    /* 1. ON RANGE LES LOGOS ET ON LES RÉTRÉCIT */
    .instagram-link, .tel-link {
        position: static !important;
        display: inline-block !important;
        margin: 5px 10px !important; /* Marges réduites */
        width: auto !important;
    }

    .instagram-logo, .tel-logo {
        width: 22px !important; /* Logos plus petits */
        height: 22px !important;
    }

    /* 2. ON CENTRE ET ON RÉDUIT L'ESPACE DU TITRE */
    nav {
        text-align: center !important;
        padding-bottom: 5px !important;
    }

    .mon-texte {
        position: static !important;
        width: 100% !important;
        font-size: 24px !important; /* Titre un peu plus petit */
        margin-top: 5px !important;
        margin-bottom: 0 !important;
    }

    /* 3. MENU COMPACT : On empile les liens et on réduit la taille */
    nav ul {
        margin-top: 5px !important; /* Menu plus proche du titre */
    }

    nav ul li {
        width: 100% !important; 
        float: none !important;
    }

    nav a {
        padding: 6px 0 !important; /* Moins d'espace entre les liens */
        font-size: 15px !important; /* Texte du menu plus petit */
        border-bottom: 0.5px solid rgba(255,255,255,0.2) !important;
    }

    /* 4. TEXTES ET PHOTOS (Reste inchangé pour la lisibilité) */
    .texte2, .page-text {
        width: 90% !important; 
        margin: 10px auto !important;
        text-align: left !important;
    }

    .contenu, .contenu.inverse {
        flex-direction: column !important;
        display: flex !important;
        gap: 15px !important;
    }

    .photo-droite {
        width: 100% !important;
        height: auto !important;
    }

    .mosaic {
        display: flex !important;
        flex-direction: column !important;
    }
}