/* Reset de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Corps général */
body {
  background-color: #fff;
  color: #111;
  padding: 2rem;
}


/* Header global */
header {
  margin-bottom: 2rem;
}

/* Flex entre icônes à gauche et titre centré */
.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Icônes à gauche */
.header-icons {
  position: absolute;
  left: 0;
  display: flex;
  gap: 1rem;
  padding-left: 2rem;
}

.header-icons img {
  width: 20px;
  height: 20px;
  filter: brightness(0); /* noir */
  transition: opacity 0.2s ease;
}

.header-icons img:hover {
  opacity: 0.6;
}

/* Titre centré */
header h1 {
  font-size: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
}

/* Menu */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #111;
  font-size: 1rem;
  position: relative;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #111;
}

footer {
  position: fixed;
  bottom: 0.5rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  font-size: 0.7rem;
  color: #101010;
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
}

.language-switch a {
  color: #111;
  text-decoration: none;
  margin: 0 0.25rem;
}

.language-switch a.active {
  text-decoration: underline;
  font-weight: 500;
}

@media screen and (max-width: 768px) {
  .footer-left {
    font-size: 0.5rem; /* plus petit sur mobile */
  }
}



/* Rêves section Nuages */


.serie {
  margin-top: 6rem; /* augmente l'espace au-dessus */
  padding: 0 2rem;
}


.serie h2 {
  font-size: 1.5rem;
  font-weight: normal;
  text-align: left;
  margin-bottom: 2rem;
}

.grid-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}


/* images plus petites mais sans les couper */


.grid-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.grid-images figure {
  width: 240px;
  height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.grid-images img {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  display: block;
  border: none;
  box-shadow: none;
}

.grid-images figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-family: 'Tai Heritage Pro', serif;
  line-height: 1.4;
  text-align: center;
  max-width: 220px;
  color: #111;
  font-style: normal;
}



.grid-images figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-family: 'Tai Heritage Pro', serif;
  line-height: 1.4;
  text-align: center;
  max-width: 220px;
  color: #111;
  font-style: normal;
}




.grid-images figcaption em {
  font-style: italic;
  font-weight: normal;
  display: inline;
}


.titre-serie {
  font-size: 1.4rem;
  font-weight: 400;
  font-variant: small-caps;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-offset: 6px;
  text-decoration-thickness: 0.5px;
  margin-top: 5rem;
  margin-bottom: 2rem;
}

.titre-serie-cauchemars {
  font-size: 1.2rem;
  font-weight: 400;
  font-variant: small-caps;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-offset: 6px;
  text-decoration-thickness: 0.5px;
  margin-top: 5rem;
  margin-bottom: 2rem;
}

.caption {
  font-family: 'Tai Heritage Pro', serif;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #444;
  margin-top: 0.5rem;
  text-align: center;
}

.caption em {
  font-style: italic;
  font-weight: 500;
}

.grid-images img.petite-image {
  max-height: 200px !important;
}


.a-propos-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  flex-wrap: wrap;
}

.a-propos-image img {
  max-width: 400px; /* par exemple, à ajuster à ton goût */
  height: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.a-propos-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
}

.a-propos-texte {
  flex: 1 1 500px;
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
}

.a-propos-texte p {
  margin-bottom: 2rem; /* ou essaye 2rem si tu veux encore plus d'espace */
}


.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.contact-texte {
  flex: 1 1 500px;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
}

.contact-texte p {
  margin-bottom: 2rem;
}

.contact-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
}

.contact-image img {
  max-width: 400px;
  height: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

a {
  color: black;
  text-decoration: underline;
}


.language-switch a {
  color: black;
  text-decoration: none;
}

.language-switch a.active {
  text-decoration: underline;
  font-weight: 500;
}

.contact-social {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* logo + texte alignés à gauche entre eux */
  max-width: 1200px; /* même largeur que contact-container */
  margin: -5rem auto 0 auto; /* centrage global */
  padding: 0 2rem;   /* même padding que le reste */
}

.contact-social a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #111;
  font-size: 1rem;
  font-family: 'Tai Heritage Pro', serif;
}

.contact-social img {
  width: 22px;
  height: 22px;
  filter: brightness(0); /* noir */
  transition: opacity 0.2s ease;
}

.contact-social:hover img {
  opacity: 0.6;
}

@media screen and (min-width: 1440px) {
  .contact-social {
    max-width: 1400px; /* même largeur que contact-container en desktop */
    margin: -5rem auto 0 auto; /* centrage horizontal et rapprochement du bloc au-dessus */
    padding: 0 2rem;
    font-size: 1.1rem; /* un peu plus grand comme ton texte contact */
  }

  .contact-social a {
    font-size: 1.3rem;
    gap: 0.8rem;
  }

  .contact-social img {
    width: 26px;
    height: 26px;
  }
}

@media screen and (max-width: 768px) {
  .contact-social {
    margin-top: 1.5rem; /* ajoute de l’air au-dessus */
    justify-content: center; /* centre à l’intérieur de la zone de contenu mobile */
  }
}



/* Styles spécifiques pour les pages de la série "Collaborations" */

.collab-content {
  margin-top: 6rem;
}

.collab-container {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  margin-top: 4rem;
  padding: 0 2rem;
}

.collab-text {
  flex: 1;
  max-width: 40%;
  text-align: justify;
}

.collab-text h2 {
  margin-bottom: 1.5rem;
}

.collab-images {
  display: flex;
  gap: 2rem;
}

