/* Automatisation — page autonome, par-dessus la feuille de style du site (index.*.css).
   Blanc, noir et or. Une seule idée visuelle : une scène réelle, et le message tel qu'on le reçoit, posé dessus. */

.au {
  --au-encre: #0e0d0c;
  --au-gris: #5c5c5a;
  --au-gris-2: #858480;
  --au-filet: rgba(0, 0, 0, 0.1);
  --au-or: #e1a54b;
  --au-or-texte: #8c610c;
  --au-sable: #f4f3f2;
  --au-sable-2: #e9e7e2;
  color: var(--au-encre);
  overflow-x: clip;
}
.au :focus-visible { outline: 2px solid var(--au-or); outline-offset: 2px; border-radius: 6px; }
.au h1 em, .au h2 em { white-space: nowrap; }

/* --- en-tête de page ------------------------------------------------------------------------------- */
.au-hero { padding: 64px 0 0; }
.au-hero .eyebrow { color: var(--au-or-texte); }
.au-hero-rangee { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 28px 64px; margin-top: 18px; }
.au-hero h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; text-wrap: balance; color: var(--au-encre); }
.au-hero-texte p { color: var(--au-gris); font-size: 17.5px; line-height: 1.62; max-width: 50ch; }
.au-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin-top: 24px; }
.au-lien { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15.5px; color: var(--au-encre); text-decoration: none; border-bottom: 1.5px solid var(--au-or); padding-bottom: 2px; }
.au-lien:hover { color: var(--au-or-texte); }

