/*
 * style.css — Fenêtre sur l'@gora
 * Feuille de styles partagée entre toutes les pages intérieures.
 * Polices auto-hébergées — aucune dépendance externe.
 */

/* ════════════════════════════════════════
   VARIABLES
════════════════════════════════════════ */
:root {
  --or:        #C9A84C;
  --or-clair:  #F0C060;
  --bleu:      #0d1b4b;
  --bleu-dark: #07122e;
  --bleu-moy:  #1e3370;
  --ivoire:    #F5F0E8;
  --ivoire-f:  #EDE7D8;
  --blanc:     #ffffff;
  --gris:      #555;
  --nav-h:     52px;
  --r:         6px;
  --tr:        all 0.25s ease;
  /* Fond intérieur : bleu nuit plus clair et plus chaud que --bleu-dark */
  --fond-nuit: linear-gradient(160deg, #1c306e 0%, #152459 50%, #0e1a48 100%);
}

/* ════════════════════════════════════════
   BASE
════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; }
body  {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: var(--ivoire);
  color: var(--bleu);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img  { display: block; max-width: 100%; }
main { flex: 1; }

/* ════════════════════════════════════════
   BARRE DE NAVIGATION (pages intérieures)
════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: var(--bleu-dark);
  border-bottom: 1px solid rgba(201,168,76,.4);
  display: flex; align-items: center; padding: 0 1.25rem; gap: .8rem;
}
.nav-logo { flex: 0 0 auto; display: flex; align-items: center; }
.nav-logo img { height: 28px; }

.nav-liens {
  display: flex; align-items: center; gap: 0;
  flex: 1; justify-content: center; flex-wrap: nowrap; overflow: hidden;
}
.nav-liens a {
  font-family: 'Cinzel', serif; font-size: 0.62rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--ivoire); text-decoration: none;
  padding: .4rem .45rem; border-radius: var(--r);
  transition: var(--tr); white-space: nowrap; opacity: .78;
}
.nav-liens a:hover    { color: var(--or); opacity: 1; }
.nav-liens a.active   { color: var(--or); opacity: 1; }

/* Séparateur entre liens nav */
.nav-liens a + a::before {
  content: '·';
  display: inline-block;
  color: rgba(201,168,76,.3);
  margin-right: .35rem;
  font-size: .6rem;
}

/* Hamburger */
.nav-ham {
  display: none; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; cursor: pointer;
  padding: 8px; margin-left: auto; background: none; border: none;
}
.nav-ham span {
  display: block; width: 22px; height: 2px;
  background: var(--ivoire); border-radius: 2px; transition: var(--tr);
}
.nav-ham[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-ham[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-ham[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile déroulant */
.nav-mob {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bleu-dark);
  border-bottom: 1px solid rgba(201,168,76,.3);
  z-index: 999; flex-direction: column; padding: .5rem 0;
}
.nav-mob.ouvert { display: flex; }
.nav-mob a {
  font-family: 'Cinzel', serif; font-size: .85rem; font-weight: 600;
  letter-spacing: .07em; color: var(--ivoire); text-decoration: none;
  padding: .85rem 1.5rem; border-bottom: 1px solid rgba(201,168,76,.1);
  transition: var(--tr);
}
.nav-mob a:last-child { border-bottom: none; }
.nav-mob a:hover   { color: var(--or); padding-left: 2rem; }
.nav-mob a.active  { color: var(--or); }

/* ════════════════════════════════════════
   DÉCALAGE POUR LA NAV FIXE
════════════════════════════════════════ */
.page-main {
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* ════════════════════════════════════════
   TITRES & FILETS DE SECTION
════════════════════════════════════════ */
.s-titre {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400; letter-spacing: .1em;
  text-align: center; margin-bottom: .6rem;
}
.s-filet { width: 56px; height: 2px; background: var(--or); margin: 0 auto 2.5rem; }
.s-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.95; text-align: center;
  max-width: 640px; margin: 0 auto 2.5rem; font-style: italic;
}

/* ════════════════════════════════════════
   BOUTONS
════════════════════════════════════════ */
.btn {
  font-family: 'Cinzel', serif; font-size: .82rem; font-weight: 600;
  letter-spacing: .1em; text-decoration: none;
  padding: .9rem 2rem; border-radius: var(--r);
  border: 2px solid transparent; transition: var(--tr);
  cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; line-height: 1;
}
.btn-or  { background: var(--or); color: var(--bleu-dark); border-color: var(--or); }
.btn-or:hover  { background: var(--or-clair); border-color: var(--or-clair); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(201,168,76,.3); }
.btn-cl  { background: transparent; color: var(--ivoire); border-color: rgba(245,240,232,.45); }
.btn-cl:hover  { border-color: var(--or); color: var(--or); transform: translateY(-2px); }
.btn-fo  { background: transparent; color: var(--bleu); border-color: rgba(13,27,75,.4); }
.btn-fo:hover  { background: var(--bleu); color: var(--ivoire); transform: translateY(-2px); }
.btn-env:disabled { opacity: .55; cursor: not-allowed; }

/* ════════════════════════════════════════
   FORMULAIRES
════════════════════════════════════════ */
.formulaire  { max-width: 560px; margin: 0 auto; }
.form-ch     { margin-bottom: 1.5rem; }
.form-lb {
  display: block; font-family: 'Cinzel', serif; font-size: .75rem;
  font-weight: 600; letter-spacing: .09em; text-transform: uppercase; margin-bottom: .5rem;
}
.form-in, .form-ta {
  width: 100%; padding: .9rem 1rem; border-radius: var(--r);
  border: 1px solid rgba(201,168,76,.35);
  background: rgba(255,255,255,.07); color: var(--ivoire);
  font-family: 'Cormorant Garamond', serif; font-size: 1.1rem;
  transition: var(--tr); outline: none;
}
.form-in::placeholder, .form-ta::placeholder { color: rgba(245,240,232,.3); }
.form-in:focus, .form-ta:focus {
  border-color: var(--or); background: rgba(255,255,255,.11);
  box-shadow: 0 0 0 3px rgba(201,168,76,.14);
}
.form-ta    { resize: vertical; min-height: 150px; }
.form-note  { font-family: 'Cormorant Garamond', serif; font-size: .92rem; font-style: italic; color: rgba(245,240,232,.4); margin-top: .35rem; }
.form-sub   { text-align: center; margin-top: 2.2rem; }
.form-msg   {
  display: none; padding: 1rem 1.2rem; border-radius: var(--r);
  font-family: 'Cormorant Garamond', serif; font-size: 1.05rem;
  margin-top: 1.2rem; line-height: 1.6;
}
.form-msg.ok  { background: rgba(60,180,100,.1); border: 1px solid rgba(60,180,100,.35); color: #90efc0; }
.form-msg.err { background: rgba(220,60,60,.1);  border: 1px solid rgba(220,60,60,.35);  color: #ffb5b5; }
.piege { display: none !important; }

/* Variante claire (page Contact) */
.form-clair .form-lb  { color: var(--bleu); }
.form-clair .form-in,
.form-clair .form-ta  {
  border-color: rgba(13,27,75,.25); background: rgba(255,255,255,.75); color: var(--bleu);
}
.form-clair .form-in::placeholder,
.form-clair .form-ta::placeholder { color: rgba(13,27,75,.3); }
.form-clair .form-in:focus,
.form-clair .form-ta:focus {
  border-color: var(--bleu-moy); background: var(--blanc);
  box-shadow: 0 0 0 3px rgba(13,27,75,.08);
}
.form-clair .form-note { color: rgba(13,27,75,.45); }
.form-clair .form-msg.ok  { background: rgba(0,100,60,.06); border-color: rgba(0,100,60,.3); color: #004020; }
.form-clair .form-msg.err { background: rgba(160,0,0,.06); border-color: rgba(160,0,0,.3); color: #700000; }

/* ════════════════════════════════════════
   LIGHTBOX PLEIN ÉCRAN
════════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(6,12,30,.95);
  display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.lightbox.visible { display: flex; }
.lb-img {
  max-height: 88vh; max-width: 100%; object-fit: contain;
  border-radius: var(--r); box-shadow: 0 12px 60px rgba(0,0,0,.6);
}
.lb-titre {
  font-family: 'Cinzel', serif; color: var(--or);
  font-size: .9rem; letter-spacing: .1em; margin-top: 1rem; opacity: .85;
}
.lb-fermer {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: none; border: 1px solid rgba(201,168,76,.4);
  color: var(--ivoire); font-family: 'Cinzel', serif;
  font-size: .78rem; letter-spacing: .06em;
  padding: .4rem .9rem; border-radius: var(--r);
  cursor: pointer; transition: var(--tr);
}
.lb-fermer:hover { border-color: var(--or); color: var(--or); }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  background: var(--bleu-dark); border-top: 1px solid rgba(201,168,76,.25);
  color: rgba(245,240,232,.6); text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  font-family: 'Cormorant Garamond', serif; font-size: 1rem;
}
footer img  { height: 40px; margin: 0 auto 1rem; opacity: .65; }
footer p    { margin-bottom: .4rem; }
footer a    { color: rgba(245,240,232,.6); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--or); }
.f-copy     { font-size: .88rem; opacity: .65; margin-top: .3rem; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 820px) {
  .nav-liens { display: none; }
  .nav-ham   { display: flex; }
}
@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; }
}
