/* =============================================================
   Vertical AI · feuille de style commune
   Paradigme Shift IA Inc.
   ============================================================= */

:root {
  --ivoire: #F7F5F1;
  --blanc: #FFFFFF;
  --navy: #0F2D52;
  --bleu: #1E5C9B;
  --texte: #1E293B;
  --gris: #64748B;
  --filet: #E4E0D8;
  --filet-fort: #CBC6BB;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --serif-accent: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Century Gothic", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1180px;
  --lecture: 680px;
  --courbe: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--texte);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.lecture { max-width: var(--lecture); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Styles de texte ---------- */
.h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--navy);
  margin: 0;
  max-width: 19ch;
  text-wrap: balance;
}
.h1 em {
  font-family: var(--serif-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.h2-section {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin: 0;
}

.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin: 0 0 18px;
  max-width: 24ch;
}

.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0;
}

.corps-petit {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--texte);
  margin: 0;
}

.etiquette {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gris);
  margin: 0;
}
.etiquette a { color: var(--bleu); border-bottom: 1px solid var(--filet-fort); }
.etiquette a:hover { border-bottom-color: var(--bleu); }

.numero {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--bleu);
}

/* ---------- En-tête ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 241, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--filet);
}
.barre {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  height: 92px;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.logo {
  display: inline-block;
  font-family: var(--serif-accent);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--navy);
  white-space: nowrap;
  transition: color 0.3s var(--courbe);
}
.logo:hover { color: var(--bleu); }

nav.liens { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 26px); }
nav.actions { display: flex; align-items: center; justify-content: flex-end; }
nav a.lien {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gris);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--courbe), border-color 0.3s var(--courbe);
}
nav a.lien:hover,
nav a.lien[aria-current="page"] { color: var(--navy); border-bottom-color: var(--bleu); }
@media (max-width: 760px) { nav.liens { display: none; } }

/* ---------- Bouton ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
  color: var(--blanc);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 32px;
  white-space: nowrap;
  transition: background-color 0.35s var(--courbe), border-color 0.35s var(--courbe), transform 0.35s var(--courbe);
}
.bouton:hover { background: var(--bleu); border-color: var(--bleu); transform: translateY(-1px); }
.bouton.petit { padding: 12px 20px; font-size: 11px; }

/* ---------- Sections ---------- */
section { padding-block: clamp(64px, 8.5vw, 110px); }
section + section { border-top: 1px solid var(--filet); }

.tete-section { margin-bottom: 44px; text-align: center; }
.tete-section .etiquette { margin-bottom: 14px; }

@keyframes monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Accueil : hero ---------- */
.hero { position: relative; padding-block: clamp(64px, 10vw, 132px) clamp(60px, 9vw, 112px); }
.hero-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 940px) {
  .hero-grille { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
.hero .h1 { animation: monte 0.9s var(--courbe) both; }

#champ {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  cursor: grab;
  touch-action: pan-y;
}
#champ.saisi { cursor: grabbing; }
.hero #champ {
  max-width: 520px;
  aspect-ratio: 1 / 1;
  animation: monte 1.1s var(--courbe) 0.15s both;
}

.fleche {
  display: block;
  margin: clamp(50px, 7vw, 90px) auto 0;
  width: 16px;
  height: 16px;
  color: var(--gris);
  opacity: 0.7;
  animation: flotte 2s ease-in-out infinite;
}
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Accueil : les quatre étapes ---------- */
.etapes { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .etapes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.etape {
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: 10px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--courbe), box-shadow 0.45s var(--courbe);
}
.etape:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(15, 45, 82, 0.07); }
.etape .numero { display: block; margin-bottom: 14px; }
.etape .h3 { margin-bottom: 8px; }

/* ---------- Appel à l'action ---------- */
.appel { text-align: center; }
.appel .etiquette { margin-top: 18px; }

/* ---------- Précédents : index ---------- */
.ouverture { padding-block: clamp(54px, 8vw, 100px) clamp(32px, 5vw, 56px); }
.ouverture .etiquette { margin-bottom: 22px; }
.ouverture .etiquette, .ouverture .h1, .ouverture .chapeau { animation: monte 0.9s var(--courbe) both; }
.ouverture .h1 { animation-delay: 0.07s; }
.ouverture .chapeau { animation-delay: 0.18s; }

.chapeau {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.42;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 34ch;
  margin: 26px 0 0;
}

.liste-precedents { border-top: 1px solid var(--filet); }
.fiche {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px 40px;
  padding-block: clamp(30px, 4vw, 44px);
  border-bottom: 1px solid var(--filet);
  transition: background-color 0.4s var(--courbe);
}
@media (min-width: 820px) {
  .fiche { grid-template-columns: 175px minmax(0, 1fr); align-items: start; }
}
a.fiche:hover { background: rgba(255, 255, 255, 0.65); }
.fiche .h3 { margin-bottom: 8px; }
.fiche .corps-petit { color: var(--gris); max-width: 58ch; }
.fiche .suite {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bleu);
  margin-top: 14px;
  display: inline-block;
}
.fiche.venir { opacity: 0.62; }
.fiche.venir .h3 { color: var(--gris); }

/* ---------- Précédents : article ---------- */
.schema { padding-block: clamp(20px, 3vw, 40px) clamp(40px, 6vw, 72px); }
.schema #champ { max-width: 900px; aspect-ratio: 16 / 10; }
.legende { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 18px; }
.legende span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gris);
  opacity: 0.4;
  transition: opacity 0.7s var(--courbe), color 0.7s var(--courbe);
}
.legende span.actif { opacity: 1; color: var(--navy); }

article.texte p { margin: 0 0 20px; max-width: 62ch; line-height: 1.7; }
article.texte p:last-child { margin-bottom: 0; }
article.texte em { font-family: var(--serif-accent); font-style: italic; font-size: 1.08em; }
article.texte strong { font-weight: 500; color: var(--navy); }
article.texte section { padding-block: clamp(34px, 5vw, 52px); }
article.texte section + section { border-top: 1px solid var(--filet); }

.repere {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bleu);
  margin: 0 0 14px;
}

.chiffre { border-left: 2px solid var(--bleu); padding: 4px 0 4px 22px; margin: 30px 0; max-width: 56ch; }
.chiffre .grand {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--navy);
  display: block;
  margin-bottom: 8px;
}
.chiffre p { margin: 0; font-size: 15px; color: var(--gris); }

.cloture { background: var(--navy); }
.cloture .h2 { color: var(--blanc); max-width: 26ch; }
.cloture p { color: rgba(255, 255, 255, 0.78); }
.cloture .bouton { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: var(--blanc); margin-top: 14px; }
.cloture .bouton:hover { background: var(--blanc); border-color: var(--blanc); color: var(--navy); }

.sources { padding-block: 36px 20px; }
.sources p { font-size: 13px; color: var(--gris); max-width: 68ch; margin: 0; line-height: 1.6; }
.sources em { font-family: var(--serif-accent); font-style: italic; }

.retour { padding-block: 0 44px; }
.retour a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gris);
  border-bottom: 1px solid var(--filet-fort);
  transition: color 0.3s var(--courbe), border-color 0.3s var(--courbe);
}
.retour a:hover { color: var(--navy); border-bottom-color: var(--bleu); }

/* ---------- Pied ---------- */
footer.site { border-top: 1px solid var(--filet); padding-block: 34px 46px; }
.pied { display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: center; justify-content: space-between; }
.pied .etiquette { color: var(--gris); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
