/* Airmedia — les pages annexes dans la nouvelle identité (16/11/2026, maquette v13) : mentions légales, Confidentialité,
   /rendez-vous/ et la page introuvable. Feuille autonome : elle remplace, pour ces quatre pages seulement, airmedia.css,
   pages.css et rendez-vous.css (que les pauses et les propositions gardent). Mêmes couleurs, même police et même logo que
   l'accueil : nuit, encre, bordeaux, Archivo. Le menu reste collé en haut pendant le défilement (Rachid, 08/11/2026). */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../fonts/archivo.woff2") format("woff2"); }

:root {
  --nuit: #0B1420; --encre: #0F1D33; --encre-douce: #4F6280; --bordeaux: #A33445; --bordeaux-fonce: #8A2A39;
  --bordeaux-clair: #C95A6C; --clair: #FAF8F3; /* crème des propositions, demandé par Rachid le 18/11/2026 (avant #F7F3EA, et #F6F7F9 avant le 17/11) */ --blanc: #FFFFFF; --gris: #C9CFD8; --texte-nuit: #F4F8FC;
  --trait: rgba(15, 29, 51, .12);
  --sans: "Archivo", system-ui, -apple-system, sans-serif;
  --h: 72px; --g: max(20px, env(safe-area-inset-left));
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
@media (max-width: 760px) { :root { --h: 60px; --g: max(16px, env(safe-area-inset-left)); } }

*, *::before, *::after { box-sizing: border-box; }
/* Les ancres (#contenu, #matomo-opt-out…) arrivent sous le menu collé, jamais dessous. */
html { background: var(--nuit); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--h) + env(safe-area-inset-top) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--clair); color: var(--encre);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
main { flex: 1; display: flex; flex-direction: column; }
main:focus { outline: none; }
h1, h2, p, ul { margin: 0; }
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; border-radius: 4px; }

.evitement { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--encre); color: var(--texte-nuit); text-decoration: none; transition: top .2s; }
.evitement:focus { top: calc(env(safe-area-inset-top) + 12px); }

