/* ==========================================================================
   SG Patrimoine — feuille de style commune à toutes les pages
   Pour changer une couleur ou le fond : modifier uniquement les variables
   ci-dessous (:root).
   ========================================================================== */

:root {
  /* Couleurs */
  --fond: #151515;            /* noir du site actuel */
  --texte: #f0ece4;           /* ivoire */
  --texte-doux: #b9b3a8;
  --or: #d09a3a;              /* or du logo */
  --or-clair: #e7c27a;
  --argent: #8a9196;          /* argent du logo */
  --filet: rgba(240, 236, 228, 0.14);

  /* Image / texture de fond.
     Pour mettre une photo : remplacer par url("../img/fond.jpg") */
  --fond-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Crect width='1' height='1' fill='%23000' fill-opacity='.65'/%3E%3Crect x='1' width='1' height='1' fill='%23000' fill-opacity='.29'/%3E%3Crect y='1' width='1' height='1' fill='%23000' fill-opacity='.29'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23000' fill-opacity='.29'/%3E%3C/svg%3E");

  /* Typographie (polices du système : aucun appel externe, aucun cookie) */
  --police-titre: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --police-texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --largeur: 68rem;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--fond);
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Fond fixe (texture + halo doré), indépendant du défilement */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--fond);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(208, 154, 58, 0.10), transparent 70%),
    var(--fond-image);
  background-size: cover, auto;
}

a {
  color: inherit;
  text-decoration-color: var(--or);
  text-underline-offset: 0.2em;
}
a:hover { color: var(--or-clair); }
a:focus-visible {
  outline: 2px solid var(--or-clair);
  outline-offset: 4px;
  border-radius: 2px;
}

img { max-width: 100%; height: auto; display: block; }

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

/* --- Vidéo de fond (accueil) --------------------------------------------
   Le voile (--voile-video) assombrit encore la vidéo (déjà assombrie à la source) pour que le logo reste lisible.
   Plus la valeur est proche de 1, plus la vidéo est discrète. */

.fond-video {
  --voile-video: 0.45;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--fond) url("../img/fond-video.jpg") center / cover no-repeat;
}
.fond-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}
.fond-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(21, 21, 21, var(--voile-video));
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 42%, rgba(21, 21, 21, 0.35), transparent 75%),
    var(--fond-image);
}

.bouton-video {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--filet);
  border-radius: 50%;
  background: rgba(21, 21, 21, 0.6);
  color: var(--texte-doux);
  cursor: pointer;
}
.bouton-video:hover { color: var(--or-clair); border-color: var(--or); }
.bouton-video:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 3px; }
.bouton-video svg { width: 1rem; height: 1rem; fill: currentColor; }
.bouton-video .icone-lecture,
.bouton-video.en-pause .icone-pause { display: none; }
.bouton-video.en-pause .icone-lecture { display: block; }

/* --- En-tête (pages intérieures) ---------------------------------------- */

.entete {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 1.25rem var(--gouttiere);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--filet);
}
.entete__logo img { width: 3.25rem; }
.entete nav a {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--texte-doux);
}
.entete nav a:hover { color: var(--or-clair); }

/* --- Accueil ------------------------------------------------------------ */

.accueil {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem var(--gouttiere) 2rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
}

.accueil__logo {
  width: min(19rem, 56vw, 38vh);
  margin-bottom: 2rem;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.55));
}

.accueil__logo--petit { width: min(10rem, 40vw); }

.accueil__metier {
  margin: 0;
  font-family: var(--police-titre);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--texte);
}

.filet-or {
  width: 4.5rem;
  height: 1px;
  margin: 1.75rem auto;
  border: 0;
  background: linear-gradient(90deg, var(--argent), var(--or));
}

.contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 1.05rem;
}
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }

.reseaux {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.reseaux a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--filet);
  border-radius: 50%;
  color: var(--texte-doux);
  transition: color 0.2s, border-color 0.2s;
}
.reseaux a:hover { color: var(--or-clair); border-color: var(--or); }
.reseaux svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

/* --- Pages de texte (mentions légales, futures pages) --------------------- */

.page {
  flex: 1;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem var(--gouttiere) 4rem;
}
.page h1 {
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  letter-spacing: 0.02em;
  margin: 0 0 2rem;
}
.page h2 {
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--or-clair);
  margin: 2.5rem 0 0.75rem;
}
.page p,
.page li { color: var(--texte-doux); }
.page strong { color: var(--texte); font-weight: 600; }

.a-completer {
  background: rgba(208, 154, 58, 0.18);
  color: var(--or-clair);
  padding: 0 0.3em;
  border-radius: 3px;
}

/* --- Pied de page --------------------------------------------------------- */

.pied {
  padding: 1.5rem var(--gouttiere) 2rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  text-align: center;
  font-size: 0.85rem;
  color: var(--texte-doux);
}
.pied p { margin: 0.25rem 0; }
.pied a { color: var(--texte-doux); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media (max-width: 30rem) {
  .accueil { padding-top: 2rem; }
  .accueil__logo { margin-bottom: 1.5rem; }
  .filet-or { margin: 1.25rem auto; }
  .reseaux { margin-top: 1.5rem; }
  /* sur mobile, le bouton pause va en haut à droite pour ne pas gêner le pied de page */
  .bouton-video { top: 0.75rem; right: 0.75rem; bottom: auto; }
  .pied { padding-bottom: 1.25rem; }
}
