/* =========================
   VARIABLES
========================= */
:root {
    --fond-site: #fef7ea;         
    --couleur-principale: #fc7014;  
    --couleur-secondaire: #c61616;  
    --texte-blanc: #ffffff;       
    --texte-noir: #262523;
    --font-title: 'Amatic SC', cursive;
    --font-body: 'Raleway', Arial, sans-serif;
}

/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--texte-noir);
    line-height: 1.6;
    background-color: var(--fond-site);
}

/* =========================
   NAVBAR
========================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--couleur-principale);
    display: flex;
    align-items: center;       /* Aligne logo et burger verticalement */
    justify-content: space-between; /* Logo à gauche, burger/menu à droite */
    padding: 15px 40px;
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
    }
}


/* Logo */
.logo {
    display: flex;
    align-items: center; 
    gap: 10px;      
    color: var(--texte-noir);
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: bold;
}

.logo img {
    height: 32px; 
    width: auto;
    display: block;
}

.logo-link {
    display: flex;     
    align-items: center; 
    text-decoration: none;
}

/* Menu principal */
.menu {
    list-style: none;
    display: flex;
}

.menu li {
    position: relative; 
}

.menu a {
    color: var(--texte-noir);
    text-decoration: none;
    font-weight: 700;
    padding: 10px 15px; 
    display: block; 
    transition: color 0.3s ease;
}

.menu a:hover {
    color: var(--texte-blanc);
}

/* =========================
   SOUS-MENU
========================= */
.submenu {
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: var(--couleur-secondaire);
    list-style: none;
    min-width: 200px;
    display: none; 
    border-radius: 4px;
    z-index: 1000;
}

.menu li:hover > .submenu {
    display: block; 
}

.submenu li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.submenu a {
    color: var(--texte-blanc);
    font-size: 0.9rem;
    display: block; 
}

.submenu a:hover {
    color: var(--texte-noir);
}


/* =========================
   MENU BURGER
========================= */
#menu-toggle {
    display: none; 
}

.menu-icon {
    display: none; /* affiché uniquement sur mobile */
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 25px;
    justify-content: space-between;
}

.menu-icon span {
    display: block;
    height: 3px;
    background-color: var(--couleur-secondaire);
    border-radius: 2px;
}

@media (max-width: 768px) {
  .submenu {
    display: none;
  }

  .menu li.open > .submenu {
    display: block;
  }
}


/* =========================
   HEADERS
========================= */

