/* Aro Campus — site vitrine.
   Direction artistique de l'app : Bleu Aro, Vert Aro, Ciel, Soleil,
   Framboise ; titres Nunito Sans ExtraBold, accents Lora italique ;
   surfaces bleu très pâle, cartes blanches arrondies. */

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-stretch: 75% 125%;
  font-display: optional;
  src: url("/fonts/NunitoSans-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 600;
  font-display: optional;
  src: url("/fonts/Lora-SemiBoldItalic.woff2") format("woff2");
}

:root {
  --bleu: #005680;
  --bleu-fonce: #00415f;
  --vert: #9fc646;
  --vert-intense: #00835c;
  --soleil: #fdc300;
  --orange: #f39200;
  --ciel: #00aeb2;
  --framboise: #e60060;
  --prune: #952264;

  --text: #071d2b;
  --text-2: #526375;
  --surface: #ffffff;
  --surface-alt: #f5fafd;
  --surface-tint: #e8f5fd;
  --card: #ffffff;
  --outline: #d5e2eb;
  --link: var(--bleu);
  --pale-green: #f0f8e7;
  --pale-rose: #fde8ef;
  --pale-amber: #fff4d6;
  --pale-blue: #e8f5fd;

  --hero-bg: #eaf6fd;
  --download-bg: #f0f8e7;

  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-accent: "Lora", Georgia, serif;
  --container: 1180px;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow-card: 0 1px 2px rgba(7, 29, 43, 0.06), 0 12px 32px -16px rgba(7, 29, 43, 0.18);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.nowrap {
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bleu);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10001;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--soleil);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--outline) 60%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: block;
  flex: none;
}

.brand-logo {
  width: 72px;
  height: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a:not(.btn) {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.primary-nav a:not(.btn):hover,
.primary-nav a[aria-current="page"] {
  background: var(--pale-blue);
  color: var(--link);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--pale-blue);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0.55rem 1rem;
}

.nav-toggle-icon {
  position: relative;
  width: 1.2rem;
  height: 0.9rem;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle-icon::before {
  top: 0;
}

.nav-toggle-icon::after {
  bottom: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-small {
  padding: 0.6rem 1.15rem;
  font-size: 0.95rem;
}

.btn-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--bleu);
  color: #fff;
}

.btn-primary:hover {
  background: var(--bleu-fonce);
  color: #fff;
}

.btn-secondary {
  background: var(--pale-blue);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--outline);
}

/* Badges des stores */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.store-badge {
  display: block;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-badge img {
  height: 56px;
  width: auto;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.6);
}

/* Libellés */
.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--vert-intense);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--text);
  background: var(--hero-bg);
  padding: clamp(3rem, 7vw, 6rem) 0 0;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 2rem;
}

.hero-copy {
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 34rem;
  margin: 0 0 2rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-2);
}

.hero-web {
  margin: 1.1rem 0 0;
  font-size: 0.98rem;
  color: var(--text-2);
}

.hero-web a {
  color: var(--bleu);
  font-weight: 800;
}

.hero-phones {
  position: relative;
  align-self: end;
  height: clamp(430px, 48vw, 600px);
}

.hero-phones .phone {
  position: absolute;
  bottom: -70px;
}

.hero-phones .phone-front {
  left: 12%;
  width: clamp(230px, 24vw, 300px);
  transform: rotate(-4deg);
  z-index: 2;
  animation: hero-rise 0.9s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-phones .phone-back {
  left: 50%;
  width: clamp(200px, 21vw, 262px);
  bottom: -20px;
  transform: rotate(6deg);
  opacity: 0.96;
  animation: hero-rise 0.9s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    translate: 0 60px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(36px, 6vw, 90px);
  color: var(--surface);
  z-index: 3;
}

/* Téléphone générique (captures de l'app) */
.phone {
  position: relative;
  padding: 9px;
  border-radius: 42px;
  background: #1b2630;
  box-shadow:
    0 0 0 2px #3b4a57 inset,
    0 40px 60px -30px rgba(0, 20, 35, 0.65),
    0 12px 24px -14px rgba(0, 20, 35, 0.5);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 33px;
  background: #f5fafd;
  aspect-ratio: 660 / 1400;
}

/* Barre d'état blanche + Dynamic Island en capsule (proportions iPhone :
   126 × 37 pt sur un écran de 430 pt de large, à 11 pt du haut). */
.phone-screen::before {
  content: "";
  display: block;
  height: 5.5%;
  background: #fff;
}

.phone-screen::after {
  content: "";
  position: absolute;
  top: 1.2%;
  left: 50%;
  width: 29.3%;
  aspect-ratio: 126 / 37;
  border-radius: 999px;
  background: #0b0f13;
  transform: translateX(-50%);
}

.phone-screen img {
  width: 100%;
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2.25rem, 5vw, 3.5rem);
  text-align: center;
}

