/* ==========================================================
   Bubble by Véronique Largeau · feuille de style d'identité
   À charger après la balise <link> Google Fonts (voir README).
   ========================================================== */

:root {
  /* Couleurs */
  --encre: #2B3FA8;        /* bleu outremer : logo, titres, boutons, bandeau contact */
  --encre-fonce: #22328A;  /* survol des boutons */
  --lin: #F7F3EC;          /* beige coquille : fonds de section alternés, cartes */
  --lin-filet: #DDD4C4;    /* filets sur fond lin */
  --blanc: #FFFFFF;        /* fond principal */
  --texte: #16161A;        /* texte courant */
  --texte-doux: #4A4A55;   /* textes secondaires */
  --texte-sur-encre: #E3E6F2;
  --filet: #DDDDDD;

  /* Typographies */
  --police-titre: 'Lexend', system-ui, sans-serif;
  --police-texte: 'Geist', system-ui, sans-serif;

  /* Mise en page */
  --largeur: 1200px;
  --gouttiere: 24px;
  --section: 96px;
  --rayon-bouton: 8px;
  --rayon-carte: 12px;
}

@media (max-width: 760px) {
  :root { --section: 64px; }
}

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

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

h1, h2, h3 {
  font-family: var(--police-titre);
  font-weight: 600;
  color: var(--encre);
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.25; }

p { margin: 0; }

a { color: var(--encre); text-underline-offset: 6px; }
a:hover { color: var(--texte); }

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

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

/* ---------- Mise en page ---------- */
.conteneur {
  max-width: var(--largeur);
  margin: 0 auto;
  padding-left: var(--gouttiere);
  padding-right: var(--gouttiere);
}
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section--lin { background: var(--lin); }
.section--encre { background: var(--encre); color: var(--blanc); }
.section--encre h1, .section--encre h2, .section--encre h3 { color: var(--blanc); }
.section--encre p { color: var(--texte-sur-encre); }
.section--filet { border-top: 1px solid var(--filet); }

.rangee { display: flex; flex-wrap: wrap; gap: 32px; }
.rangee > * { flex: 1 1 280px; min-width: 0; }

.surtitre {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre);
}
.texte-doux { color: var(--texte-doux); }

/* ---------- Logo ---------- */
/* <a class="logo" href="/" aria-label="Bubble by Véronique Largeau">bub<span>ble.</span></a> */
.logo {
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--encre);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { margin-left: -0.08em; }
.logo--lin { color: var(--lin); }
.logo-signature {
  font-family: var(--police-texte);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 24px;
  border-radius: var(--rayon-bouton);
  background: var(--encre);
  color: var(--blanc);
  font-family: var(--police-texte);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.bouton:hover { background: var(--encre-fonce); color: var(--blanc); }
.bouton--lin { background: var(--lin); color: var(--encre); }
.bouton--lin:hover { background: var(--blanc); color: var(--encre); }

.lien-fleche { font-weight: 600; color: var(--encre); }

/* ---------- Cartes ---------- */
.carte {
  background: var(--blanc);
  border-radius: var(--rayon-carte);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section:not(.section--lin) .carte { background: var(--lin); }
.carte--encre { background: var(--encre) !important; color: var(--blanc); }
.carte--encre h3 { color: var(--blanc); }
.carte--encre p { color: var(--texte-sur-encre); }

/* Bloc à filet supérieur (situations, étapes) */
.bloc-filet { border-top: 2px solid var(--encre); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }

/* Chiffres clés */
.chiffre { font-family: var(--police-titre); font-weight: 700; font-size: 52px; line-height: 1; color: var(--encre); }

/* Citation */
.citation { font-family: var(--police-titre); font-weight: 500; font-size: 22px; line-height: 1.35; color: var(--encre); }

/* ---------- Formulaire ---------- */
label { display: block; font-weight: 500; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--texte);
  background: var(--blanc);
  border: 1px solid var(--lin-filet);
  border-radius: var(--rayon-bouton);
  padding: 12px 14px;
  min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--encre); outline-offset: 1px; border-color: var(--encre); }

/* ---------- Apparition des sections ---------- */
@media (prefers-reduced-motion: no-preference) {
  .apparait { opacity: 0; transform: translateY(12px); transition: opacity 0.3s ease, transform 0.3s ease; }
  .apparait.visible { opacity: 1; transform: none; }
}

/* Lien d'évitement (clavier, lecteurs d'écran) */
.evitement { position: absolute; left: 16px; top: -48px; z-index: 10; padding: 10px 16px; background: var(--encre); color: var(--blanc); border-radius: var(--rayon-bouton); text-decoration: none; }
.evitement:focus { top: 16px; }
