/* =====================================================
   ALIMAGE.COM - CSS Global v8
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600&display=swap');

:root {
  --gold:        #8a7550;
  --gold-clair:  #b8a882;
  --gold-sombre: #5a4a30;

  --noir:        #0a0a0a;
  --noir-2:      #0e0e0e;
  --noir-3:      #141414;
  --noir-4:      #1c1c1c;
  --gris-sombre: #3a3a3a;
  --gris-mid:    #999;
  --gris-clair:  #c8c8c8;
  --blanc:       #ffffff;

  --font-menu:   'Nunito Sans', Arial, sans-serif;
  --font:        'Nunito Sans', Arial, sans-serif;

  --header-h:    130px;
  --credits-h:   48px;
  --footer-h:    174px;
  --sidebar-w:   124px;

  --transition:  0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--noir);
  color: var(--gris-clair);
  font-family: var(--font);
  font-weight: 300;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-clair); }
img { display: block; max-width: 100%; }

/* Scrollbars : natives du systÃ¨me */

/* ----- HEADER : logo seulement ----- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--noir);
  background-color: var(--noir);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 170px 0 170px;
  border-bottom: none;
}

/* Liens secondaires haut droite */
#nav-secondaire {
  position: absolute;
  top: 20px; right: 20px;
  display: flex;
  align-items: stretch;
  height: 26px;
  font-weight: bolder !important;
}

#nav-secondaire a {
  font-family: var(--font-menu);
  font-size: 11px;
  font-weight: bolder !important;
  letter-spacing: 2px;
  color: var(--gold-clair) !important;
  background: var(--gold-sombre) !important;
  border-top: 1px solid var(--noir);
  border-bottom: 1px solid var(--noir);
  border-left: 2px solid var(--noir);
  border-right: 2px solid var(--noir);
  margin-right: -2px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  transition: background var(--transition);
  white-space: nowrap;
  text-decoration: none !important;
  cursor: pointer;
  position: relative;
  z-index: 1;
}


#nav-secondaire a:hover,
#nav-secondaire a:focus { background: var(--gold) !important; color: var(--blanc) !important;font-weight: bolder !important; z-index: 2; }
#nav-secondaire a.actif { background: var(--gold) !important; color: var(--blanc) !important;font-weight: bolder !important; z-index: 2; }




#nav-secondaire a.nav-portfolio {
  color: var(--gold-clair) !important;
  background: transparent !important;
  border: none !important;
  margin-right: 0px;
  letter-spacing: 3px;
}

#nav-secondaire a.nav-portfolio:hover,
#nav-secondaire a.nav-portfolio.actif {
  color: var(--blanc) !important;
  background: transparent !important;
}



/* Logo + trait */
#logo {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
}

#logo img {
  width: 360px;
  height: auto;
  display: block;
}

/* Sous-titre logo : superposÃ© sur le reflet */
#logo-baseline {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font);
  padding-left:11px;
  font-size: 11px;
  font-weight: 900 !important;
  letter-spacing: 5px;
  color: var(--gold-clair);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

/* Trait doré sur la ligne de séparation texte/reflet du logo */
/* PNG 890x279, trait Ã  y=139 = 49.8%. A 360px large â†’ hauteur 113px, trait Ã  56px */
#logo-sep {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold-sombre) 5%,
    var(--gold-sombre) 20%,
    var(--gold) 50%,
    var(--gold-sombre) 80%,
    var(--gold-sombre) 95%,
    transparent 100%);
  pointer-events: none;
}

/* Sous-nav catégories : fixe SOUS le header, jamais dedans */
#subnav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 99;
  font-color : var(--gold);
  height: 28px;
  background: var(--noir);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  white-space: nowrap;
}

#subnav a {
  font-family: var(--font-menu);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--gold-clair);

  padding: 0 11px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  border-right: 1px solid var(--gold);
  flex-shrink: 0;
  transition: color var(--transition);
  white-space: nowrap;
}

#subnav a:first-child { border-left: 1px solid var(--gold); }
#subnav a:hover { color: var(--blanc);  }
#subnav a.actif { color: var(--blanc); font-weight:bolder; background-color:var(--gold-sombre);}

/* Hamburger */
#hamburger {
  display: none;
  position: absolute;
  top: 50%; right: 16px;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; padding: 8px;
  flex-direction: column; gap: 6px;
  z-index: 110;
}

