/* 1. Déclaration des polices */
@font-face {
  font-family: 'Buccardi std';
  src: url('font/Buccardi-Std-Regular.woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Buccardi italic';
  src: url('font/Buccardi-Std-Italic.woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* 2. Reset et styles de base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: black;
  color: #ffffff;
  overflow-x: hidden;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input[type="submit"] {
  -webkit-appearance: none;
  border-radius: 0;
}

input, select, textarea {
  font-size: 16px;
}

/* 3. Section d'intro */
/* --- SECTION D'INTRO --- */
.info {
  font-family: 'Buccardi std', sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  font-size: 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
}

.info-ligne {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem; /* Espace propre entre le nom et le métier */
  white-space: nowrap; /* Empêche le saut de ligne sauvage */
}

.info-contact {
  margin-top: 0.3rem;
}

.info-fleche {
  margin-top: 4rem;
}

/* 4. Section Projet */
.section-projet {
  font-family: 'Buccardi std', sans-serif;
  display: flex;
  flex-direction: column;
  height: 85vh;
  height: 85dvh;
  width: 100%;
  background-color: black;
  overflow: hidden;
  padding: 1rem 3rem 0 3rem;
  margin-bottom: 15vh;
}

/* --- EN-TÊTE --- */
.entete-textes {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
  width: 100%;
  margin-bottom: 1rem;
}

.bloc-gauche,
.bloc-droit {
  text-align: center;
  max-width: 40%;
}

.bloc-centre {
  text-align: center;
  max-width: 60%;
}

.bloc-gauche h2 {
  font-size: 20px;
  padding-left: 3rem;
}

.bloc-gauche p,
.bloc-droit p,
.bloc-centre {
  margin: 0;
  padding: 0;
  padding-left: 3rem;
  font-size: 17px;
}

.entete-textes h2 {
  font-family: 'Buccardi italic', sans-serif;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.entete-textes p {
  font-family: 'Buccardi std', sans-serif;
  line-height: 1;
}

/* --- GALERIE --- */
.galerie-wrapper {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.galerie-rail {
  display: flex;
  height: 100%;
  width: 100%;
  will-change: transform;
}

.galerie-rail .item {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.galerie-rail img {
  max-height: 95%;
  max-width: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  display: block;
}

/* --- BOUTONS NAVIGATION --- */
.zone-clic {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.zone-clic:hover {
  opacity: 0.6;
}

.zone-gauche {
  left: 0;
}

.zone-droite {
  right: 0;
}

/* --- GRILLES D'IMAGES (DESKTOP) --- */
.grille-trois-colonnes {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  width: 100%;
  height: 100%;
}

.grille-colonne {
  height: 100%;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.grille-colonne img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.grille-paysage-egal .grille-colonne img {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}

.grille-deux-colonnes {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  height: 100%;
}

.grille-deux-colonnes .grille-colonne {
  height: 100%;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.grille-deux-colonnes .grille-colonne:first-child {
  justify-content: flex-end;
}

.grille-deux-colonnes .grille-colonne:last-child {
  justify-content: flex-start;
}

.vue-seule {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vue-seule img {
  max-width: 85%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* --- SECTION BIO --- */
.section-bio {
  font-family: 'Buccardi std', sans-serif;
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  padding: 3.5rem 3rem 6rem 3rem;
  padding-bottom: calc(6rem + env(safe-area-inset-bottom));
}

.bio-colonnes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10rem;
  width: 100%;
  align-items: start;
}

.bio-colonne {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  text-align: left;
}

.bio-titre {
  font-family: 'Buccardi std', sans-serif;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 2rem 0;
  width: 100%;
}

.bio-corps {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.bio-corps p,
.bio-corps h3,
.bio-corps ul,
.bio-corps li {
  width: 100%;
  text-align: left;
  list-style-type: none;
  font-size: 17px;
}

.bio-corps li {
  padding-left: 3rem;
}

.bio-corps a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* =========================================================
   RÈGLES RESPONSIVE MOBILE / IPHONE (Max-width: 820px)
   ========================================================= */
@media screen and (max-width: 820px) {

  .info {
    font-size: 20px;
    padding: 1.5rem;
  }

  .section-projet {
    height: auto;
    min-height: unset;
    padding: 1.5rem 1rem 0 1rem;
    margin-bottom: 6rem;
  }

  .entete-textes {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .bloc-gauche,
  .bloc-centre,
  .bloc-droit {
    max-width: 100%;
    width: 100%;
    text-align: left;
  }

  .bloc-gauche h2,
  .bloc-gauche p,
  .bloc-droit p,
  .bloc-centre {
    padding-left: 0;
    font-size: 15px;
  }

  .bloc-gauche h2 {
    font-size: 18px;
  }

  .galerie-wrapper {
    height: 55vh;
    height: 55dvh;
    min-height: 320px;
  }

  .galerie-rail img {
    max-width: 100%;
    max-height: 100%;
  }

  .zone-clic {
    padding: 0.5rem;
    font-size: 1.6rem;
  }

  .grille-trois-colonnes,
  .grille-deux-colonnes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: auto;
  }

  .grille-colonne {
    width: 100%;
    height: auto;
  }

  .grille-colonne img {
    width: 100%;
    height: auto;
    max-height: 70vh;
  }

  .vue-seule img {
    max-width: 100%;
    max-height: 60vh;
  }

  .section-bio {
    padding: 3rem 1.2rem 5rem 1.2rem;
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  }

  .bio-colonnes {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .bio-titre {
    font-size: 26px;
    margin-bottom: 1rem;
  }

  .bio-corps li {
    padding-left: 1rem;
  }
}