/* Site d'Oustalia : valeurs de la charte du 14/10/2026 (tokens.json, INSTRUCTIONS_AGENTS.md).
   Vert pour le texte et les surfaces, orange en accent seulement, aucune ombre portée,
   aucun dégradé hors des lettres « ia » du logo. */

@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("polices/montserrat-regular.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("polices/montserrat-semibold.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("polices/montserrat-bold.woff2") format("woff2"); }

:root {
  --vert-oustalia: #11342e;
  --vert-appuye: #0b2621;
  --orange-point: #f6724e;
  --fond: #fefefe;
  --surface: #f2f6f5;
  --encre: #11342e;
  --encre-douce: #4f6b65;
  --orange-texte: #b9431f;
  --orange-doux: #fbe5dd;
  --trait: #d5dfdc;
  --rayon-s: 4px;
  --rayon-m: 12px;
  --rayon-rond: 999px;
  --police: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --largeur: 1080px;
  /* Courbe des mouvements : un départ franc, une arrivée douce, comme la virgule qui se pose. */
  --courbe: cubic-bezier(0.22, 1, 0.36, 1);
  --duree: 700ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Les blocs qui arrivent de côté ne doivent jamais élargir la page. */
  overflow-x: clip;
}

img { max-width: 100%; }
a { color: var(--orange-texte); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange-point); outline-offset: 3px; border-radius: var(--rayon-s); }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 10;
  background: rgba(254, 254, 254, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease;
}
.entete.defile { border-bottom-color: var(--trait); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; transition: min-height 300ms var(--courbe); }
.entete.defile .conteneur { min-height: 60px; }
.entete .marque { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.entete .marque img { display: block; height: 44px; width: auto; transition: transform 500ms var(--courbe); }
.entete .marque:hover img { transform: rotate(-12deg); }

.navigation { display: flex; align-items: center; gap: 28px; }
.navigation a:not(.bouton) {
  position: relative; color: var(--encre); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0;
}
.navigation a:not(.bouton):hover { color: var(--orange-texte); }
/* Le point du « i » sous l'entrée de la section en cours. */
.navigation a:not(.bouton)::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--orange-point);
  transform: scale(0); transition: transform 350ms var(--courbe);
}
.navigation a.actif::after { transform: scale(1); }

/* Sur téléphone, la page se parcourt au doigt : seul le bouton vers Alma reste dans l'en-tête. */
@media (max-width: 680px) {
  .navigation a:not(.bouton) { display: none; }
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 24px;
  border-radius: var(--rayon-rond);
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 2px solid var(--vert-oustalia);
  transition: background-color 250ms ease, border-color 250ms ease, color 250ms ease, transform 250ms var(--courbe);
}
.bouton:hover { transform: translateY(-2px); }
.bouton:active { transform: translateY(0); }
.bouton-principal { background: var(--vert-oustalia); color: var(--fond); }
.bouton-principal:hover { background: var(--vert-appuye); border-color: var(--vert-appuye); color: var(--fond); }
.bouton-secondaire { background: transparent; color: var(--vert-oustalia); }
.bouton-secondaire:hover { background: var(--surface); color: var(--vert-oustalia); }
.bouton .fleche { display: inline-block; transition: transform 300ms var(--courbe); }
.bouton:hover .fleche { transform: translateX(4px); }

/* ---------- Ouverture ---------- */
.ouverture { position: relative; padding: 32px 0 80px; text-align: center; overflow: hidden; }
.logo { position: relative; width: min(480px, 100%); margin: 0 auto; aspect-ratio: 640 / 426; }
.logo img, .logo video { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo video { display: none; }
.anime .logo video { display: block; }
.anime .logo img { visibility: hidden; }
.accroche { font-size: clamp(30px, 5.2vw, 52px); line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; margin: 16px auto 20px; max-width: 22ch; text-wrap: balance; }
.accroche .point { color: var(--orange-point); }
.chapeau { font-size: 18px; color: var(--encre-douce); max-width: 58ch; margin: 0 auto 36px; text-wrap: pretty; }
.actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-surface { background: var(--surface); }
.etiquette { display: inline-flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange-texte); margin: 0 0 12px; }
/* Le trait sous l'étiquette, tracé comme la virgule du logo. */
.etiquette svg { width: 56px; height: 10px; overflow: visible; }
.etiquette path { fill: none; stroke: var(--orange-point); stroke-width: 3; stroke-linecap: round; }
.etiquette circle { fill: var(--orange-point); }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.18; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 24px; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.texte { max-width: 64ch; }
.texte p { margin: 0 0 16px; }