.collab-images figure {
  margin: 0;
  text-align: center;
}

.collab-images img {
  width: 250px;
  height: auto;
}

@media screen and (max-width: 768px) {
  /* ordre : images d'abord, texte ensuite */
  .body-collab .collab-container {
    flex-direction: column-reverse !important;
    align-items: center;
  }

  .body-collab .collab-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    padding: 0 1rem; /* un peu d’air sur les côtés */
  }

  /* AGRANDIR LES PHOTOS SUR MOBILE */
  .body-collab .collab-images img {
    display: block;
    width: 100%;      /* pleine largeur du conteneur */
    max-width: 640px; /* grande taille, mais limitée pour ne pas pixeliser */
    height: auto;
  }

  .body-collab .collab-images figcaption {
    font-size: 0.9rem;
    max-width: 40ch; /* lisible */
    text-align: center;
  }

  .body-collab .collab-text {
    max-width: 100%;
    margin-top: 1.5rem;
    padding: 0 1rem;
    text-align: justify;
    line-height: 1.7; /* au lieu de 1.4 ou valeur par défaut */
  }
}


/* Responsive – grands écrans */
@media screen and (min-width: 1440px) {

  /* Titre principal plus grand */
  header h1 {
    font-size: 2.8rem;
  }

  /* Icônes plus grandes */
  .header-icons img {
    width: 28px;
    height: 28px;
  }

  /* Menu avec plus d'espacement et texte plus grand */
  nav ul {
    gap: 3rem;
  }

  nav a {
    font-size: 1.2rem;
  }

  /* Titres de série plus grands */
  .titre-serie {
    font-size: 1.8rem;
  }

  /* Taille des images dans les galeries */
  .grid-images figure {
    width: 280px;
    height: 380px;
  }

  .grid-images img {
    max-height: 280px;
  }

  .grid-images figcaption {
    font-size: 1.05rem;
    max-width: 260px;
  }

  .language-switch a {
    font-size: 1.2rem;
  }

  /* Agrandir texte collaboratif */
  .collab-text {
    font-size: 1.3rem;
    line-height: 1.9;
  }

  .collab-text h2 {
    font-size: 1.6rem;
  }

  /* Agrandir images collab */
  .collab-images img {
    width: 400px;
  }

  .collab-images figcaption {
    font-size: 1.25rem;
  }

  .a-propos-container {
    gap: 6rem;
    max-width: 1400px;
  }

  .a-propos-image img {
    max-width: 500px;
  }

  .a-propos-texte {
    font-size: 1.3rem;
    line-height: 2;
  }

  .a-propos-texte p {
    margin-bottom: 2.5rem;
  }

    .contact-container {
    gap: 6rem;
    max-width: 1400px;
  }

  .contact-image img {
    max-width: 500px;
  }

  .contact-texte {
    font-size: 1.3rem;
    line-height: 2;
  }

  .contact-texte p {
    margin-bottom: 2.5rem;
  }

  /* Agrandir les images dans cauchemars */
  .titre-serie-cauchemars {
    font-size: 1.6rem;
  }

  .grid-images figure {
    width: 280px;
    height: 380px;
  }

  .grid-images img {
    max-height: 280px;
  }

  .grid-images figcaption {
    font-size: 1.05rem;
    max-width: 260px;
  }
}

/* --- Mentions légales --- */
.legal-main {
  max-width: 800px;
  margin: 4rem 0;
  padding: 0 2rem;
  line-height: 1.6;
  font-family: 'Tai Heritage Pro', serif;
  text-align: left; /* forcer l'alignement à gauche */
}

.legal-main h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: normal;
}

.legal-main h3 {
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.legal-main p {
  margin-bottom: 1rem;
}

.legal-back {
  margin-top: 3rem;
}

.legal-back a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #111;
  border-radius: 4px;
  text-decoration: none;
  color: #111;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.legal-back a:hover {
  background: #111;
  color: #fff;
}




/* Responsive – petits écrans */

/* ... styles CSS globaux ... */

@media screen and (max-width: 768px) {
  /* HEADER */
  header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .header-icons {
    display: none;
  }

  header h1 {
    font-size: 1.4rem;
    letter-spacing: 1px;
    margin: 0 auto;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.75rem;
    justify-content: center;
    padding-top: 0.5rem;
  }

  /* TITRE INTRODUCTION */
  .titre-serie-cauchemars {
    text-align: justify;
    padding: 0 0.5rem;
    font-variant: normal;
    text-decoration: none;
    font-size: 1rem;
  }

  /* IMAGES EN PAIRE */
  .grid-images {
    justify-content: center;
    gap: 1rem;
  }

  .grid-images figure {
    width: 45%;
    height: auto;
  }

  .grid-images img {
    max-height: 200px;
  }

  .grid-images figcaption {
    font-size: 0.8rem;
    max-width: 100%;
  }

  /* FOOTER */
  .language-switch {
    font-size: 0.7rem;
    bottom: 0.5rem;
    right: 0.5rem;
  }
}


@media screen and (max-width: 768px) {
  body {
    overflow-x: hidden; /* empêche tout scroll horizontal parasite */
  }

  img, iframe, video {
    max-width: 100% !important;
    height: auto;
  }

  .collab-container,
  .contact-container,
  .a-propos-container {
    padding: 0 1rem; /* réduit un peu les marges pour éviter les débordements */
    max-width: 100%; /* empêche de dépasser la largeur de l’écran */
  }
}