/* header page d'accueil */
header {
    height: 90vh;
    background-image: url("../img/header.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* contenu textes du header page d'accueil */
.header-content {
    display: flex;               /* 2 colonnes */
    gap: 60px;                   /* espace entre colonnes */
    background-color: rgba(255, 202, 111, 0.9);
    padding: 30px 50px;
    border-radius: 10px;
    max-width: 850px;
    width: 90%;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header-left {
    flex: 0.6;                     
}

.header-left img {
    width: 120%;
    height: auto;
    object-fit: contain;
}

.header-right {
    flex: 2;                    
    text-align: left;
    color: var(--texte-noir);
}

.header-right h1 {
    text-align: center;
    font-family: var(--font-title);
    font-size: 3rem;
    margin-bottom: 15px;
}

.header-right p {
    font-size: 0.98rem;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

/* header page "bruissements" */
header-bruissements {
    display: block;
    width: 100%;
    height: 90vh;
    background-image: url("../img/bruissements_bis.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;

}

/* header page "kermesse mortelle" */
header-kermesse {
    height: 90vh;
    background-image: url("../img/header_kermesse.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* header page "lilas" */
header-lilas {
    height: 90vh;
    background-image: url("../img/lilas.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* header page "l'équipe" */
header-equipe {
    height: 90vh;
    background-image: url("../img/header_equipe.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* header page "ressources" */
header-ressources {
    height: 90vh;
    background-image: url("../img/header_docu.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* header page "agenda" */
header-agenda {
    height: 90vh;
    background-image: url("../img/annees.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* header page "contact" */
header-contact {
    height: 90vh;
    background-image: url("../img/header_contact.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* contenu textes du header des pages de tes créations */
.header-creations-content {
    color: var(--texte-blanc);
      background-color: rgba(255, 202, 111, 0.8);
    padding: 30px 50px;
    border-radius: 10px;
    max-width: 700px;
    width: 90%;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header-creations-content h1 {
    text-align: center;
    font-family: var(--font-title);
    font-size: 7rem;
    margin-bottom: 15px;
}

.header-creations-content p {
    color: var(--texte-noir);
    font-weight: 500;
    font-size: 1.2rem;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  header,
  .header-bruissements,
  .header-kermesse,
  .header-lilas,
  .header-equipe,
  .header-ressources,
  .header-agenda,
  .header-contact {
    min-height: 70vh;
    height: auto;
  }
}



@media (max-width: 1024px) {
    .header-right h1 {
        font-size: 2.5rem;
    }

    .header-right p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    header {
        height: auto;             
        padding: 15px;
    }

    .header-content {
        flex-direction: column;    
        gap: 20px;
        margin: 50px auto;
        padding: 20px 25px;
        text-align: center;
    }

    .header-right h1 {
        font-size: 2rem;
    }

    .header-right p {
        font-size: 1rem;
    }

    .header-left img {
        max-width: 200px;         
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .header-creations-content h1 {
        font-size: 3rem;
        line-height: 1.1;
    }
}

@media (max-width: 480px) {
    .header-creations-content h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 480px) {
  h1 {
    word-break: break-word;
    hyphens: auto;
  }

  .crea-image-title {
    font-size: 2.5rem;
  }
}






/* =========================
   CONTAINER PRINCIPAL
========================= */
.container {
    margin: 50px auto;
    padding: 0 10px;
    color: var(--texte-noir);
    max-width: 1200px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .container {
        margin: 20px 0;
        padding: 0 15px;
    }
}

/* Titres de sections avec les cailloux colorés au centre */
.section-bulles {
    display: flex;
    flex-direction: column;  
    align-items: center;    
    justify-content: center; 
    text-align: center;      
    margin: 80px 0;         
}

.section-bulles .bulles-img {
    max-width: 200px;        
    width: 100%;           
    height: auto;
    margin-bottom: 20px;     
}

.section-bulles h1 {
    font-size: 4rem;
    font-family: var(--font-title);
    color: var(--couleur-secondaire);
    margin: 0;
}

.section-bulles h2 {
    font-size: 2rem;
    font-family: var(--font-title);
    color: var(--couleur-secondaire);
    margin: 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .section-bulles .bulles-img {
        max-width: 120px;  
    }

    .section-bulles h1 {
        font-size: 3rem;
    }
}


/* Portraits */
.portraits-grid {
    display: grid;
    grid-template-columns: 180px 1fr 180px 1fr;
    column-gap: 80px;
    align-items: stretch;
    margin: 5px 0;
}

.portraits-grid2 {
    display: grid;
    grid-template-columns: 180px 1fr 180px 1fr;
    column-gap: 30px;
    align-items: stretch;
    margin: 5px 0;
}

/* Images */
.portrait-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

/* Texte */
.portrait-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--couleur-secondaire);
}

/* Titres */
.portrait-text h1 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin: 0 0 5px 0;
}

.portrait-text h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 550;
}

.portrait-text h3 {
    font-size: 1.2rem;
    font-weight: normal;
    margin: 0 0 12px 0;
    opacity: 0.8;
}


/* Paragraphe */
.portrait-text p {
    color: var(--texte-noir);
    margin: 0;
    line-height: 1.6;
    text-align: justify;
}

.portrait-text a {
    color: var(--couleur-secondaire); 
    text-align: end;
    margin-top: 20px;
    text-decoration: overline;
    text-decoration-thickness: 2px; 
    text-underline-offset: 20px;   
    font-style: italic;
    border-bottom: 2px solid transparent; 
    transition: all 0.3s ease;     
}

.portrait-text a:hover {
    color: var(--texte-noir);      
    border-bottom-color: var(--texte-noir); 
}

/* section compagnie sur la page 1 (index) */

.equipecie {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    margin: 3px 0;
}

/* section créations sur la page 1 (index) */
.page1_creations {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    margin: 60px 0;
}

.page1_creations .creation {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.page1_creations .creation img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Titre sur l'image */
.creation-title {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-title);
    color: var(--texte-blanc);
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    opacity: 0.7;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Hover / survol */
.page1_creations .creation:hover img {
    transform: scale(1.05);
    filter: brightness(0.3);
}

.page1_creations .creation:hover .creation-title {
    opacity: 1;
    font-size: 2rem;
}

/* section partenaires sur la page 1 (index) */
.page1_partenaires {
    display: flex;
    justify-content: space-between; /* répartit les logos sur toute la largeur */
    align-items: center;          
    gap: 15px;                      
    margin: 60px 0;
    flex-wrap: wrap;              
}

.partenaire-logo {
    width: 100px;    
    height: 100px;   
    object-fit: contain; 
    transition: transform 0.3s ease;
}

/* Effet au survol */
.partenaire-logo:hover {
    transform: scale(1.1); /* zoom léger sur le logo */
}

/* =========================
   ÉQUIPE
========================= */

.equipe {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin: 60px 0;
    text-align: center;
}

.membre img {
    width: 100%;
    aspect-ratio: 1 / 1;     /* carré */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}



.membre .nom {
    position: relative;
    font-family: var(--font-title);
    color: var(--couleur-secondaire);
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.membre .nom::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4em; /* ajuste verticalement */
    width: 20px;
    height: 20px;
}


.membre .fonction {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--texte-noir);
}

.membre .titre {
    font-size: 1.2rem;
    color: var(--texte-noir);
}

.membre a {
    text-decoration: underline;
    color: var(--couleur-secondaire);
}

.membre a:hover {
    text-decoration: underline;
    color: var(--texte-noir);
}


@media (max-width: 1024px) {
    .equipe {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .equipe {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .equipe {
        grid-template-columns: 1fr;
    }
}


/* =========================
   RESSOURCES
========================= */

.ressources {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin: 60px 0;
    text-align: center;
}

.listing img {
    width: 100%;
    aspect-ratio: 1 / 1;     /* carré */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}



.listing .nom {
    position: relative;
    padding-left: 35px; /* espace pour l’icône */
    font-family: var(--font-title);
    color: var(--couleur-secondaire);
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.listing .nom::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4em; /* ajuste verticalement */
    width: 20px;
    height: 20px;
    background-image: url("../img/icone_puce.svg");
    background-size: contain;
    background-repeat: no-repeat;
}


.listing .fonction {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--texte-noir);
}

.listing .titre {
    font-size: 1.2rem;
    color: var(--texte-noir);
}

.listing a {
    text-decoration: underline;
    color: var(--couleur-secondaire);
}

.listing a:hover {
    text-decoration: underline;
    color: var(--texte-noir);
}


@media (max-width: 1024px) {
    .ressources {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ressources {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ressources {
        grid-template-columns: 1fr;
    }
}





/* =========================
   LES PAGES "CREATIONS"
========================= */
.creations {
    display: grid;
    grid-template-columns: 1fr 3fr; /* 1/4 gauche – 3/4 droite */
    margin: 60px 0;
    min-height: 300px;
}

@media (max-width: 768px) {
    .creations {
        margin: 25px 0;
        min-height: auto; /* important */
    }
}


/* colonne de gauche */
.crea-left {
    border-radius: 8px;
    height: auto;
}

.crea-left-content {
    background-color: var(--couleur-principale);
    border-radius: 8px;
    padding: 30px 20px;
    height: auto;
}

/* Titre avec puce caillou */
.crea-left h1 {
    position: relative;
    margin-bottom: 20px;
    padding-left: 75px;
    text-align: left;
    font-family: var(--font-title);
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--texte-noir);
}


/* Puce caillou avant le h1 */
.crea-left h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%); /* centrage vertical */
    width: 60px;
    height: 60px;
    background-image: url("../img/caillou.svg");
    background-size: contain;
    background-repeat: no-repeat;
}



.crea-left ul {
    border-bottom: 2px dotted var(--texte-noir); /* POINTILLÉS */
    border-top: 2px dotted var(--texte-noir); /* POINTILLÉS */
    list-style: none; 
    padding: 30px 10px 10px 10px;
    margin: 0;
}

.crea-left li {
    position: relative;
    padding-left: 15px; /* espace pour la puce personnalisée */
    margin-bottom: 15px;
    color: var(--texte-noir);
    font-size: 1rem;
}

/* Ligne de séparation pleine largeur avant le bouton */
.btn-telecharger {
  position: relative;
  display: block;
  width: fit-content;
  margin: 30px auto 0;
  text-align: center;
  background: var(--texte-noir);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s ease;
}


.btn-telecharger:hover {
  background: var(--couleur-secondaire);
}



/* colonne droite */
.crea-right {
    padding: 0px 0px 0px 30px;
    background-color: transparent;
    color: var(--texte-noir);
}

.crea-right h1 {
    position: relative;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-left: 75px;
    text-align: left;
    font-family: var(--font-title);
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--texte-noir);
}


/* Puce caillou avant le h1 */
.crea-right h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%); /* centrage vertical */
    width: 60px;
    height: 60px;
    background-image: url("../img/caillou.svg");
    background-size: contain;
    background-repeat: no-repeat;
}

.crea-right h4 {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--texte-noir);
}


/* Wrapper image */
.crea-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px; /* hauteur fixe  */
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 8px;
}

/* Image */
.crea-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Titre sur l’image */
.crea-image-title {
    position: absolute;
    top: 50%;                 /* centre verticalement */
    left: 50%;                /* centre horizontalement */
    transform: translate(-50%, -50%); /* ajuste le centrage exact */
    font-family: var(--font-title);
    font-size: 4rem;
    color: var(--texte-blanc);
    text-shadow: 0 2px 6px rgba(0,0,0,0.5); /* lisibilité */
    pointer-events: none;     
    text-align: center;      
}


.crea-right p {
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: justify;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .creations{
        grid-template-columns: 1fr; /* une seule colonne */
    }

    .crea-left,
    .crea-right {
        padding: 20px;
    }
}


/* =========================
   AGENDA — TIMELINE
   ========================= */


.agenda{
    position: relative;
    background-image: url('../img/caillou_blanc.svg');
    background-repeat: no-repeat;
    background-position: top center; /* centre en haut */
    background-size: contain;        /* garde les proportions de l'image */ 
    padding-top: 15px;
}

.timeline {
  position: relative;   
  list-style: none;
  padding: 0;
  width: 100%;
}

/* Ligne verticale centrale */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--couleur-secondaire),
    var(--couleur-principale),
    var(--texte-noir)
  );
  transform: translateX(-50%);
  border-radius: 10px;
  opacity: 0.7;
}

/* Éléments */
.timeline li {
  position: relative;
  margin: 40px 0;
  width: 50%;
}

/* Décor bulles/paillettes */
.timeline li::before {
  content: "";
  position: absolute;
  top: 15px;
  width: 22px;
  height: 22px;
  background: url('../img/bulles.svg') center/cover no-repeat;
  border-radius: 50%;
  z-index: 3;
}

/* Alternance gauche/droite */
.timeline li:nth-child(odd) {
  left: 0;
  padding-right: 40px;
  text-align: right;
}

.timeline li:nth-child(odd)::before {
  right: -11px; /* pastille centrée sur la ligne */
}

.timeline li:nth-child(even) {
  left: 50%;
  padding-left: 40px;
  text-align: left;
}

.timeline li:nth-child(even)::before {
  left: -11px;
}

/* Bloc contenu */
.timeline .content {
  padding: 20px 25px;
  border-radius: 12px;
  border: 1px solid var(--texte-noir);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);

  transition: 0.3s ease;
}

/* Hover animation */
.timeline .content:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Titre */
.timeline strong {
  font-family: var(--font-title);
  font-size: 1.7em;
  color: var(--couleur-secondaire);
  display: block;
  margin-bottom: 6px;
}

/* Date */
.timeline .date {
  font-weight: 600;
  color: var(--texte-noir);
}

/* Lieu */
.timeline .lieu {
  font-style: italic;
  color: var(--texte-noir);
}


/* =========================
   CONTACT
========================= */

.contact {
    margin: 80px 0;
    text-align: center;
}

.contact h2 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    color: var(--couleur-secondaire);
    margin-bottom: 40px;
}

.contact-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.contact-item {
    background-color: var(--couleur-principale);
    padding: 25px 20px;
    border-radius: 8px;
}

.contact-item strong {
    display: block;
    font-family: var(--font-title);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contact-item a,
.contact-item p {
    color: var(--texte-noir);
    font-size: 1rem;
    line-height: 1.4;
    text-decoration: none;
}

.contact-item a:hover{
    color: var(--texte-blanc);
}

.contact-item ul {
    list-style: none;   
    padding: 0;        
    margin: 0;
}


.contact-item li {
    margin-bottom: 6px;
}


@media (max-width: 1024px) {
    .contact-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contact-items {
        grid-template-columns: 1fr;
    }
}


/* =========================
   Responsive — mobile
   ========================= */

@media (max-width: 700px) {
  
  /* Ligne recentrée */
  .timeline::before {
    left: 20px;
    transform: none;
  }

  /* Éléments en une colonne */
  .timeline li,
  .timeline li:nth-child(odd),
  .timeline li:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 0 50px;
  }

  /* Pastille */
  .timeline li::before {
    left: 9px;
    right: auto;
  }
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 600px) {
  .agenda-cadre {
    width: 140px;
    height: 140px;
  }

  .agenda li strong {
    font-size: 1.5em;
  }
}




.site-footer {
    background-color: var(--couleur-principale); 
    color: var(--texte-noir);             
    text-align: center;                        
    padding: 20px 10px;              
    font-size: 0.9rem;                           
}

.site-footer a {
    color: var(--texte-noir);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--texte-noir); 
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .site-footer {
        font-size: 0.85rem;
        padding: 15px 5px;
    }
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .page1_partenaires {
        justify-content: center; 
        gap: 10px;
    }
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .page1_creations {
        grid-template-columns: repeat(2, 1fr);
    }

    .page1_creations .creation {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .page1_creations {
        grid-template-columns: 1fr; /* 1 colonne mobile */
    }

    .page1_creations .creation {
        height: 200px; /* hauteur réduite sur mobile */
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .portraits-grid {
        grid-template-columns: 1fr;
        row-gap: 30px;
    }
}



/* =========================
   RESPONSIVE (<768px)
========================= */
@media (max-width: 768px) {

    /* Navbar */
    .navbar {
        flex-wrap: wrap; /* permet au menu de descendre */
    }

    /* Afficher burger */
    .menu-icon {
        display: flex;
    }

    /* Masquer le menu principal par défaut */
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
         color: var(--texte-noir);
        background-color: var(--couleur-principale);
        border-radius: 6px;
        overflow: hidden;
    }

    /* Afficher le menu quand checkbox checked */
    #menu-toggle:checked + .menu-icon + .menu {
        display: flex;
    }

    /* Sous-menu sur mobile */
    .submenu {
        position: static;
        display: block;
        width: 100%;
        background-color: var(--couleur-secondaire);
        margin: 0;
    }

    .submenu a {
        color: var(--texte-blanc);
    }

    .menu li:hover .submenu {
        display: block; 
    }
}
