/* Corner Timer — la page du site (cornercoaching.fr/timer et /en/timer), univers du 09/11 : nuit et soleil,
   une couleur par phase (soleil = effort, vert = récupération), Inter Tight. Contenu : expert Burst, 13/11. */
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/InterTight-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --nuit: #111318;
  --nuit-claire: #1c1f26;
  --trait: #2a2e37;
  --papier: #f6f5f0;
  --papier-doux: #b9b8b2;
  --soleil: #f5c33b;
  --recup: #3e9c6b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--papier);
  font-family: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.5;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.cadre { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* La barre du haut : l'icône, le nom, la langue. */
.haut { display: flex; align-items: center; gap: 12px; padding: 20px 0; }
.haut img { width: 36px; height: 36px; border-radius: 9px; }
.haut .marque { display: flex; flex-direction: column; line-height: 1.15; }
.haut .nom { font-weight: 900; font-size: 20px; letter-spacing: -0.3px; }
/* La famille : Corner Timer est un produit Corner Coaching (17-11), un lien vers le logiciel des coachs. */
.haut .famille { font-size: 13px; font-weight: 700; color: var(--soleil); text-decoration: none; }
.haut .famille:hover { text-decoration: underline; }
.haut .langue { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--papier-doux); text-decoration: none; padding: 8px 4px; }
.haut .langue:hover { color: var(--papier); }

/* L'ouverture : le titre, la ligne, les boutiques, la séance en cours. */
.ouverture { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 24px 0 72px; align-items: center; }
h1 { font-size: clamp(38px, 7vw, 64px); line-height: 1.02; font-weight: 900; letter-spacing: -1.5px; margin: 0 0 20px; }
h1 em { font-style: normal; color: var(--soleil); }
.sous { font-size: 20px; color: var(--papier-doux); margin: 0 0 28px; max-width: 30ch; }

.boutiques { display: flex; flex-wrap: wrap; gap: 12px; }
.boutique {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px;
  border-radius: 12px; text-decoration: none; font-weight: 800; font-size: 16px;
  background: var(--papier); color: var(--nuit); box-shadow: 0 4px 0 #c9c7bf;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.boutique:active { transform: translateY(3px); box-shadow: 0 1px 0 #c9c7bf; }
.boutique.soleil { background: var(--soleil); box-shadow: 0 4px 0 #b88f1f; }
.boutique.soleil:active { box-shadow: 0 1px 0 #b88f1f; }
.boutique svg { width: 22px; height: 22px; flex: none; }
.boutique small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.3px; opacity: 0.7; line-height: 1.1; }
.boutique span { line-height: 1.15; }

.telephone {
  width: min(300px, 78vw); margin: 0 auto; border-radius: 34px; overflow: hidden;
  border: 8px solid #000; background: #000; box-shadow: 0 30px 80px rgba(245, 195, 59, 0.12), 0 0 0 1px var(--trait);
}
.telephone img { width: 100%; height: auto; }

/* La bande des phases : effort et récupération, comme dans l'appli. */
.phases { display: flex; gap: 6px; align-items: flex-end; height: 28px; margin: 0 0 64px; }
.phases i { display: block; border-radius: 3px; }
.phases .e { background: var(--soleil); height: 28px; flex: 3; }
.phases .r { background: var(--recup); height: 12px; flex: 1.2; }

/* Les quatre blocs : une capture chacun. */
.bloc { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; padding: 0 0 72px; }
.bloc .num { font-weight: 900; color: var(--soleil); font-size: 15px; letter-spacing: 1px; margin-bottom: 10px; }
.bloc h2 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.05; font-weight: 900; letter-spacing: -0.8px; margin: 0 0 14px; }
.bloc p { margin: 0; color: var(--papier-doux); max-width: 34ch; }
.bloc .ecran { width: min(280px, 72vw); margin: 0 auto; border-radius: 26px; overflow: hidden; border: 6px solid #000; box-shadow: 0 0 0 1px var(--trait); background: var(--nuit); }
.bloc .ecran img { width: 100%; height: auto; }
/* Le mode équipe : le bas de la fiche d'un test, là où il s'allume. */
.bloc .ecran.equipe { aspect-ratio: 585 / 520; }
.bloc .ecran.equipe img { height: 100%; object-fit: cover; object-position: 50% 82%; }

/* Avec Corner : l'encart clair, le seul de la page. */

/* La fin : télécharger, puis le pied. */
.fin { text-align: left; padding: 0 0 64px; }
.fin h2 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 900; letter-spacing: -0.8px; margin: 0 0 20px; line-height: 1.05; }
.pied { border-top: 1px solid var(--trait); padding: 24px 0 40px; font-size: 14px; color: var(--papier-doux); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pied a { text-decoration: none; }
.pied .lien-famille { color: var(--soleil); font-weight: 700; }
.pied a:hover { color: var(--papier); text-decoration: underline; }

a:focus-visible { outline: 3px solid var(--soleil); outline-offset: 3px; }

@media (min-width: 820px) {
  .cadre { padding: 0 32px; }
  .ouverture { grid-template-columns: 1.2fr 1fr; padding: 40px 0 96px; }
  .bloc { grid-template-columns: 1fr 1fr; gap: 64px; padding: 0 0 104px; }
  .bloc.inverse .texte { order: 2; }
    }

@media (prefers-reduced-motion: reduce) {
  .boutique { transition: none; }
}
/* Les rangs : une capture recadrée en largeur, montrée plus grande. */
.bloc .ecran.large { width: min(460px, 100%); border-radius: 20px; }

/* Les pages de confidentialité (/timer/confidentialite/, /en/timer/privacy/) : un texte long, lisible. */
.texte-legal { max-width: 760px; padding: 16px 0 56px; }
.texte-legal .shell { padding: 0; }
.texte-legal .eyebrow { font-size: 14px; font-weight: 700; color: var(--soleil); margin: 0 0 8px; }
.texte-legal h1 { font-size: clamp(34px, 6vw, 52px); margin: 0 0 16px; }
.texte-legal .lede { font-size: 19px; color: var(--papier-doux); margin: 0 0 28px; }
.texte-legal .card { background: var(--nuit-claire); border-radius: 18px 4px 4px 4px; padding: 20px 22px; margin: 0 0 28px; }
.texte-legal h2 { font-size: 24px; line-height: 1.15; font-weight: 900; letter-spacing: -0.3px; margin: 36px 0 12px; }
.texte-legal h3 { font-size: 18px; font-weight: 800; margin: 24px 0 8px; }
.texte-legal p, .texte-legal li { color: #dcdbd5; font-size: 17px; line-height: 1.6; }
.texte-legal ul { padding-left: 22px; }
.texte-legal li { margin: 6px 0; }
.texte-legal strong { color: var(--papier); }
.texte-legal a { color: var(--soleil); }
.texte-legal .fine { font-size: 14px; color: var(--papier-doux); }
.texte-legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 20px; display: block; overflow-x: auto; }
.texte-legal th, .texte-legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--trait); vertical-align: top; }