.section-head h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}

.section-lead {
  margin: 0;
  font-size: 1.18rem;
  color: var(--text-2);
}

.section-presentation {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

/* Animation de présentation (contenu dans public/presentation/) */
.presentation-frame {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(0.5rem, 2vw, 1.5rem);
  border-radius: 36px;
  background: #d9eef8;
  box-shadow: 0 30px 60px -40px rgba(0, 86, 128, 0.45);
}

.presentation-frame iframe {
  display: block;
  width: min(100%, 440px);
  aspect-ratio: 440 / 830;
  margin: 0 auto;
  border: 0;
  background: #d9eef8;
}

.presentation-frame[data-format="paysage"] {
  max-width: 1040px;
}

.presentation-frame[data-format="paysage"] iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
}

/* En plein écran, l'animation occupe tout l'écran, sans coins arrondis. */
.presentation-frame iframe:fullscreen {
  border-radius: 0;
}

.presentation-caption {
  max-width: 34rem;
  margin: 1.25rem auto 0;
  text-align: center;
  color: var(--text-2);
}

/* Fonctionnalités */
.section-features {
  background: var(--surface-alt);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.feature + .feature {
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

.feature-reverse .feature-media {
  order: 2;
}

.feature-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
  padding: 2.5rem 1rem;
  border-radius: 32px;
  overflow: hidden;
}

.feature-media::before {
  content: "";
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  right: -12%;
  bottom: -18%;
  background: var(--blob, rgba(159, 198, 70, 0.35));
}

.feature-media-green {
  background: var(--pale-green);
  --blob: rgba(159, 198, 70, 0.4);
}

.feature-media-soleil {
  background: var(--pale-amber);
  --blob: rgba(253, 195, 0, 0.35);
}

.feature-media-ciel {
  background: var(--pale-blue);
  --blob: rgba(0, 174, 178, 0.3);
}

.feature-media-framboise {
  background: var(--pale-rose);
  --blob: rgba(230, 0, 96, 0.18);
}

.feature-media .phone {
  width: min(270px, 70%);
  z-index: 1;
}

.feature-media .phone-mini {
  position: absolute;
  width: min(180px, 42%);
  right: 8%;
  bottom: 8%;
  transform: rotate(6deg);
  z-index: 2;
}

.feature-media-ciel > .phone:first-child {
  transform: translateX(-18%) rotate(-3deg);
}

.feature-tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag-vert {
  background: #e3f1cc;
  color: #2f5a0b;
}

.tag-soleil {
  background: #ffefb8;
  color: #5c4300;
}

.tag-ciel {
  background: #cdeff0;
  color: #00595c;
}

.tag-framboise {
  background: #fbd3e3;
  color: #8a0039;
}

.feature-copy h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.feature-copy > p {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  color: var(--text-2);
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.checks li {
  position: relative;
  padding-left: 2rem;
  font-weight: 600;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat,
    var(--vert-intense);
}

/* Étapes */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.step {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-card);
}

.step-num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  background: var(--bleu);
}

.step:nth-child(2) .step-num {
  background: var(--vert-intense);
}

.step:nth-child(3) .step-num {
  background: var(--framboise);
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.step p {
  margin: 0;
  color: var(--text-2);
}

/* Téléchargement */
.section-download {
  position: relative;
  overflow: hidden;
  color: var(--text);
  text-align: center;
  background: var(--download-bg);
  padding-top: clamp(4rem, 8vw, 6rem);
}

.download-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-logo {
  width: 120px;
  margin-bottom: 1rem;
}

.section-download h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
}

.section-download .section-lead {
  max-width: 34rem;
  margin-bottom: 2rem;
  color: var(--text-2);
}

.section-download .store-badges {
  justify-content: center;
}

.download-landscape {
  width: 100%;
  min-width: 900px;
  margin: clamp(1.5rem, 4vw, 3rem) auto 0;
  object-fit: cover;
  object-position: 70% bottom;
  max-height: 300px;
}

/* Apparition au défilement */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.7s ease, translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* Pages de contenu */
.page-section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 5rem;
}

.page-content main {
  background:
    radial-gradient(70% 380px at 50% -120px, var(--surface-tint), transparent 70%),
    var(--surface);
}

.page-section h1,
.legal-content h1,
.legal-content > h2:first-child {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin: 0 0 1.25rem;
}

.legal-content {
  max-width: 820px;
}

.legal-content h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  margin: 2.25rem 0 0.85rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.25rem;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-content .btn {
  margin: 0.5rem 0 0.25rem;
}

