/* ##############################
   Global Setup
############################## */

@font-face {
  font-family: 'Cinzel';
  src: url('../fonts/Cinzel.woff2') format('woff2'),
       url('../fonts/Cinzel.woff') format('woff'),
       url('../fonts/Cinzel.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.woff2') format('woff2'),
       url('../fonts/Montserrat-Regular.woff') format('woff'),
       url('../fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root{
  --bg:#ffffff;/* blanc */
  --text:#4d4d4d;/* gris foncé */
  --muted:#999999;/* gris moyen */
  --side-padding: 200px; /* bonus variable */
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family: 'Montserrat', sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

  /* transparence des H1H2 pour meilleur SEO */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ##############################
   Header / Navigation
############################## */

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

/* Voile dégradé derrière le menu sur la page d'accueil : garantit la
   lisibilité du texte blanc quelle que soit la zone de l'image (claire
   ou sombre) qui se trouve dessous, y compris pendant le zoom Ken Burns */
body.index header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 190px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.18) 60%, rgba(0,0,0,0) 100%);
  z-index: -1;
  pointer-events: none;
}

/* Header blanc, en flux normal (pousse le contenu) : structure en
   "sandwich" — header blanc, bande grise centrale (image + contact),
   footer blanc avec les mentions légales */
body.contact header {
  position: relative;
  background: var(--bg);
}

/* Structure du header */
header .menu-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 30px 22px; /* défini l'épaisseur du header sur la page contact */
  position: relative;
}

header .left {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: 18px;
}

header .right {
  display: flex;
  font-size: 13px;
  text-transform: uppercase;
}

header .right a {
  margin-left: 24px;
  text-decoration: none;
}

header .right a:first-child {
  margin-left: 0;
}

/* -------------------------------
   COULEURS PAR DÉFAUT (toutes pages sauf index)
-------------------------------- */
header .menu-container a {
  color: var(--muted); /* gris moyen */
  text-decoration: none;
}

header .menu-container a:hover,
header .menu-container a:active {
  color: var(--text); /* gris foncé au hover */
}

/* -------------------------------
   PAGE INDEX : MENU BLANC AU REPOS
-------------------------------- */
body.index header .menu-container a,
body.index header .menu-container .lang-switch {
  color: #fff; /* blanc */
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

/* Hover spécifique pour index */
body.index header .menu-container a:hover {
  color:var(--text); /* gris foncé */
}

/* -------------------------------
   ETAT "PAGE COURANTE" DANS LE MENU
   (avant cette règle, class="active" sur le lien Contact
   n'avait aucun effet visuel : rien ne la stylait)
-------------------------------- */
header .menu-container a.active,
.mobile-menu a.active {
  color: var(--text);
  border-bottom: 1px solid var(--text);
}

body.index header .menu-container a.active {
  color: #fff;
  border-bottom: 1px solid #fff;
}

/* -------------------------------
   PAGE INDEX : FONDU D'ENTREE DU HEADER
-------------------------------- */
body.index header {
  animation: fadeInDown 1.4s ease-out both;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  body.index header { animation: none; }
}

/* ============================================
   SWITCH DE LANGUE FR / EN
=============================================== */

.lang-switch {
  background: none;
  border: 1px solid currentColor;
  color: inherit;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-left: 24px;
  cursor: pointer;
  border-radius: 2px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.lang-switch:hover {
  opacity: 1;
}

.mobile-menu .lang-switch {
  margin-left: 0;
  align-self: flex-start;
  color: #fff;
}

/* ============================================
   OPTION B — MENU HAMBURGER
=============================================== */

.hamburger {
  display: none;
  flex-direction: column;
  width: 28px;
  height: 20px;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 9999;
}

.hamburger span {
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}


.mobile-menu {
  position: fixed;
  right: -260px;
  top: 0;
  width: 260px;
  height: 100vh;
  background: rgba(48, 48, 48, 0.9);
  display: flex;
  flex-direction: column;
  padding: 80px 30px;
  gap: 30px;
  transition: 0.35s ease;
  z-index: 9998;
}


.mobile-menu a:hover {
  color: #eaeaea;
  border-color: rgba(255,255,255,0.35);
}


.mobile-menu a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
}

/* Responsive activation */
@media(max-width: 700px) {
  .hamburger {
    display: flex;
  }

  header .right {
    display: none;
  }
}

/* Etat ouvert */
.mobile-menu.open {
  right: 0;
}

/* Animation du bouton */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hamburger blanc sur la page index (cohérent avec le reste du menu) */
body.index .hamburger span {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

/* Hamburger gris fonce sur toutes les autres pages */
body:not(.index) .hamburger span {
  background: var(--muted);
}

/* Transitions / styles communs */
.hamburger span {
  transition: background-color 0.3s ease;
}

/* Alignement parfait du hamburger avec le logo sur mobile */
@media(max-width: 700px) {

  /* On met le container en "colonne" */
  header .menu-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 20px;
  }

  /* Le logo reste à gauche */
  header .left {
    margin-right: auto;
  }


  /* marge élégante à droite pour le hamburger */
  .hamburger {
    margin-left: 18px; /* Tu peux augmenter à 12–16px si tu veux plus d’air */
  }
}


/* ===============================
   == INTERRUPTEURS DE PAGES ==
   (conserver les toggles cachés si besoin)
   =============================== */

/* Photography toggle — caché par défaut */
.toggle-photography {
  display: none;
}

/* "Will you come for summer" — en attente d'une 2e œuvre au format carré */
.toggle-will-you-come-for-summer {
  display: none;
}

/* "Will it shine bright?" — en attente de publier le duo en même temps */
.toggle-will-it-shine-bright {
  display: none;
}

/* Painting toggle — activé par défaut (laisser commenté si besoin) */
.toggle-painting {
  /* display: none; */
}

/* Instagram toggle — caché par défaut */
.toggle-instagram {
  display: none !important;
}


/* ##############################
   Home Fullscreen BG
############################## */

.fullscreen-bg{
  position:relative;
  width:100%;
  height:100vh;
  overflow:hidden;
}
.fullscreen-bg img{
  width:100%;height:100%;object-fit:cover;
  animation: kenburns 32s ease-in-out infinite alternate;
  will-change: transform;
}

/* Respecte les préférences d'accessibilité : pas d'animation si l'utilisateur
   a désactivé les animations dans son système */
@media (prefers-reduced-motion: reduce) {
  .fullscreen-bg img,
  .contact-split-img img {
    animation: none;
  }
}

@keyframes kenburns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}


