/* =====================================================================
   GCC Entretien — thème « marine et or » (nov. 2026)
   Chargé sur toutes les pages par la fonction edge apparence.js, APRÈS
   les feuilles existantes : il gagne sur elles sans toucher aux fichiers.
   Le lien est versionné à chaque déploiement : aucune version à changer à la main.
   ===================================================================== */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/medias/polices/newsreader-500.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/medias/polices/manrope-var.woff2") format("woff2-variations"),
       url("/medias/polices/manrope-var.woff2") format("woff2");
}

:root {
  --gcc-navy: #0f1b2d;
  --gcc-navy-2: #1b2a44;
  --gcc-navy-3: #14233a;
  --gcc-gold: #c9a248;
  --gcc-gold-dark: #8a6a1f;
  --gcc-gold-light: #e4c275;
  --gcc-surface: #f4f5f7;
  --gcc-text: #1f2028;
  --gcc-muted: #5b5e6b;
  --gcc-serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --gcc-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gcc-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Tailwind (v4) : on remappe les teintes utilisées par le site */
  --font-sans: var(--gcc-sans);
  --color-gray-900: #0f1b2d;
  --color-blue-50: #f4f5f7;
  --color-blue-100: #eceef2;
  --color-blue-200: #d9dde4;
  --color-blue-300: #e4c275;
  --color-blue-400: #d9b861;
  --color-blue-500: #c9a248;
  --color-blue-600: #0f1b2d;
  --color-blue-700: #1b2a44;
  --color-blue-800: #14233a;
  --color-blue-900: #0f1b2d;
  --color-blue-950: #0a1322;
  --color-green-50: #f4f5f7;
  --color-green-100: #eee8da;
  --color-green-200: #e6dbc0;
  --color-green-500: #a88433;
  --color-green-600: #8a6a1f;
  --color-green-700: #73581a;
  --color-green-800: #5c4612;
  --color-amber-50: #f4f5f7;
  --color-amber-100: #eee8da;
  --color-amber-300: #e4c275;
  --color-amber-400: #c9a248;
  --color-amber-500: #c9a248;
  --color-amber-600: #8a6a1f;
  --color-amber-800: #5c4612;
  --color-yellow-400: #c9a248;
  --color-yellow-500: #c9a248;
  --color-yellow-900: #5c4612;
  --color-purple-100: #eee8da;
  --color-purple-800: #5c4612;
  --color-indigo-600: #0f1b2d;
  --color-sky-600: #1b2a44;
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body, [class*="font-['"] { font-family: var(--gcc-sans) !important; }
::selection { background: var(--gcc-gold-light); color: var(--gcc-navy); }

/* Titres : serif élégant, graisse moyenne, interlettrage resserré */
h1, h2 {
  font-family: var(--gcc-serif) !important;
  font-weight: 500 !important;
  letter-spacing: -0.015em !important;
}
h1 { line-height: 1.08 !important; }
h2 { line-height: 1.15 !important; }
h3, h4 { font-weight: 700 !important; letter-spacing: -0.005em; }

/* Le « noir » 900 partout faisait gabarit : on calme le texte courant */
.font-black { font-weight: 700 !important; }

/* Sur-titres en majuscules espacées → petite étiquette sobre */
.uppercase.tracking-widest,
.uppercase.tracking-wider,
.uppercase.tracking-wide {
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
}

/* Icônes-emojis du menu déroulant retirées ; les autres deviennent un trait or */
.gcc-dropdown-icon { display: none !important; }
.gcc-mark { display: inline-block; width: 28px; height: 2px; background: var(--gcc-gold); border-radius: 1px; vertical-align: middle; }

/* Liens dans les articles : soulignement or, discret */
article a:not([class]) {
  text-decoration: underline;
  text-decoration-color: var(--gcc-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Focus clavier visible et à la marque */
:focus-visible { outline: 2px solid var(--gcc-gold) !important; outline-offset: 2px !important; }

/* Lien de langue ajouté dans l'en-tête */
.gcc-lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 8px;
  font: 600 13px/1 var(--gcc-sans); letter-spacing: 0.04em;
  color: var(--gcc-navy); text-decoration: none; border-radius: 8px;
  border: 1px solid rgba(15, 27, 45, 0.18);
}
.gcc-lang:hover { border-color: var(--gcc-gold); }
@media (max-width: 639px) { .gcc-lang { display: none; } }
.gcc-portail-link svg { vertical-align: -2px; margin-right: 6px; }

/* Défilement doux et transitions entre pages (si l'utilisateur accepte le mouvement) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 380ms;
    animation-timing-function: var(--gcc-ease);
  }
}

/* ---------- Boutons du thème ---------- */
.gcc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.85rem 1.5rem; border-radius: 10px;
  font: 700 1rem/1.2 var(--gcc-sans); text-decoration: none; white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.gcc-btn--or { background: var(--gcc-gold); color: var(--gcc-navy) !important; }
.gcc-btn--or:hover { background: var(--gcc-gold-light); }
.gcc-btn--ligne { border: 1px solid rgba(255, 255, 255, 0.45); color: #fff !important; }
.gcc-btn--ligne:hover { border-color: var(--gcc-gold); color: var(--gcc-gold-light) !important; }

/* ---------- Héros vidéo de l'accueil ---------- */
.gcc-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: clamp(580px, 88vh, 880px);
  background: var(--gcc-navy); color: #fff;
}
.gcc-hero__media { position: absolute; inset: 0; z-index: -2; }
.gcc-hero__media img,
.gcc-hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcc-hero__media video { opacity: 0; transition: opacity 1.1s var(--gcc-ease); }
.gcc-hero__media video.is-playing { opacity: 1; }
.gcc-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 27, 45, 0.2) 0%, rgba(15, 27, 45, 0.35) 45%, rgba(15, 27, 45, 0.94) 100%),
    linear-gradient(90deg, rgba(15, 27, 45, 0.7) 0%, rgba(15, 27, 45, 0) 70%);
}
.gcc-hero__inner {
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: clamp(7rem, 16vh, 10rem) 1.25rem clamp(2.5rem, 7vh, 5rem);
}
.gcc-hero__rule { width: 56px; height: 1px; border: 0; background: var(--gcc-gold); margin: 0 0 1.75rem; }
.gcc-hero h1 {
  color: #fff !important; margin: 0; max-width: 21ch;
  font-size: clamp(2.2rem, 4.8vw, 4.1rem) !important;
}
.gcc-hero__sub {
  color: rgba(255, 255, 255, 0.84) !important; max-width: 38rem;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.6;
  margin: 1.5rem 0 2rem;
}
.gcc-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.gcc-hero__trust {
  list-style: none; margin: 2.5rem 0 0; padding: 1.25rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78); font-size: 0.9375rem;
}
.gcc-hero__trust li { margin: 0; }
@media (max-width: 700px) {
  .gcc-hero { min-height: 92svh; }
  .gcc-hero__actions .gcc-btn { flex: 1 1 100%; }
  .gcc-hero__trust { gap: 0.4rem 1.25rem; font-size: 0.875rem; }
}

