/* Caserne42 — caserne42.com
 * Mêmes couleurs que l'application : orange d'action #ff5a36 sur bleu-nuit.
 * Aucune ressource externe : la police est servie avec la page. */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --fond: #0a0e14;
  --fond-2: #0d1117;
  --surface: #121821;
  --surface-2: #161d28;
  --trait: rgba(255, 255, 255, 0.07);
  --trait-fort: rgba(255, 255, 255, 0.12);
  --texte: #eef2f7;
  --doux: #a3afc0;
  --pale: #7d8a9c;
  --orange: #ff5a36;
  --orange-doux: #ff8a5c;
  --orange-pale: #ffb99f;
  --encre: #1b0f0a;
  --degrade: linear-gradient(135deg, #ff7a52 0%, #ff5a36 45%, #f0431d 100%);
  --degrade-texte: linear-gradient(100deg, #ffb99f 0%, #ff7048 40%, #ff5a36 70%, #f0431d 100%);
  --rayon: 22px;
  --rayon-sm: 14px;
  --largeur: 1180px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --police: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(255, 90, 54, 0.35); color: #fff; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 750; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--orange-doux);
  outline-offset: 3px;
  border-radius: 6px;
}

.icone {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.evitement {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--encre);
  font-weight: 700;
  text-decoration: none;
}
.evitement:focus { top: 16px; }

.conteneur {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}
.conteneur--large { max-width: calc(1280px + 2 * var(--gouttiere)); }

.degrade {
  background: var(--degrade-texte);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--orange);
}