.colonnes { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 820px) { .colonnes { grid-template-columns: 1fr; gap: 32px; } }

.encart {
  background: var(--fond);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-m);
  padding: 28px;
  transition: border-color 300ms ease, transform 400ms var(--courbe);
}
.section:not(.section-surface) .encart { background: var(--surface); border-color: transparent; }

/* Liste à puces : la puce est un point orange, comme celui du « i ». */
.liste-points { list-style: none; padding: 0; margin: 0; }
.liste-points li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.liste-points li:last-child { margin-bottom: 0; }
.liste-points li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--orange-point); }

/* ---------- Société : les deux moitiés du nom ---------- */
.nom-decompose { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; margin-top: 8px; }
.nom-decompose .moitie { background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon-m); padding: 24px; }
.nom-decompose .mot { font-size: 30px; font-weight: 700; line-height: 1; margin: 0 0 10px; }
.nom-decompose .mot.ia { color: var(--orange-texte); }
.nom-decompose .sens { margin: 0; color: var(--encre-douce); font-size: 15px; }
.nom-decompose .plus { align-self: center; font-size: 28px; font-weight: 700; color: var(--orange-point); }
@media (max-width: 560px) { .nom-decompose { grid-template-columns: 1fr; } .nom-decompose .plus { justify-self: center; } }

.metier { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .metier { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .metier { grid-template-columns: 1fr; } }
.metier .encart { padding: 22px; }
.metier .numero { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: var(--orange-doux); color: var(--orange-texte); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.metier h3 { font-size: 17px; margin-bottom: 6px; }
.metier p { margin: 0; font-size: 15px; color: var(--encre-douce); }

/* ---------- Alma : les écrans ---------- */
.ecrans { position: relative; padding: 0 0 48px 0; }
.cadre-ecran {
  position: relative; border: 1px solid var(--trait); border-radius: var(--rayon-m); overflow: hidden; background: var(--fond);
}
.cadre-ecran .barre { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--trait); background: var(--fond); }
.cadre-ecran .barre span { width: 9px; height: 9px; border-radius: 50%; background: var(--trait); }
.cadre-ecran img { display: block; width: 100%; height: auto; }
.cadre-telephone {
  position: absolute; right: -8px; bottom: 0; width: 34%; max-width: 190px;
  border: 6px solid var(--vert-oustalia); border-radius: 22px; overflow: hidden; background: var(--fond);
}
.cadre-telephone img { display: block; width: 100%; height: auto; }
.legende { margin-top: 12px; font-size: 13px; color: var(--encre-douce); }
@media (max-width: 820px) { .cadre-telephone { right: 8px; } }

.interfaces { margin: 24px 0 28px; }

/* ---------- Équipe ---------- */
.equipe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .equipe { grid-template-columns: 1fr; } }
.equipe .encart { display: flex; flex-direction: column; gap: 16px; }
.equipe .encart:hover { border-color: var(--orange-point); transform: translateY(-3px); }
.equipe .portrait {
  width: 72px; height: 72px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--vert-oustalia); color: var(--fond); font-weight: 700; font-size: 22px; letter-spacing: 0.02em;
  position: relative; overflow: hidden;
}
.equipe .portrait img { width: 100%; height: 100%; object-fit: cover; }
/* Le point orange du « i », posé sur chaque portrait. */
.equipe .portrait-cadre { position: relative; width: 72px; }
.equipe .portrait-cadre::after { content: ""; position: absolute; right: -2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--orange-point); border: 3px solid var(--fond); }
.equipe .role { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--orange-texte); }
.equipe .encart p.bio { margin: 0; color: var(--encre-douce); }