/* Bouton pause commun (héros et blocs vidéo) — WCAG 2.2.2 */
.gcc-pause {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(15, 27, 45, 0.55);
  color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.gcc-pause:hover { background: rgba(15, 27, 45, 0.85); }
.gcc-pause[hidden] { display: none; }

/* ---------- Bloc vidéo « en action » (pages de service) ---------- */
.gcc-media { background: var(--gcc-navy); color: #fff; padding: clamp(3.5rem, 8vw, 7rem) 1.25rem; }
.gcc-media__inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .gcc-media--h .gcc-media__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .gcc-media--v .gcc-media__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}
.gcc-media__title {
  font-family: var(--gcc-serif) !important; font-weight: 500 !important;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem) !important; line-height: 1.12; letter-spacing: -0.015em;
  margin: 0 0 1rem !important; color: #fff !important;
}
.gcc-media__rule { width: 48px; height: 1px; background: var(--gcc-gold); margin: 0 0 1.5rem; border: 0; }
.gcc-media__text p { color: rgba(255, 255, 255, 0.8) !important; font-size: 1.0625rem; line-height: 1.65; margin: 0 0 1.75rem; max-width: 34rem; }
.gcc-media__frame {
  position: relative; overflow: hidden; border-radius: 14px; background: var(--gcc-navy-2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.gcc-media--h .gcc-media__frame { aspect-ratio: 16 / 9; }
.gcc-media--v .gcc-media__frame { aspect-ratio: 9 / 16; max-height: 78vh; margin-inline: auto; width: 100%; max-width: 420px; }
.gcc-media__frame img,
.gcc-media__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcc-media__frame video { opacity: 0; transition: opacity 0.8s var(--gcc-ease); }
.gcc-media__frame video.is-playing { opacity: 1; }