.legal-content .legal-notice {
  margin: 1.5rem 0;
  padding: 1.15rem 1.35rem;
  background: var(--pale-blue);
  border-left: 4px solid var(--bleu);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.legal-content .legal-notice p:first-child {
  margin-top: 0;
}

.legal-content .legal-notice ul {
  margin-bottom: 0;
}

.faq-list h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--outline);
}

.faq-list h1 + h2 {
  border-top: 0;
  padding-top: 0;
}

/* Contact */
.contact-layout {
  max-width: 640px;
  margin: 2rem auto 0;
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.75rem 2.25rem;
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.required {
  color: var(--framboise);
  text-decoration: none;
}

.input-with-icon {
  position: relative;
}

.input-with-icon svg {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--text-2);
  pointer-events: none;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--text);
  font: inherit;
  padding: 0.85rem 1rem;
}

.input-with-icon input {
  padding-left: 2.6rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--bleu);
  outline-offset: 1px;
  border-color: var(--bleu);
}

.form-actions {
  text-align: center;
  margin-top: 1.5rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--text-2);
  text-align: center;
}

/* Pied de page */
.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--outline);
  color: var(--text-2);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-logo {
  width: 96px;
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 20rem;
  margin: 0;
}

.footer-col h2 {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: var(--text-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--bleu);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--outline);
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--outline);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: 0 20px 30px -24px rgba(7, 29, 43, 0.4);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .primary-nav a:not(.btn) {
    display: block;
    padding: 0.8rem 1rem;
  }

  .nav-cta {
    margin: 0.5rem 0 0;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero .store-badges {
    justify-content: center;
  }

  .hero-phones {
    width: min(520px, 100%);
    margin: 1rem auto 0;
    height: clamp(360px, 90vw, 520px);
  }

  .hero-phones .phone-front {
    left: 8%;
    width: min(250px, 48vw);
  }

  .hero-phones .phone-back {
    left: auto;
    right: 6%;
    width: min(220px, 42vw);
  }

  .feature,
  .feature-reverse {
    grid-template-columns: 1fr;
  }

  .feature-reverse .feature-media {
    order: 0;
  }

  .feature-media {
    min-height: 380px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .store-badge img {
    height: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-phones .phone,
  .js .reveal {
    animation: none;
    transition: none;
    opacity: 1;
    translate: 0 0;
  }
}

/* Tutoriels directeurs (lecteurs dans public/tutoriels-directeurs/) */
.tutos-head {
  max-width: 46rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.tutos-temps {
  --c: var(--bleu);
  --c-bg: var(--pale-blue);
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

.tutos-pendant {
  --c: var(--vert-intense);
  --c-bg: var(--pale-green);
}

.tutos-apres {
  --c: var(--prune);
  --c-bg: var(--pale-rose);
}

.tutos-temps-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.9rem;
  margin-bottom: 1.25rem;
}

.tutos-temps-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  color: var(--c);
}

.tutos-temps-head p {
  margin: 0;
  color: var(--text-2);
}

.tutos-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.25rem;
}

.tuto-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}

.tuto-card:hover {
  transform: translateY(-2px);
  color: var(--text);
}

.tuto-card:focus-visible {
  outline-offset: 3px;
}

.tuto-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--c-bg);
}

.tuto-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tuto-play {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 8px 20px -8px rgba(7, 29, 43, 0.5);
  transition: transform 0.2s ease;
}

.tuto-play svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.tuto-card:hover .tuto-play,
.tuto-card:focus-visible .tuto-play {
  transform: scale(1.1);
}

.tuto-txt {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  flex: 1;
  padding: 1rem 1.15rem 1.15rem;
}

.tuto-num {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c);
}

.tuto-titre {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
}

.tuto-gain {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  color: var(--text-2);
}

.tuto-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.tuto-temps {
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  background: var(--c-bg);
  color: var(--c);
  font-weight: 700;
}

.tutos-note {
  max-width: 46rem;
  margin: clamp(2.5rem, 6vw, 3.5rem) 0 0;
  color: var(--text-2);
}

.tuto-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: transparent;
}

.tuto-dialog[open] {
  display: grid;
  place-items: center;
}

.tuto-dialog::backdrop {
  background: rgba(7, 29, 43, 0.86);
}

.tuto-dialog-box {
  position: relative;
  width: min(100%, calc((100vh - 6rem) * 16 / 9));
  width: min(100%, calc((100dvh - 6rem) * 16 / 9));
  aspect-ratio: 16 / 9;
}

.tuto-dialog iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  background: #f7fbfd;
}

.tuto-close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.tuto-close svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.tuto-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

@media (max-height: 520px) {
  .tuto-dialog-box {
    width: min(100%, calc((100dvh - 2rem) * 16 / 9));
  }

  .tuto-close {
    top: 0.5rem;
    right: 0.5rem;
    bottom: auto;
    z-index: 1;
    background: rgba(7, 29, 43, 0.7);
  }
}
