/* ============================================================
   Page d'accueil arnaudlegout.fr
   Charte reprise de ../consulting/style.css (couleurs, polices,
   boutons, cartes, pied de page), réduite aux composants utiles.
   ============================================================ */

/* ============================================================
   FONTS — self-hosted, see assets/fonts/
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/source-serif-4-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/source-serif-4-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/source-serif-4-700.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-500.woff2') format('woff2');
}

/* ============================================================
   VARIABLES
   ============================================================ */

:root {
  --color-bg:           #FAFAF9;
  --color-bg-alt:       #F4F4F1;
  --color-text:         #1A1A1A;
  --color-text-muted:   #525252;
  --color-accent:       #0B3D91;
  --color-accent-hover: #2563EB;
  --color-cta:          #C2410C;
  --color-cta-hover:    #9A330A;
  --color-border:       #E5E5E2;

  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Courier New', Courier, monospace;

  --max-text: 720px;
  --max-grid: 1100px;
  --px: 1.5rem;
  --section-gap: 4rem;
}

@media (min-width: 768px) {
  :root {
    --px: 2rem;
    --section-gap: 5rem;
  }
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
}

@media (min-width: 768px) {
  body { font-size: 1.0625rem; }
}

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

a { color: inherit; text-decoration: none; }

/* Liens dans le texte courant */
p a:not(.btn),
.prose li a,
.links-list a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(26, 26, 26, 0.3);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
p a:not(.btn):hover,
.prose li a:hover,
.links-list a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

ul, ol { list-style: none; }

/* ============================================================
   SKIP LINK
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  font-size: 0.875rem;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--color-text);
}

h1 { font-size: 2.25rem; line-height: 1.1;  font-weight: 700; }
h2 { font-size: 1.5rem;  line-height: 1.2;  font-weight: 600; }
h3 { font-size: 1.2rem;  line-height: 1.3;  font-weight: 600; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.4rem; }
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

/* ============================================================
   CONTAINERS & SECTIONS
   ============================================================ */

.container {
  max-width: var(--max-grid);
  margin: 0 auto;
  padding: 0 var(--px);
}

.container--text { max-width: var(--max-text); }

.section { padding: var(--section-gap) 0; }

.section--alt { background-color: var(--color-bg-alt); }

.section-header { margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p  { color: var(--color-text-muted); }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

/* ============================================================
   HEADER / NAV
   Deux liens seulement, pas de menu burger : la barre tient
   en 330px environ, sous la largeur d'un téléphone de 360px.
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.nav__logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav__logo:hover { color: var(--color-accent); }

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.nav__link {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-accent);
  background-color: var(--color-bg-alt);
  outline: none;
}

@media (max-width: 479px) {
  .nav__link { padding: 0.5rem 0.5rem; font-size: 0.875rem; }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease,
              transform 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background-color: var(--color-cta);
  color: #ffffff;
  border-color: var(--color-cta);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  transform: translateY(-1px);
  outline: none;
}

.btn--secondary {
  background-color: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn--secondary:hover,
.btn--secondary:focus-visible {
  background-color: var(--color-accent);
  color: #ffffff;
  outline: none;
}

/* ============================================================
   HERO — texte et portrait
   ============================================================ */

.hero { padding: 3.5rem 0 3rem; }

@media (min-width: 768px) {
  .hero { padding: 5rem 0 4rem; }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
  }
}

.hero__content { max-width: 640px; }

.hero h1 { margin-bottom: 0.75rem; }

.hero__tagline {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .hero__tagline { font-size: 1.4375rem; }
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Sur mobile, portrait réduit et placé avant le texte : en dessous,
   il repousserait les deux cartes d'entrée hors du premier écran */
.hero__photo {
  order: -1;
  width: 120px;
  height: 156px;
  border-radius: 6px;
  object-fit: cover;
}
@media (min-width: 768px) {
  .hero__photo { order: 0; width: 220px; height: 286px; }
}

/* ============================================================
   CARTES D'ENTRÉE — formation et conseil
   ============================================================ */

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2rem 1.75rem 1.75rem;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.card__domain {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-cta);
  margin-bottom: 0.75rem;
}

.card__title {
  font-size: 1.375rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .card__title { font-size: 1.5rem; }
}

.card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.125rem;
}
.card__stack li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-cta);
  background: rgba(194, 65, 12, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
}

.card__body {
  font-size: 0.9375rem;
  line-height: 1.65;
  flex: 1 0 auto;
  margin-bottom: 1.5rem;
}

.card__link {
  align-self: flex-start;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-accent);
  border-bottom: 1.5px solid var(--color-accent);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.card:hover .card__link,
.card:focus-visible .card__link {
  color: var(--color-accent-hover);
  border-bottom-color: var(--color-accent-hover);
}

/* ============================================================
   PROSE — sections de texte (recherche, enseignement…)
   ============================================================ */

/* Colonne de lecture alignée à gauche, comme le hero et les cartes */
.prose > * { max-width: var(--max-text); }

.prose h2 { margin-bottom: 1.25rem; }

.prose p { line-height: 1.75; }

.prose ul { margin-bottom: 1rem; }

.prose ul li {
  position: relative;
  padding-left: 1.625rem;
  margin-bottom: 0.625rem;
  line-height: 1.65;
}
.prose ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}

/* ============================================================
   PARCOURS — frise chronologique
   ============================================================ */

.timeline {
  border-left: 2px solid var(--color-border);
  margin-left: 0.25rem;
}

.timeline__item {
  position: relative;
  padding: 0 0 1.75rem 1.75rem;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 2px solid var(--color-cta);
}

.timeline__date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-cta);
  margin-bottom: 0.125rem;
}

.timeline__text {
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ============================================================
   LIENS — profils externes
   ============================================================ */

.links-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 600px) {
  .links-list { grid-template-columns: repeat(2, 1fr); }
}

.links-list li { font-size: 0.9375rem; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}

.footer__links a { transition: color 0.15s ease; }
.footer__links a:hover { color: var(--color-accent); }

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  text-align: center;
}

/* ============================================================
   LEGAL + 404
   ============================================================ */

.legal-content { padding: var(--section-gap) 0; }
.legal-content h1 { margin-bottom: 1rem; }
.legal-content h2 { margin: 2rem 0 0.75rem; }
.legal-content p  { font-size: 0.9375rem; }

.not-found {
  text-align: center;
  padding: calc(var(--section-gap) * 1.5) 0 var(--section-gap);
}
.not-found h1 { margin-bottom: 1rem; }
.not-found p  { color: var(--color-text-muted); margin-bottom: 2rem; }
