/* All Square USA — feuille de style unique.
   Couleurs et polices reprises du site d'origine : bleu nuit #16163f, or #d3be90,
   Merriweather (titres) et Montserrat (texte), auto-hébergées (SIL OFL 1.1). */

@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("/static/fonts/merriweather-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("/static/fonts/merriweather-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 200 600;
  font-display: swap;
  src: url("/static/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 200 600;
  font-display: swap;
  src: url("/static/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bleu-nuit: #16163f;
  --bleu-nuit-2: #211f40;
  --or: #d3be90;
  --gris: #6c6b7d;
  --texte: #4a4a4a;
  --blanc: #ffffff;
  --fond-doux: #f6f5f2;
  --titres: "Merriweather", Georgia, "Times New Roman", serif;
  --corps: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --largeur: 1140px;
}

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

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

body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--corps);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 300; }

.conteneur { width: min(var(--largeur), 100% - 32px); margin-inline: auto; }

.evitement {
  position: absolute; left: 16px; top: -48px; z-index: 20;
  padding: 8px 14px; background: var(--or); color: var(--bleu-nuit); text-decoration: none;
}
.evitement:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

/* Navigation latérale (comme le site d'origine : trois pastilles à gauche, masquées sur mobile) */
.nav-laterale {
  position: fixed; left: 18px; top: 50%; transform: translateY(-50%); z-index: 10;
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px 8px; background: var(--blanc); border-radius: 999px;
  box-shadow: 0 6px 24px rgba(22, 22, 63, 0.18);
}
.nav-laterale a {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  color: var(--bleu-nuit); transition: background-color 0.2s, color 0.2s;
}
.nav-laterale a:hover { background: var(--bleu-nuit); color: var(--or); }

/* Bandeau d'accueil */
.bandeau {
  position: relative; min-height: 720px; display: grid; place-items: center;
  padding: 120px 16px; text-align: center; color: var(--blanc);
  background:
    radial-gradient(ellipse at 50% 35%, rgba(211, 190, 144, 0.16), transparent 60%),
    linear-gradient(160deg, #1d1c4f 0%, var(--bleu-nuit) 55%, #0f0f2e 100%);
  overflow: hidden;
}
.bandeau::before {
  content: ""; position: absolute; inset: 9% 9%;
  border: 1px solid rgba(211, 190, 144, 0.22);
  pointer-events: none;
}
.bandeau-interieur { position: relative; max-width: 760px; }
.bandeau h1 {
  font-family: var(--titres); font-weight: 300;
  font-size: clamp(2.3rem, 6vw, 3.9rem); line-height: 1.15; letter-spacing: 0.06em;
}
.filet { display: block; width: 72px; height: 2px; margin: 28px auto; background: var(--or); }
.accroche {
  margin: 0; font-size: clamp(1rem, 2.2vw, 1.2rem); font-weight: 200; line-height: 1.9;
  color: rgba(255, 255, 255, 0.88); letter-spacing: 0.02em;
}
.accroche a { color: var(--or); text-underline-offset: 4px; }
.descendre {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  color: var(--or); opacity: 0.85;
}
.descendre:hover { opacity: 1; }
.introuvable { min-height: 100vh; min-height: 100svh; }

/* Services */
.services { background: var(--bleu-nuit); color: var(--blanc); padding: 130px 0; }
.services-grille {
  display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center;
}
.services-titre {
  font-family: var(--titres); font-weight: 300;
  font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.3;
}
.services-titre span { display: block; color: var(--or); }
.cartes { display: grid; gap: 28px; }
.carte {
  background: var(--blanc); color: var(--gris);
  padding: 34px 38px; border-top: 3px solid var(--or);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.carte h3 {
  font-family: var(--corps); font-weight: 600; font-size: 1.12rem; line-height: 1.4;
  color: var(--bleu-nuit); margin-bottom: 10px;
}
.carte p { margin: 0 0 10px; font-weight: 400; color: var(--texte); }
.carte ul { margin: 0; padding: 0; list-style: none; }
.carte li { position: relative; padding-left: 20px; margin: 6px 0; }
.carte li::before {
  content: ""; position: absolute; left: 0; top: 0.75em;
  width: 8px; height: 8px; border: 1.5px solid var(--or); transform: translateY(-50%);
}

/* Équipe */
.equipe { padding: 130px 0 140px; text-align: center; background: var(--blanc); }
.surtitre {
  margin: 0 0 10px; font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gris);
}
.equipe h2 {
  font-family: var(--titres); font-weight: 300; color: var(--bleu-nuit);
  font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.3;
}
.membres {
  display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center;
  gap: clamp(32px, 12vw, 220px); margin-top: 64px;
}
.membre {
  position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden;
  border-bottom: 3px solid var(--or); box-shadow: 0 16px 36px rgba(22, 22, 63, 0.22);
  background: var(--bleu-nuit);
}
.membre img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  transition: transform 0.6s ease;
}
.membre::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22, 22, 63, 0.15) 30%, rgba(22, 22, 63, 0.82) 100%);
}
.membre:hover img { transform: scale(1.04); }
.membre figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 28px 20px 30px; color: var(--blanc);
}
.membre .nom { display: block; font-size: 1.25rem; font-weight: 300; letter-spacing: 0.04em; }
.membre .role { display: block; margin-top: 6px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.82); }