/* ---------- Logo : le mot Airmedia, le point du i en voyant REC (bordeaux) ---------- */
.mlogo { height: 30px; width: auto; overflow: visible; }
.mlogo .lg-c { fill: currentColor; }
.mlogo .lg-p { fill: var(--bordeaux); transform-box: fill-box; transform-origin: center; }
.mlogo .lg-v { fill: url(#gvx) var(--bordeaux); }
/* la phrase sous le logo d'en-tête, aussi large qu'ONELLA (Rachid, 18/11/2026) : le logo grandit d'autant, les lettres gardent leur taille */
.mlogo.sig { height: 38.6px; }
.mlogo .lg-s { font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif; font-weight: 500; fill: currentColor; fill-opacity: .72; }
.entete:not(.entete--clair) .mlogo .lg-s { fill: #DCE3EC; fill-opacity: .8; }
.entete__logo:hover .lg-p, .pied__logo:hover .lg-p { animation: rec 1.2s ease-in-out 2; }
@keyframes rec { 50% { opacity: .15; } }

/* ---------- Menu collé en haut (sticky : il garde sa place, rien ne passe dessous) ---------- */
.entete { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top); color: var(--encre);
  background: rgba(250, 248, 243, .9); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 -1px 0 var(--trait); }
.entete__interieur { height: var(--h); width: min(1180px, 100% - 2 * var(--g)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.entete__logo { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: inherit; }
.entete__retour { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: 500 14px/1 var(--sans); letter-spacing: .04em; text-decoration: none; color: inherit; box-shadow: inset 0 0 0 1px var(--trait);
  transition: box-shadow .3s, transform .3s var(--ease); }
.entete__retour:hover { box-shadow: inset 0 0 0 1px currentColor; transform: translateY(-1px); }
.icone { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.entete__retour .icone { transform: rotate(180deg); color: var(--bordeaux); }
/* En-tête sur la nuit (page introuvable) : logo argenté, comme sur l'accueil. */
.entete:not(.entete--clair) { color: var(--texte-nuit); background: rgba(11, 20, 32, .78); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .12); }
.entete:not(.entete--clair) .mlogo .lg-c { fill: url(#chr); }
.entete:not(.entete--clair) .mlogo .lg-v { fill: url(#gvx-nuit) var(--bordeaux); }
.entete:not(.entete--clair) .entete__retour { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.entete:not(.entete--clair) .entete__retour .icone { color: var(--bordeaux-clair); }
@media (max-width: 760px) { .mlogo { height: 26px; } .mlogo.sig { height: 33.4px; } .entete__retour { padding: 0 16px; font-size: 13px; } }

/* ---------- Contenu ---------- */
.conteneur { width: min(1080px, 100% - 2 * var(--g)); margin-inline: auto; }
.section { padding-block: clamp(48px, 8vw, 104px) clamp(72px, 10vw, 128px); }
.legale__contenu { max-width: 760px; }
.etiquette { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--bordeaux); }
.etiquette::before { content: ""; width: 28px; height: 2px; background: var(--bordeaux); }
h1 { font-weight: 500; font-size: clamp(40px, 1rem + 4vw, 68px); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
/* Plus de mot colorié dans les titres (Rachid, 19/11/2026) : le mot garde la couleur du titre. */
h1 em { font-style: normal; color: inherit; }
.chapeau { margin-top: 20px; max-width: 60ch; font-size: clamp(18px, 1rem + .3vw, 20px); line-height: 1.5; color: var(--encre-douce); }
.lien { color: var(--bordeaux); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; transition: color .2s; }
.lien:hover { color: var(--bordeaux-fonce); text-decoration-thickness: 2px; }

/* Pages légales : un bloc par sujet, un liseré bordeaux à gauche du titre. */
.legale__bloc { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--trait); }
.legale__contenu > .chapeau + .legale__bloc { margin-top: 48px; }
.legale__bloc h2 { position: relative; padding-left: 16px; margin-bottom: 12px; font-size: clamp(20px, 1rem + .5vw, 24px); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.legale__bloc h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 3px; border-radius: 2px; background: var(--bordeaux); }
.legale__bloc p { font-size: 16.5px; color: #2A3443; }
.legale__date { margin-top: 48px; font-size: 13.5px; color: var(--encre-douce); }
#matomo-opt-out { margin-top: 16px; padding: 16px 20px; border-radius: 14px; background: var(--blanc); border: 1px solid var(--trait); font-size: 15px; }
#matomo-opt-out p { font-size: 15px; }

/* ---------- Page /rendez-vous/ ---------- */
.rdv .chapeau { max-width: 62ch; }
/* Le moteur de l'agenda dessine son widget ici : tant que le cadre est vide, 560 px sont réservés pour que la page ne
   saute pas ; ensuite il suit le widget (au moins 430 px à chaque étape : jamais de bande vide sous lui). */
.rdv__cadre { margin-top: clamp(32px, 5vw, 56px); min-height: 430px; border-radius: 24px; background: var(--blanc); border: 1px solid var(--trait);
  box-shadow: 0 30px 60px -40px rgba(15, 29, 51, .35); overflow: hidden; }
.rdv__cadre:empty { min-height: 560px; }
/* Moteur injoignable (est-en-panne, posé par agenda.js) ou JavaScript coupé : pas de cadre vide, la phrase de secours seule. */
.rdv__cadre.est-en-panne, html:not(.js) .rdv__cadre { display: none; }
.agenda-repli { margin: 18px 0 0; font-size: 15px; color: var(--encre-douce); }
.agenda-repli[hidden] { display: none; }
.agenda-repli a { color: var(--bordeaux); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 899px) { .rdv__cadre { border-radius: 16px; } }
/* Les couleurs d'Airmedia pour l'agenda, limitées à ce bloc (comme dans la maquette, .rdv-cadre .agd) : le moteur
   de l’agenda garde son or partout ailleurs (airmediafilms.fr ne bouge pas). */
.rdv__cadre .agd {
  --agd-creme:#F6F7F9; --agd-creme-sombre:#E9ECF1; --agd-papier:#FFFFFF;
  --agd-encre:#0B1420; --agd-texte:#2A3443; --agd-attenue:#667185; --agd-eteint:#C3C9D3;
  --agd-or:#A33445; --agd-or-texte:#8A2A39; --agd-or-clair:#C95A6C; --agd-or-lumiere:#E7A1AC;
  --agd-bordure:rgba(15,29,51,.12); --agd-rouge:#A33445;
  --agd-dore-bouton:linear-gradient(110deg,#8A2738 0%,#A33445 34%,#C4566A 50%,#A33445 66%,#842536 100%);
  --agd-nuit:radial-gradient(ellipse 80% 62% at 82% 96%,rgba(163,52,69,.38),rgba(163,52,69,0) 72%),radial-gradient(ellipse 70% 55% at 6% 2%,rgba(3,6,12,.6),rgba(3,6,12,0) 72%),linear-gradient(160deg,#070D16 0%,#0B1420 45%,#1B2840 100%);
  --agd-nuit-melange:normal;
  --agd-nuit-petite:radial-gradient(ellipse 90% 70% at 80% 100%,rgba(163,52,69,.5),rgba(163,52,69,0) 75%),linear-gradient(160deg,#0B1420 0%,#15213A 55%,#22314F 100%);
  --agd-police-titre:var(--sans); --agd-police:var(--sans); --agd-police-script:var(--sans);
}
/* Plus de mot en bordeaux dans l'agenda (Rachid, 19/11/2026 : « Parlez-moi de votre projet, met tout en normal », « pareil
   pour la date », « pareil pour à très bientôt ») : le mot mis en valeur des titres et la date du récapitulatif prennent la
   couleur, la taille et la graisse du texte qui les entoure. */
.rdv__cadre .agd .agd-titre em, .rdv__cadre .agd .agd-panneau .agd-titre em {
  color: inherit; font: inherit; font-style: normal; line-height: inherit; }
.rdv__cadre .agd .agd-recap b, .rdv__cadre .agd .agd-recap-bandeau b { color: var(--agd-creme-sombre); }
/* Les boutons de l'agenda comme ceux du site : bordeaux brillant, texte couleur papier (jamais sombre sur le bordeaux). */
.rdv__cadre .agd .agd-bouton, .rdv__cadre .agd .agd-agenda, .rdv__cadre .agd .agd-heure[aria-pressed='true'],
.rdv__cadre .agd .agd-bascule-choix[aria-pressed='true'] { color: #FAF8F3; }
.rdv__cadre .agd .agd-bouton, .rdv__cadre .agd .agd-agenda { font-weight: 600; box-shadow: 0 14px 30px -14px rgba(122, 31, 46, .55); }

/* ---------- Page introuvable : sur la nuit ---------- */
.page-erreur { background: var(--nuit); }
.erreur { position: relative; flex: 1; display: grid; place-items: center; text-align: center; overflow: hidden;
  min-height: calc(100svh - var(--h) - env(safe-area-inset-top)); padding: 64px var(--g) 88px; color: rgba(244, 248, 252, .78);
  background: radial-gradient(ellipse 80% 62% at 82% 96%, rgba(163, 52, 69, .32), rgba(163, 52, 69, 0) 72%), linear-gradient(160deg, #070D16 0%, #0B1420 45%, #1B2840 100%); }
.erreur__code { position: absolute; inset: auto 0 50%; transform: translateY(50%); font-weight: 800; font-size: clamp(160px, 36vw, 440px); line-height: 1;
  letter-spacing: -.04em; color: rgba(201, 207, 216, .07); pointer-events: none; user-select: none; }
.erreur__contenu { position: relative; max-width: 640px; }
.erreur h1 { color: var(--texte-nuit); }
.erreur .chapeau { margin: 20px auto 36px; color: rgba(244, 248, 252, .74); }
.erreur :focus-visible { outline-color: var(--texte-nuit); }

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px;
  font: 500 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; transition: transform .3s var(--ease), background-color .3s; }
/* Les mêmes boutons que les pages pause (Rachid, 19/11/2026) : pilule bordeaux brillante, et contour fin pour le second. */
.bouton--principal { color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 30px -14px rgba(122, 31, 46, .55);
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 52%), linear-gradient(110deg, #8A2738 0%, #A33445 34%, #C4566A 50%, #A33445 66%, #842536 100%); }
.bouton--principal:hover, .bouton--principal:focus-visible { transform: translateY(-1px); filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 16px 34px -14px rgba(122, 31, 46, .6); }
.bouton--secondaire { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px rgba(229, 138, 153, .55); }
.bouton--secondaire:hover, .bouton--secondaire:focus-visible { background: rgba(229, 138, 153, .12); }

/* ---------- Pied de page : sobre, sur la nuit ---------- */
.pied { position: relative; background: var(--nuit); color: var(--texte-nuit); padding-top: clamp(56px, 8vw, 88px); }
.pied :focus-visible { outline-color: var(--texte-nuit); }
.pied__interieur { width: min(1180px, 100% - 2 * var(--g)); margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: clamp(40px, 6vw, 64px); }
.pied__logo { display: inline-flex; min-height: 44px; align-items: center; color: inherit; }
.pied__logo .mlogo { height: 38px; }
.pied__logo .mlogo .lg-c { fill: url(#chr); }
.pied__logo .mlogo .lg-v { fill: url(#gvx-nuit) var(--bordeaux); }
.pied__role { margin-top: 14px; max-width: 30ch; font-size: 15px; color: rgba(244, 248, 252, .62); }
.pied__titre { margin-bottom: 16px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(244, 248, 252, .56); }
.pied__liens { font-size: 15px; line-height: 1.5; }
.pied__contact { font-size: 15px; line-height: 2; }
.pied__liens { list-style: none; padding: 0; display: grid; gap: 10px; }
.pied .lien { color: rgba(244, 248, 252, .82); text-decoration-color: rgba(244, 248, 252, .3); }
.pied .lien:hover { color: #fff; text-decoration-color: var(--bordeaux-clair); }
.pied__bas { width: min(1180px, 100% - 2 * var(--g)); margin-inline: auto; padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .08); }
.pied__mention { font-size: 13px; color: rgba(244, 248, 252, .56); }
@media (max-width: 760px) {
  .pied__interieur { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .pied__interieur > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .pied__interieur { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