/* ##############################
   Gallery
############################## */

main{padding:40px 0;margin-top:20px}

/* Correction page index : supprime l'espace sous l'image */
body.index main {
  margin: 0;
  padding: 0;
}

.gallery{
  display:grid;
  /* On force deux colonnes sur desktop pour retrouver la grille précédente */
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap:24px;
  margin:40px auto;
  max-width:1200px;
  padding:0 var(--side-padding);
}

/* fallback plus large si l'écran est très large */
@media (min-width:1400px){
  .gallery{ grid-template-columns: repeat(3, 1fr); }
}

.artwork img{width:100%;height:100%;object-fit:contain;cursor:pointer;display:block;margin:0 auto}
.artwork .meta{margin-top:8px;font-size:14px;color:var(--text)}
.artwork {margin-bottom: 50px;}

/* Cadre uniforme : chaque œuvre occupe le même espace visuel, quel que
   soit son format (portrait, paysage, carré) — l'image s'y adapte en
   entier, jamais recadrée, pour rester fidèle aux dimensions réelles */
.art-button {
  display: block;
  width: 100%;
  height: 460px;
}

/* Icône de format : mini-rectangle qui reprend les proportions réelles
   de l'œuvre (portrait, carré, paysage), affiché juste après les
   dimensions en cm */
.format-icon {
  width: 14px;
  height: 14px;
  margin-left: 6px;
  vertical-align: middle;
  color: var(--muted);
}



/* ##############################
   Lightbox
############################## */
#lightbox{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.9);
  display:none;align-items:center;justify-content:center;z-index:999
}
#lightbox img{max-width:90%;max-height:90%;
}

/* ##############################
   About Page
############################## */
.page-title {
  max-width:1200px;
  margin:0 auto;
  padding:0 var(--side-padding);
}

.about-container{
  max-width:1200px;
  margin:0 auto;
  padding:0 var(--side-padding);
}

.about-text{
  font-size:14px;
  line-height:1.75;
  text-align:justify;
  margin-bottom:40px;
  /* petit padding droit pour éviter collage même si gap échoue */
  padding-right:10px;
}
.indente { text-indent:20px; display:block; margin-bottom:18px; }
.texte-gris { color:var(--muted); font-size:13px; margin-top:30px; display:block; }

.about-exergue {
  font-family: 'Cinzel', serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
  display: block;
  margin-bottom: 10px;
}
.about-exergue span { display: block; }

.section-break { margin-top: 40px; }

.about-divider {
  width: 40px;
  height: 1px;
  background: var(--muted);
  margin: 0 auto 40px;
}

