/* ----------- POLICES ----------- */
@font-face {
  font-family: 'IndivisibleVariableLight';
  src: url('fonts/Indivisible-VariableLight.woff2') format('woff2');
  font-weight: 100 300;
  font-style: normal;
}

@font-face {
  font-family: 'IndivisibleBold';
  src: url('fonts/Indivisible-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

/* ----------- HEADER ----------- */
header {
  width: 100%;
  height: 160px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: center;
  position: relative;
  z-index: 10;
  font-family: 'IndivisibleVariableLight', sans-serif;
}

header a {
  display: inline-block;
  height: auto;
}

/* ACCC avec menus déroulants */
.accc {
  display: flex;
  justify-content: center;
  gap: 400px;
  grid-column: 2;
  grid-row: 1;
  z-index: 110;
}

/* Menu déroulant */
.menu-container {
  position: relative;
  display: grid;
}

.menu-link {
  cursor: pointer;
  color: red;
  text-decoration: none;
  font-family: 'IndivisibleVariableLight', sans-serif;
  position: relative;
  z-index: 105;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 120%;
  left: 0;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  min-width: 220px;
  padding: 10px 0;
  display: none;
  z-index: 120; /* au-dessus de la bande et vidéo */
}

.menu-container:hover .dropdown {
  display: block;
}

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

.dropdown ul li a {
  display: block;
  padding: 8px 20px;
  color: red;
  text-decoration: none;
  transition: background 0.2s ease;
}

.dropdown ul li a:hover {
  background-color: #f5f5f5;
}

/* LOGO */
.imgac {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
}

.left-link {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  text-decoration: none;
  color: red;
}

.left-link:hover {
  color: rgb(255, 157, 157);
}

header img {
  height: 120px;
  width: auto;
}

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

/* ----------- BANDE DÉFILANTE ----------- */
.bande {
  width: 100%;
  height: 20px;
  background: rgb(255, 0, 0);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 0;
}

.bande .contenu {
  display: flex;
  width: max-content;
  animation: defilement 15s linear infinite;
}

.bande span {
  font-family: 'IndivisibleVariableLight', sans-serif;
  font-size: 14px;
  color: white;
  padding-right: 40px;
  text-transform: uppercase;
}

@keyframes defilement {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----------- VIDÉO ----------- */
.video-container {
  width: 100%;
  height: calc(100vh - 220px + 100px);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------- GRILLE DE PROJETS FIXE ----------- */
.projects-grid {
  position: absolute;
  display: grid;
  grid-template-columns: repeat (5, 1fr);
  left: 50%;
  transform: translateX(-50%);
  gap: 15px;
  top: 300px;
  width: 90%;
  max-width: 1400px;
  grid-auto-rows: 180px;
  z-index: 5;
}

@media (max-width: 768px) {
  .projects-grid {
    position: absolute;
    top: 300px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 110px;
    grid-gap: 20px;
    z-index: 5;
}
}

.project-item {
  background: rgba(255, 255, 255, 0.744);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.project-label {
  font-family: 'IndivisibleBold', sans-serif;
  font-size: 20px;
  color: red;
  text-align: center;
  z-index: 2;
}

/* Carré unique 2x2 pour projets 6,7,9,10 */
.projects-grid .big-square {
  grid-column: 1 / 3; /* colonnes 1 et 2 */
  grid-row: 2 / 4;    /* lignes 2 et 3 */
}

/* ----------- RESPONSIVE ----------- */
@media (max-width: 1200px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

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

.project11{
  grid-column: 3 / 6; /* colonnes 1 et 2 */
  grid-row: 1;    /* lignes 2 et 3 */
}

@media (max-width: 768px) {
  .project11{
  grid-column: 1 / 3; /* colonnes 1 et 2 */
  grid-row: 5;    /* lignes 2 et 3 */
}
}

.project3{
  grid-column: 3 / 6; /* colonnes 1 et 2 */
  grid-row: 2 / 4;    /* lignes 2 et 3 */
}

@media (max-width: 768px) {
  .project3{
  grid-column: 1 / 3; /* colonnes 1 et 2 */
  grid-row: 4 ;    /* lignes 2 et 3 */
}
}

@media (max-width: 768px) {
  .big-square{
  grid-column: 1 / 3; /* colonnes 1 et 2 */
  grid-row: 2 ;    /* lignes 2 et 3 */
}
}

/* Header général */
.header-hardanger {
    display: flex;
    align-items: center;     /* titre centré verticalement sur la hauteur du header */
    gap: 15px;               /* espace entre l'image et le titre */
    padding: 10px 15px;
}

/* Image du header */
.header-hardanger img {
    height: 50px;            /* header fin */
    width: auto;
    border-radius: 6px;
    cursor: pointer;
}

/* Titre HARDANGER TYPE */
.hardanger-title {
    font-family: "IndivisibleVariable", sans-serif; /* ta typo variable */
    font-variation-settings: "wght" 700;            /* bold variable */
    margin: 0;
    padding: 0;
    color: red;
    line-height: 50px;        /* prend la hauteur du header (même que l'image) */
    font-size: 20px;          /* tu peux ajuster */
    letter-spacing: 1px;
    text-align: right;         /* ← corrigé */
}

@media (max-width:768px){
  .hardanger-title {
    font-family: "IndivisibleVariable", sans-serif; /* ta typo variable */
    font-variation-settings: "wght" 700;            /* bold variable */
    margin: 0;
    padding: 0;
    color: red;
    line-height: 50px;        /* prend la hauteur du header (même que l'image) */
    font-size: 15px;          /* tu peux ajuster */
    letter-spacing: 1px;
    text-align: right;         /* ← corrigé */
}
}

/* Grid des spécimens typographiques */
.specimen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* deux colonnes pleine largeur */
    gap: 20px;                       /* espace entre les images */
    width: 100%;
    padding: 20px;
}

.specimen-grid img {
    width: 100%;     /* les images prennent toute la largeur */
    height: auto;
    display: block;
}

.carousel-grid {
  display: grid;
  justify-content: center; /* centre horizontalement la grille */
  padding: 20px;
  width: 100%;
}

/* Carousel Hardanger en display grid et centré */
.carousel-grid {
    display: grid;
    justify-items: center;  /* centre le contenu horizontalement */
    padding: 20px;
    width: 100%;
}

.carousel-grid .carousel-image {
    width: 80%;         /* largeur de l'image */
    max-width: 1200px;  /* limite sur grands écrans */
    height: auto;

    cursor: pointer;
    /* margin: auto; inutile car justify-items: center gère le centrage */
}

/* ----------- GALERIE DAILY PICS (3 colonnes) ----------- */
/*.photo-grid {
  width: 90%;
  max-width: 1400px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.photo-grid .photo-item {
  overflow: hidden;
}

.photo-grid img {
  width: 100%;
  height: auto; 
  display: block;
}

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

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

.summergrid{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 10px;
}

.summergrid img{
 width: 100%;
 height: auto;
 object-fit: cover;
 grid-row: 3;
}

@media (max-width: 768px){
  .summergrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  }

}

@media (max-width: 560px){
  .summergrid{
  display: grid;
  grid-template-columns:1fr;
  gap: 10px;
  }
}

.page{
  overflow-x: hidden;
}

.txtsummer {
  display: grid;            /* active la grille sur le texte */
  grid-template-columns: 1fr; /* une seule colonne à l'intérieur du bloc texte */
  max-width: 1000px;         /* largeur maximale pour rester dans la "2ème colonne" visuelle */
  margin: 0 auto;           /* centre horizontalement le texte dans son conteneur */
  word-break: break-word;   /* découpe les mots trop longs */
  margin-bottom: 70px;
}

.txtsummerr{
  font-family: "IndivisibleBold", sans-serif;
  color: red;
  text-align: justify;
  font-size: 18px;
  margin-right: 20px;
}

.grid-video-messengerbag {
  display: grid;
  grid-template-columns: 1fr 1fr; /* deux colonnes */
  gap: 30px; /* espacement exact */
  width: 100%;
  margin-bottom: 60px;
}

.grid-video-messengerbag video {
  width: 100%;
  height: auto;
  display: block; /* évite les espaces parasites */
}

@media (max-width: 768px) {
  .grid-video-messengerbag {
    grid-template-columns: 1fr; /* une seule colonne sur mobile */
  }
}

@media (max-width: 768px) {
  .txtsummerr{
  font-family: "IndivisibleBold", sans-serif;
  color: red;
  text-align: justify;
  font-size: 15spx;
}
}

.messenger-gallery {
  width: 90%;
  max-width: 1400px;
  margin: 40px auto;
  
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.messenger-gallery img {
  width: 100%;
  height: auto;        /* garde le ratio original */
  display: block;
object-fit: cover;   /* enlève les espaces blancs */
}

/* TABLETTE — 2 colonnes */
@media (max-width: 900px) {
  .messenger-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE — 1 colonne */
@media (max-width: 500px) {
  .messenger-gallery {
    grid-template-columns: 1fr;
  }
}

.yoshidiv{
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: auto;
  margin-top: 50px;
}

.carousel-gridyoshino {
  display: grid;
  justify-content: center; 
  place-items: center;
  padding: 20px;
  width: 100%;
  margin-bottom: 100px;
}

.carousel-gridyoshino {
    justify-items: center;  
    padding: 20px;
    width: 100%;
}

.carousel-gridyoshino .carousel-image {
    width: 80%;  
    max-width: 1200px; 
    height: auto;
    cursor: pointer;
}

.imgyoshino{
  width: 40%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 100px;
}

.imgyoshino-container {
  display: grid;
  place-items: center; /* centre horizontalement + verticalement */
  width: 100%;
}

.grid-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 30%); /* 3 colonnes */
  gap: 20px; /* marge entre les images */
  padding: 20px; /* marge intérieure de la page */
}

.grid-wrapper img {
  width: 100%;       /* image adaptative */
  height: auto;      /* conserve les proportions */
  max-height: 1000px; /* limite de hauteur */
  object-fit: contain; /* rentre toujours dans son espace */
  display: block;
  }

  .carousel-grid2 {
  display: grid;
  justify-content: center; /* centre horizontalement la grille */
  grid-column: 2/4;
  padding: 20px;
  width: 100%;
}

/* Carousel Hardanger en display grid et centré */
.carousel-grid2 {
    display: grid;
    justify-items: center;  /* centre le contenu horizontalement */
      grid-column: 2/4;
    padding: 20px;
    width: 100%;
}

  .carousel-grid3 {
  display: grid;
  justify-content: center; /* centre horizontalement la grille */
  grid-column: 1/2;
  padding: 20px;
  width: 100%;
}

/* Carousel Hardanger en display grid et centré */
.carousel-grid3 {
    display: grid;
    justify-items: left;  /* centre le contenu horizontalement */
      grid-column: 1/2;
    padding: 20px;
    width: 100%;
}

.carousel-grid4 {
    display: grid;
    justify-items: left;  /* centre le contenu horizontalement */
      grid-column: 2/3;
    padding: 20px;
    width: 100%;
}
.grid5 {
  display: grid;
    justify-items: center;  /* centre le contenu horizontalement */
      grid-column: 1/3;
      ;
}

.apoc{
  width: 100%
}

.row2{
  grid-row: span 2;
}

.txtsummer2{
  font-family: "IndivisibleBold", sans-serif;
  color: red;
  text-align: justify;
  font-size: 18px;
  margin-right: 20px;
}

@media (max-width: 768px) {
  .txtsummer2{
  font-family: "IndivisibleBold", sans-serif;
  color: red;
  text-align: justify;
  font-size: 8px;
}
}

.textac{
  font-family: "IndivisibleBold", sans-serif;
  color: red;
  text-align: justify;
  font-size: 14px;
  margin: 20px;
}

@media (max-width: 1200px) {
  .textac{
  font-family: "IndivisibleBold", sans-serif;
  color: red;
  text-align: justify;
  font-size: 8px;
  margin: 20px;
}
}

.videorx7{
  width: 73%;
  height: auto;
  display: block;
  justify-self: center;
}

.gridrx7{
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  align-items: center;
}

/* === SLIDER D'IMAGES INFINI === */
#slider-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #fff;
}

#slider {
  display: flex;
  gap: 20px;
  animation: slide 15s linear infinite;
}

#slider img {
  max-height: 100%;
  max-width: 300px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
}

/* Animation du défilement */
@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}