/* ---- Marque ------------------------------------------------------------ */
.marque {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.marque__pastille {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--degrade);
  color: var(--encre);
  font-weight: 850;
  font-size: 15px;
  letter-spacing: -0.04em;
  box-shadow: 0 6px 24px -6px rgba(255, 90, 54, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.marque__pastille--mini {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 11px;
  box-shadow: 0 4px 14px -4px rgba(255, 90, 54, 0.6);
}
.marque__nom {
  font-weight: 750;
  font-size: 18px;
  letter-spacing: -0.03em;
}

/* ---- Boutons ----------------------------------------------------------- */
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--degrade);
  color: var(--encre);
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(255, 90, 54, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
}
.bouton:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px -12px rgba(255, 90, 54, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.bouton--fantome {
  background: rgba(255, 255, 255, 0.03);
  color: var(--texte);
  border-color: var(--trait-fort);
  box-shadow: none;
}
.bouton--fantome:hover {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}
.bouton--petit { padding: 9px 18px; font-size: 14px; }

/* ---- En-tête ----------------------------------------------------------- */
.entete {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.entete--defile {
  background: rgba(10, 14, 20, 0.72);
  border-bottom-color: var(--trait);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}
.entete__rang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.nav {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav a {
  color: var(--doux);
  text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover { color: var(--texte); }

/* ---- Héros ------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 168px 0 40px;
  isolation: isolate;
}
.hero__fond {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 90, 54, 0.16), transparent 70%),
    radial-gradient(40% 35% at 85% 10%, rgba(102, 179, 255, 0.06), transparent 70%);
}
.hero__fond::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 20%, transparent 75%);
}
.hero__texte {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pastille {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 90, 54, 0.25);
  background: rgba(255, 90, 54, 0.06);
  color: var(--orange-pale);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.01em;
}
.pastille__point {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.18);
}
.hero__titre {
  margin-top: 28px;
  font-size: clamp(44px, 7.4vw, 92px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.hero__chapeau {
  max-width: 760px;
  margin-top: 28px;
  color: var(--doux);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.hero__signature {
  margin-top: 28px;
  color: var(--pale);
  font-size: 14px;
}
.hero__signature a {
  color: var(--doux);
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
}
.hero__signature a:hover { color: var(--texte); }

.scene {
  position: relative;
  margin-top: 80px;
}
.scene::before {
  content: '';
  position: absolute;
  inset: 8% 12% -4%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 90, 54, 0.32), transparent);
  filter: blur(50px);
}

/* ---- Cadres de capture ------------------------------------------------- */
.cadre {
  position: relative;
  padding: 7px;
  border-radius: var(--rayon);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025) 60%);
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}
.cadre img {
  width: 100%;
  border-radius: calc(var(--rayon) - 7px);
  cursor: zoom-in;
}
.cadre--hero {
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

/* ---- Sections ---------------------------------------------------------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section + .section { border-top: 1px solid var(--trait); }

.surtitre {
  color: var(--orange-doux);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.titre {
  margin-top: 16px;
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.titre--grand { font-size: clamp(38px, 6vw, 76px); }
.sous-titre {
  margin-top: 20px;
  max-width: 640px;
  color: var(--doux);
  font-size: clamp(16px, 1.4vw, 19px);
}
.entete-section {
  max-width: 820px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.texte {
  margin-top: 28px;
  color: var(--doux);
  font-size: 18px;
}
.texte p + p { margin-top: 18px; }

/* ---- Le constat -------------------------------------------------------- */
.deux-colonnes {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}
.eparpillement {
  border-left: 1px solid var(--trait-fort);
  padding-left: clamp(24px, 3vw, 44px);
}
.eparpillement li {
  position: relative;
  width: fit-content;
  padding: 10px 0;
  color: var(--pale);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500;
}
.eparpillement li:not(.eparpillement__fin)::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 1.5px;
  background: rgba(255, 90, 54, 0.55);
  transform-origin: left;
}
.eparpillement .eparpillement__fin {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 22px;
  color: var(--texte);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 750;
  letter-spacing: -0.03em;
}

/* ---- Familles de modules ---------------------------------------------- */
.familles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.famille {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: var(--rayon);
  border: 1px solid var(--trait);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(18, 24, 33, 0.4) 100%);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.famille:hover {
  border-color: rgba(255, 90, 54, 0.3);
  transform: translateY(-3px);
}
.famille__icone {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(255, 90, 54, 0.25);
  background: rgba(255, 90, 54, 0.08);
  color: var(--orange-doux);
  font-size: 20px;
}
.famille h3 {
  margin-top: 24px;
  font-size: 20px;
}
.famille__devise {
  margin-top: 6px;
  color: var(--pale);
  font-size: 14.5px;
}
.famille ul {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--trait);
}
.famille li {
  padding: 5px 0;
  color: var(--doux);
  font-size: 15px;
}

/* ---- Vitrine ----------------------------------------------------------- */
.vitrine {
  display: grid;
  gap: clamp(72px, 10vw, 140px);
}
.vitrine__rang {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.vitrine__rang--inverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.vitrine__rang--inverse .cadre { order: 2; }
.vitrine__etiquette {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--orange-doux);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.vitrine__etiquette span {
  color: var(--pale);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.vitrine__texte h3 {
  margin-top: 16px;
  font-size: clamp(26px, 2.7vw, 36px);
  letter-spacing: -0.03em;
}
.vitrine__texte > p:not(.vitrine__etiquette) {
  margin-top: 18px;
  color: var(--doux);
}
.coches {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}
.coches li {
  position: relative;
  padding-left: 30px;
  color: var(--texte);
  font-size: 15.5px;
  line-height: 1.5;
}
.coches li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a5c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat,
    rgba(255, 90, 54, 0.12);
}

/* ---- Obligations ------------------------------------------------------- */
.obligations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-radius: var(--rayon);
  border: 1px solid var(--trait);
  background: var(--trait);
  overflow: hidden;
}
.obligation {
  padding: clamp(28px, 3vw, 40px);
  background: var(--fond);
  transition: background-color 0.3s;
}
.obligation:hover { background: var(--fond-2); }
.obligation__code {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--trait-fort);
  color: var(--doux);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.obligation h3 {
  margin-top: 22px;
  font-size: 20px;
}
.obligation p:not(.obligation__code) {
  margin-top: 10px;
  color: var(--doux);
  font-size: 15.5px;
}

/* ---- Principes --------------------------------------------------------- */
.citation {
  margin: 0 auto;
  max-width: 980px;
  text-align: center;
}
.citation__texte {
  margin-top: 24px;
  font-size: clamp(30px, 4.6vw, 60px);
  font-weight: 760;
  letter-spacing: -0.038em;
  line-height: 1.08;
}
.citation__suite {
  max-width: 660px;
  margin: 28px auto 0;
  color: var(--doux);
  font-size: clamp(16px, 1.4vw, 18.5px);
}
.principes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
  margin-top: clamp(64px, 8vw, 110px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--trait);
}
.principe .icone {
  width: 26px;
  height: 26px;
  color: var(--orange-doux);
}
.principe h3 {
  margin-top: 20px;
  font-size: 20px;
}
.principe p {
  margin-top: 10px;
  color: var(--doux);
  font-size: 15.5px;
}

/* ---- Contact ----------------------------------------------------------- */
.section--contact { padding-bottom: clamp(80px, 9vw, 120px); }
.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 110px) clamp(24px, 6vw, 80px);
  border-radius: 32px;
  border: 1px solid rgba(255, 90, 54, 0.22);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(255, 90, 54, 0.14), transparent 60%),
    var(--fond-2);
  text-align: center;
  isolation: isolate;
}
.contact__lueur {
  position: absolute;
  inset: auto 20% -40% 20%;
  height: 60%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 90, 54, 0.25), transparent);
  filter: blur(40px);
}
.contact .sous-titre { margin-left: auto; margin-right: auto; }
.contact__courriel {
  display: inline-block;
  margin-top: 40px;
  font-size: clamp(20px, 5.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  background: var(--degrade-texte);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--orange);
  overflow-wrap: normal;
}
.contact__courriel:hover { filter: brightness(1.12); }
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* ---- Pied -------------------------------------------------------------- */
.pied {
  border-top: 1px solid var(--trait);
  padding: 36px 0 44px;
}
.pied__rang {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.pied__marque {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--doux);
  font-size: 15px;
}
.pied__marque strong { color: var(--texte); font-weight: 650; }
.pied__marque a {
  color: var(--texte);
  text-decoration-color: rgba(255, 90, 54, 0.6);
  text-underline-offset: 3px;
}
.pied__note {
  color: var(--pale);
  font-size: 13.5px;
}