.lettrine { margin-bottom: 18px; }
.lettrine::first-letter {
  font-family: 'Cinzel', serif;
  font-size: 3.6em;
  line-height: 0.82;
  float: left;
  padding: 4px 10px 0 0;
  color: var(--text);
}

.about-text::after {
  content: "";
  display: table;
  clear: both;
}

/* Image "encastrée" en haut à droite du texte : le texte commence à sa
   gauche puis continue sur toute la largeur une fois l'image dépassée */
.about-float-img{
  float: right;
  width: 300px;
  margin: 4px 0 24px 30px;
}
.about-float-img img{max-width:100%;height:auto;display:block}


/* ##############################
   Contact Page
############################## */

body.contact {
  background: #fff;
  margin: 0;
  padding: 0;
}

body.contact main {
  padding: 0;
  margin-top: 0;
}

/* Bandeau blanc en haut */
.header-white {
  background: #fff;
  position: relative;
  z-index: 10;
}

/* Wrapper général */
.contact-wrapper {
  width: 100%;
}

/* Panneau gris foncé sur toute la largeur (occupe l'espace autrefois
   pris par l'image plein écran) */
.contact-panel {
  background: var(--text); /* gris foncé, cohérent avec le menu */
  width: 100%;
}

/* Grille interne alignée sur le même gabarit que .gallery / .about-container
   (max-width 1200px + même side-padding) pour que l'image de gauche tombe
   exactement à l'endroit où tombent les œuvres sur la page Painting.
   CSS Grid plutôt que Flexbox : les colonnes en fr se partagent toujours
   exactement l'espace disponible, sans risque de débordement. */
.contact-split {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px var(--side-padding);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 60px;
}

.contact-split-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.contact-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: kenburns 32s ease-in-out infinite alternate;
}

.contact-split-info {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Texte email */
.contact-email {
  color: white;
  font-size: 20px;
  text-align: center;
  letter-spacing: 1px;
  line-height: 1.6;
}

.contact-intro {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  font-family: 'Montserrat', sans-serif;
}

/* Filet discret entre les éléments (accroche / email / icônes) */
.contact-divider {
  width: 36px;
  height: 1px;
  background: rgba(255,255,255,0.35);
  margin: 20px auto;
}

.contact-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.contact-email a {
  color: white;
  text-decoration: none;
}

.contact-email a:hover {
  opacity: 0.7;
}


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

.contact-link {
  color: white;
  text-decoration: none;
  font-size: 20px;        /* réglable finement */
  display: inline-flex;
  align-items: center;    /* centre l'icone verticalement */
  gap: 10px;              /* espace entre l’icône et le texte */
}

.contact-link:hover {
  opacity: 0.7;
}

/* Icône Instagram */
.insta-icon {
  width: 26px;            /* taille réglable */
  height: 26px;
  object-fit: contain;
  display: inline-block;
}

/* Icône LinkedIn */
.linkedin-icon {
  width: 26px;            /* taille réglable */
  height: 26px;
  object-fit: contain;
  display: inline-block;
}


/* ##############################
   Responsive
############################## */
@media(max-width:800px){
  :root { --side-padding:20px; }

  .gallery{grid-template-columns:1fr;}
  .art-button{height:380px;}
  .about-float-img{float:none; width:100%; margin:0 0 20px 0;}

  .contact-split{grid-template-columns:1fr; padding:40px 20px; gap:30px;}
  .contact-split-img{width:100%; aspect-ratio:4/3;}
  .contact-split-info{padding:10px 0;}

  .contact-email{
    font-size: 16px;
  }
}


/* ##############################
   Footer
############################## */

footer.footer {
  text-align: center;
  padding: 2px 0 6px;
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.05em;
}

footer.footer p {
  background: #fff;
  padding: 2px 0;
  text-align: center;
  font-size: 11px;
}

footer.footer a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 5px;
}
footer.footer a:hover {
  color: #000;
  text-decoration: underline;
}

.meta p {
  margin-top: 12px;
}



/* ##############################
   Scroll lock (lightbox)
############################## */


body.no-scroll {
  position: fixed;
  width: 100%;
  overflow: hidden;
}


/* ##############################
  Focus clavier
############################## */

/*mobile-menu inaccessible au clavier*/
#mobile-menu[aria-hidden="true"] {
  display: none !important; /* totalement retiré du flux et du focus */
}

/* BUTTON */
.art-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.art-button:focus {
  outline: 1px solid #e1dfdf; /* remplace le gris natif par un contour sombre */
  outline-offset: 2px;
}

.art-button img {
  display: block;
}

.artwork img {
  cursor: default;
}