/* --- une scène : l'image, et le message posé dessus ------------------------------------------------- */
.au-scene { margin: 0; }
.au-scene-haut { margin-top: 44px; }
.au-ensemble { position: relative; }
.au-cadre { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--au-sable-2); }
.au-cadre-large { aspect-ratio: 16 / 9; border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05); }
.au-cadre img, .au-cadre video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.au-illustration { position: absolute; right: 10px; bottom: 10px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.35; color: #e3dfd7; background: rgba(12, 11, 10, 0.66); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 5px; padding: 3px 7px; }
.au-legende { margin-top: 12px; color: var(--au-gris-2); font-size: 13.5px; }
/* quand le message est en bas à gauche, l'étiquette monte en haut à droite */
.au-cadre[data-bulle="bg"] .au-illustration { top: 10px; bottom: auto; }

/* le message */
.au-bulle { position: absolute; width: min(78%, 300px); background: rgba(255, 255, 255, 0.96); color: var(--au-encre); border-radius: 16px; padding: 11px 13px 12px; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.05); font-size: 13.5px; line-height: 1.42; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.au-bulle-tete { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #6b6a68; margin-bottom: 5px; white-space: nowrap; }
.au-bulle-tete img { width: 20px; height: 20px; border-radius: 5px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); flex: none; }
.au-bulle-tete b { color: var(--au-encre); font-weight: 600; }
.au-bulle-tete > span { margin-left: auto; overflow: hidden; text-overflow: ellipsis; }
.au-bulle strong { display: block; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; line-height: 1.3; }
.au-bulle-texte { display: block; color: #33322f; margin-top: 2px; }
.au-bulle-bg { left: 14px; bottom: 14px; }
.au-bulle-hg { left: 14px; top: 14px; }
.au-bulle-hd { right: 14px; top: 14px; }
/* avec JavaScript, le message apparaît quand la scène arrive à l'écran; sans, il est là d'emblée */
.au-js .au-bulle { opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.au-js .au-bulle.est-la { opacity: 1; transform: none; }

/* haut de page : trois messages qui se succèdent au même endroit */
.au-bulles { position: absolute; left: 22px; bottom: 22px; width: min(66%, 400px); height: 0; }
.au-bulle-haut { left: 0; bottom: 0; width: 100%; font-size: 15px; padding: 13px 16px 14px; border-radius: 18px; }
.au-bulle-haut strong { font-size: 16.5px; }
.au-bulle-haut .au-bulle-tete { font-size: 12.5px; margin-bottom: 7px; }
.au-bulle-haut .au-bulle-tete img { width: 24px; height: 24px; border-radius: 6px; }

/* --- une journée ------------------------------------------------------------------------------------ */
.au-journee { padding: 80px 0 40px; scroll-margin-top: 90px; }
.au-journee-tete { max-width: 780px; margin-bottom: 36px; }
.au-journee h2, .au-regles h2, .au-chez-vous h2, .au-reste h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; color: var(--au-encre); }
.au-journee-tete p, .au-regles-tete p, .au-reste-tete p { color: var(--au-gris); font-size: 17px; line-height: 1.6; margin-top: 14px; max-width: 62ch; }
.au-journee-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.au-carte { min-width: 0; }
.au-carte figcaption { padding: 16px 4px 0; }
.au-heure { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--au-or-texte); }
.au-carte h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.22; margin-top: 6px; text-wrap: balance; color: var(--au-encre); }
.au-carte p { color: var(--au-gris); font-size: 15px; line-height: 1.58; margin-top: 8px; }
.au-carte p a { color: var(--au-or-texte); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.au-carte p a:hover { color: var(--au-encre); }

/* --- selon vos règles ------------------------------------------------------------------------------- */
.au-regles { background: var(--au-sable); padding: 80px 0 88px; margin-top: 48px; }
.au-regles-tete { max-width: 780px; }
.au-regles-liste { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.au-regles-liste li { background: #fff; border: 1px solid rgba(226, 171, 87, 0.3); border-radius: 14px; padding: 22px 24px 24px; }
.au-regle-si { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--au-or-texte); background: #fbf3e3; border-radius: 999px; padding: 4px 10px; }
.au-regles-liste p { margin-top: 12px; font-size: 17px; line-height: 1.55; color: #33322f; }
.au-regles-liste b { color: var(--au-encre); font-weight: 600; }

/* --- ce qui reste chez vous --------------------------------------------------------------------------- */
.au-chez-vous { padding: 84px 0 24px; }
.au-chez-vous-liste { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
.au-chez-vous-icone { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--au-or); color: var(--au-or-texte); }
.au-chez-vous h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-top: 16px; text-wrap: balance; }
.au-chez-vous p { color: var(--au-gris); font-size: 15.5px; line-height: 1.6; margin-top: 8px; }

/* --- avec le reste du boîtier ------------------------------------------------------------------------- */
.au-reste { padding: 72px 0 96px; }
.au-reste-tete { max-width: 780px; }
.au-reste-liste { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.au-reste-liste a { display: flex; flex-direction: column; gap: 12px; height: 100%; background: var(--au-sable); border: 1px solid rgba(226, 171, 87, 0.18); border-radius: 14px; padding: 22px 24px 22px; color: var(--au-encre); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.au-reste-liste a:hover { border-color: var(--au-or); transform: translateY(-2px); }
.au-reste-liste .eyebrow { color: var(--au-or-texte); font-size: 11px; }
.au-reste-liste strong { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.au-reste-lien { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-size: 14.5px; font-weight: 600; color: var(--au-or-texte); }
.au-reste-liste a:hover .au-reste-lien svg { transform: translate(2px, -2px); }
.au-reste-lien svg { transition: transform 0.2s; }

/* --- appel (bande noire) -------------------------------------------------------------------------------- */
.au-appel { background: #000; color: #f4f1ea; padding: 84px 0 96px; }
.au-appel-rangee { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.au-appel h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; color: #fff; }
.au-appel h2 em { background-image: var(--feuille); }
.au-appel p { color: #bcb8b0; font-size: 17px; margin-top: 12px; max-width: 56ch; }
.au-appel .btn { flex: none; }

/* --- écrans plus étroits -------------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .au-journee-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .au-regles-liste, .au-chez-vous-liste, .au-reste-liste { grid-template-columns: minmax(0, 1fr); }
  .au-regles-liste, .au-reste-liste { max-width: 720px; }
  .au-chez-vous-liste { gap: 28px; }
}
@media (max-width: 860px) {
  .au-hero { padding-top: 40px; }
  .au-hero-rangee { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .au-hero-texte p { font-size: 16.5px; }
  .au-journee { padding-top: 60px; }
  .au-regles, .au-chez-vous { padding-top: 60px; }
  .au-appel { padding: 56px 0 72px; }
  .au-appel-rangee { display: block; }
  .au-appel .btn { margin-top: 24px; }
}
@media (max-width: 720px) {
  /* au téléphone, les trois messages du haut se lisent sous la vidéo, l'un sous l'autre */
  .au-bulles { position: static; height: auto; width: auto; display: grid; gap: 8px; margin-top: 12px; }
  .au-bulle-haut { position: static; width: auto; font-size: 13.5px; padding: 11px 13px 12px; border-radius: 16px; }
  .au-bulle-haut strong { font-size: 14px; }
  .au-bulle-haut .au-bulle-tete { font-size: 11.5px; margin-bottom: 5px; }
  .au-bulle-haut .au-bulle-tete img { width: 20px; height: 20px; border-radius: 5px; }
  .au-js .au-bulle-haut { opacity: 1; transform: none; }
  .au-cadre-large { border-radius: 16px; }
}
@media (max-width: 640px) {
  .au-journee-liste { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .au-bulle { width: min(86%, 300px); }
  .au-carte figcaption { padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .au-js .au-bulle { transition: none; opacity: 1; transform: none; }
  .au-reste-liste a, .au-reste-lien svg { transition: none; }
}