#hamburger span {
  display: block; width: 24px; height: 1px;
  background: var(--gold-clair);
  transition: transform var(--transition), opacity var(--transition);
}

#hamburger.ouvert span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.ouvert span:nth-child(2) { opacity: 0; }
#hamburger.ouvert span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
#menu-mobile {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  z-index: 99;
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid var(--gris-sombre);
  flex-direction: column;
  padding: 30px 0 20px 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

#menu-mobile a {
  font-family: var(--font-menu);
  font-size: 11px; letter-spacing: 2px;
  color: var(--gold);
  padding: 12px 24px;
  border-bottom: 1px solid var(--gris-sombre);
}

#menu-mobile a:last-child { border-bottom: none; }
#menu-mobile a.actif { color: var(--blanc); font-weight: 600 !important; }
#menu-mobile a:hover { color: var(--blanc);  font-weight: 600 !important;   }
#menu-mobile.ouvert { display: flex; }

/* PORTFOLIO : mÃªme niveau qu'INFOS/CONTACT/LIENS - dorÃ© gras */
#menu-mobile a.menu-mobile-titre {
  color: var(--gold-clair);
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 12px;

}

#menu-mobile span.menu-mobile-titre {
  color: var(--gold-clair);
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--gris-sombre);
  display: block;
  font-family: var(--font-menu);
}



/* INFOS CONTACT LIENS aussi en dorÃ© gras */
#menu-mobile a:not(.menu-mobile-sous):not(.menu-mobile-titre) {
  color: var(--gold-clair);
  font-weight: 900;
  font-size: 12px;
}


/* Sous-catÃ©gories : retrait + uppercase + un peu plus grand */
#menu-mobile a.menu-mobile-sous {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gris-clair);
  padding: 8px 24px 8px 36px;
  text-transform: uppercase;
}

/* ----- BODY : header + subnav ----- */
.page-corps { padding-top: calc(var(--header-h) + 28px); }
#titre-categorie-mobile {  display: none;}


@media (max-width: 900px) {
  #titre-categorie-mobile {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 98;
    background: var(--gold-sombre);
    color: var(--gold-clair);
    font-family: var(--font-menu);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3px;
    text-align: center;
    padding: 6px 0;
  }
}

/* ----- FOOTER ----- */
#footer {
  background-color: var(--noir-2);
  border-top: 1px solid var(--gris-sombre);
  padding: 28px 24px 28px;
  text-align: center;
  height: var(--footer-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}

#footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

}

#footer-nav a {
  font-family: var(--font-menu);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold);
  padding: 2px 12px;
  border-right: 1px solid var(--gold);
  transition: color var(--transition);
  white-space: nowrap;
}

#footer-nav a:first-child { border-left: 1px solid var(--gold); }
#footer-nav a:hover { color: var(--blanc); }

#footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

#footer-logo img {
  height: 28px; width: auto; max-width: 160px;
  object-fit: contain; opacity: 0.8; flex-shrink: 0;
}

#footer-legal {
  font-size: 12px;
  color: var(--gold-clair);
  line-height: 1.5;
  text-align: left;
}

#footer-legal strong { color: var(--gold-clair); font-weight:bold; }
#footer-legal a { color: var(--gris-clair); }
#footer-legal a:hover { color: var(--gold-clair); }

#footer-mention {
  font-size: 11px;
  color: var(--gris-mid);
  line-height: 1.5;
  max-width: 760px;
  font-family:'Arial', Helvetica, sans-serif;
}

.sep-gold { width: 40px; height: 1px; background: var(--gold); margin: 4px auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
  :root { --header-h: 95px; --footer-h: auto; }
  
  body { min-height: 100dvh; }

  #header {
    flex-direction: row;
    justify-content: center;
    padding: 8px 56px 0 16px;
  }

 #logo-sep { display: none; }
 #logo-baseline { top: 65px; text-align: center; padding: 0 30px 0 0; font-size: clamp(7px, 2vw, 11px); letter-spacing: clamp(2px, 1vw, 5px); }

  #nav-secondaire { display: none; }
  #subnav { display: none; }
  #hamburger { display: flex; }
  #logo img { width: 220px; }
  #footer { height: auto; padding: 20px 16px; }
  #footer-nav { flex-direction: column; align-items: center; gap: 6px; }
  #footer-nav a { border: none; padding: 2px 0; }
  #footer-nav a:first-child { border: none; }
  #footer-bottom { flex-direction: column; gap: 8px; }
  #footer-legal { text-align: center; }
}