/* Contact */
.contact {
  position: relative; color: rgba(255, 255, 255, 0.85); padding: 110px 0 40px;
  background:
    linear-gradient(rgba(22, 22, 63, 0.9), rgba(22, 22, 63, 0.94)),
    url("/static/img/fond-contact.jpg") center / cover no-repeat,
    var(--bleu-nuit);
}
.societe { text-align: center; }
.societe-nom { margin: 0 0 14px; letter-spacing: 0.12em; color: var(--blanc); font-weight: 400; }
.contact address { font-style: normal; line-height: 1.9; }
.contact hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); margin: 56px 0 48px; }
.bureau h2 {
  font-family: var(--corps); font-weight: 400; font-size: 1rem; color: var(--or);
  letter-spacing: 0.08em; margin-bottom: 22px;
}
.adresse-ligne { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 28px; }
.adresse-ligne svg, .personnes svg { flex: none; margin-top: 4px; color: var(--or); }
.personnes {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 48px;
}
.personne-nom { display: block; color: var(--blanc); font-weight: 400; margin-bottom: 8px; }
.personnes a {
  display: flex; gap: 12px; align-items: flex-start; margin: 6px 0;
  text-decoration: none; overflow-wrap: anywhere;
}
.personnes a:hover span { color: var(--or); }
.mentions { margin: 72px 0 0; font-size: 0.78rem; text-align: center; color: rgba(255, 255, 255, 0.5); }

/* Apparition douce, seulement si le visiteur n'a pas réduit les animations */
@media (prefers-reduced-motion: no-preference) {
  .bandeau-interieur { animation: apparition 1.2s ease-out both; }
  .filet { animation: filet 1.4s 0.3s ease-out both; }
}
@keyframes apparition { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes filet { from { width: 0; } to { width: 72px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .membre img { transition: none; }
}

/* Tablette et mobile */
@media (max-width: 900px) {
  .services { padding: 90px 0; }
  .services-grille { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .carte { text-align: left; padding: 28px 24px; }
}
@media (max-width: 767px) {
  .nav-laterale { display: none; }
  .bandeau { min-height: min(78vh, 640px); min-height: min(78svh, 640px); padding: 96px 16px; }
  .bandeau::before { inset: 5% 5%; }
  .equipe { padding: 90px 0 100px; }
  .membres { grid-template-columns: minmax(0, 340px); gap: 36px; margin-top: 44px; }
  .contact { padding: 80px 0 32px; }
  .contact hr { margin: 40px 0 36px; }
}

@media print {
  .nav-laterale, .descendre, .evitement { display: none; }
  .bandeau, .services, .contact { background: none; color: #000; min-height: 0; padding: 24px 0; }
  .bandeau::before, .membre::after { display: none; }
}