/* ---------- Contact ---------- */
.contact-bloc {
  background: var(--vert-oustalia); color: var(--fond); border-radius: var(--rayon-m);
  padding: clamp(32px, 6vw, 64px); text-align: center; position: relative; overflow: hidden;
}
.contact-bloc h2 { color: var(--fond); }
.contact-bloc .etiquette { color: var(--orange-point); }
.contact-bloc p { max-width: 56ch; margin: 0 auto 16px; color: #d9e4e1; }
.contact-bloc a:not(.bouton) { color: #f88a6a; }
.contact-bloc .bouton-clair { background: var(--fond); color: var(--vert-oustalia); border-color: var(--fond); margin-top: 12px; }
.contact-bloc .bouton-clair:hover { background: var(--surface); border-color: var(--surface); color: var(--vert-oustalia); }
.contact-bloc > :not(.arc-contact) { position: relative; z-index: 1; }
/* La virgule du logo, en coin : elle ne passe jamais sous le texte. */
.contact-bloc .arc-contact { position: absolute; right: 20px; top: 20px; width: clamp(80px, 14vw, 140px); pointer-events: none; }
.contact-bloc .arc-contact path { fill: none; stroke: var(--orange-point); stroke-width: 4; stroke-linecap: round; }
.contact-bloc .arc-contact circle { fill: var(--orange-point); }
@media (max-width: 560px) { .contact-bloc .arc-contact { display: none; } }
.a-completer { background: var(--orange-doux); color: var(--orange-texte); padding: 2px 8px; border-radius: var(--rayon-s); font-weight: 600; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--trait); padding: 32px 0; font-size: 14px; color: var(--encre-douce); }
.pied .conteneur { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pied img { height: 32px; width: 32px; display: block; }
.pied .ligne { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pied a { color: var(--encre-douce); }

/* ---------- Mentions légales ---------- */
.document { padding: 48px 0 64px; }
.document h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 32px; }
.document h2 { font-size: 22px; margin: 32px 0 12px; }
.document p { margin: 0 0 12px; max-width: 72ch; }

/* =====================================================================
   Mouvement. Tout ce qui suit n'existe que si le script a posé la classe
   « mouvement » (donc JavaScript actif et aucune demande de réduction des
   animations) : sans elle, la page s'affiche entière et immobile.
   ===================================================================== */
.mouvement [data-revele] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--duree) var(--courbe), transform var(--duree) var(--courbe);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.mouvement [data-revele="gauche"] { transform: translateX(-24px); }
.mouvement [data-revele="droite"] { transform: translateX(24px); }
.mouvement [data-revele="zoom"] { transform: scale(0.96); }
.mouvement [data-revele].visible { opacity: 1; transform: none; }

/* Les traits se dessinent : longueur normalisée par pathLength="1". */
.mouvement .trace { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms var(--courbe); transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
.mouvement .visible .trace, .mouvement .trace.visible { stroke-dashoffset: 0; }
.mouvement .point-trace { transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform 450ms var(--courbe); transition-delay: calc(var(--i, 0) * 90ms + 900ms); }
.mouvement .visible .point-trace { transform: scale(1); }

/* Ouverture : le texte arrive pendant que le logo s'anime. */
.mouvement .ouverture .entree { opacity: 0; transform: translateY(16px); animation: entree 900ms var(--courbe) forwards; animation-delay: calc(400ms + var(--i, 0) * 140ms); }
@keyframes entree { to { opacity: 1; transform: none; } }

/* Le téléphone arrive après l'écran du bureau. */
.mouvement .cadre-telephone { opacity: 0; transform: translateY(40px) rotate(2deg); transition: opacity 800ms var(--courbe) 350ms, transform 900ms var(--courbe) 350ms; }
.mouvement .ecrans.visible .cadre-telephone { opacity: 1; transform: rotate(0deg); }

/* Les puces du métier apparaissent une à une. */
.mouvement .liste-points li::before { transform: scale(0); transition: transform 400ms var(--courbe); transition-delay: calc(var(--j, 0) * 120ms + 300ms); }
.mouvement .visible .liste-points li::before, .mouvement .liste-points.visible li::before { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