/* ---- Visionneuse ------------------------------------------------------- */
.visionneuse {
  width: min(96vw, 1600px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 1px solid var(--trait-fort);
  border-radius: 18px;
  background: var(--fond-2);
  overflow: hidden;
}
.visionneuse::backdrop {
  background: rgba(5, 7, 10, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.visionneuse img {
  width: 100%;
  height: auto;
  max-height: 94vh;
  object-fit: contain;
  cursor: zoom-out;
}
.visionneuse__fermer {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--trait-fort);
  background: rgba(10, 14, 20, 0.8);
  color: var(--texte);
  font-size: 18px;
  cursor: pointer;
}

/* ---- Apparition au défilement (seulement si le script tourne) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].vu {
  opacity: 1;
  transform: none;
}
.js .eparpillement li:not(.eparpillement__fin)::after {
  transform: scaleX(0);
  transition: transform 0.7s var(--ease);
}
.js .eparpillement.vu li:not(.eparpillement__fin)::after { transform: scaleX(1); }
.js .eparpillement.vu li:nth-child(2)::after { transition-delay: 0.12s; }
.js .eparpillement.vu li:nth-child(3)::after { transition-delay: 0.24s; }
.js .eparpillement.vu li:nth-child(4)::after { transition-delay: 0.36s; }
.js .eparpillement.vu li:nth-child(5)::after { transition-delay: 0.48s; }
.js .eparpillement.vu li:nth-child(6)::after { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .eparpillement li::after { transform: none !important; transition: none !important; }
  .bouton, .famille { transition: none; }
}

/* ---- Écrans moyens et petits ------------------------------------------ */
@media (max-width: 1080px) {
  .familles { grid-template-columns: repeat(2, 1fr); }
  .obligations { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .nav { display: none; }
  .deux-colonnes,
  .vitrine__rang,
  .vitrine__rang--inverse { grid-template-columns: 1fr; }
  .vitrine__rang--inverse .cadre { order: 0; }
  .principes { grid-template-columns: 1fr; }
  .hero { padding-top: 132px; }
  .scene { margin-top: 56px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .familles,
  .obligations { grid-template-columns: 1fr; }
  .cadre { padding: 4px; border-radius: 14px; }
  .cadre img { border-radius: 10px; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__actions .bouton { justify-content: center; }
  .contact__actions .bouton { width: 100%; justify-content: center; }
  .pied__rang { flex-direction: column; align-items: flex-start; }
  .marque__nom { font-size: 17px; }
}
