/* ============================================================
   TOKENS
============================================================ */
:root {
  /* Couleurs */
  --primary:         #007662;
  --primary-light:   #E8F2EF;
  --primary-dark:    #005549;
  --secondary:       #FFA8A9;
  --secondary-light: #FFF0F0;
  --secondary-dark:  #C96B6C;

  --text-body:       #333333;
  --text-muted:      #6B7280;
  --text-subtle:     #A8B0B9;

  --bg:              #F2F4F7;
  --surface:         #FFFFFF;
  --border:          #E4E7EB;

  /* Typographie */
  --font-display:    'DM Sans', sans-serif;
  --font-body:       'Manrope', sans-serif;

  /* Tailles â€” base 16px */
  --size-h1:         6rem;    /* 96px */
  --size-h2:         4rem;    /* 64px */
  --size-h3:         2rem;    /* 32px */
  --size-tagline:    2.5rem;  /* 40px */
  --size-body:       1.5rem;  /* 24px */

  /* Grille */
  --margin-h:        5rem;    /* 80px */
  --gutter:          1.5rem;  /* 24px */

  /* Espacements */
  --section-py:      9rem;    /* 144px */
  --card-px:         3rem;    /* 48px */
  --card-py:         3rem;

  /* Misc */
  --radius-card:     1rem;
  --radius-badge:    999px;
  --transition:      0.2s ease;
}


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

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

body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--text-body);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul { list-style: none; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ============================================================
   SKIP LINK
============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }


/* ============================================================
   CONTAINER
============================================================ */
.container {
  width: 100%;
  max-width: calc(100% - var(--margin-h) * 2);
  margin-inline: auto;
}


/* ============================================================
   HEADER / NAV
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 244, 247, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-body);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}
.nav__logo:hover { color: var(--primary); }

.nav__links {
  display: flex;
  gap: 2.5rem;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--text-body); }

/* Burger â€” cachÃ© desktop, visible mobile */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-body);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   SECTIONS
============================================================ */
.section {
  padding-block: var(--section-py);
  background: linear-gradient(180deg, #F2F4F7 0%, #EDF1F7 100%);
}

/* Variantes â€” dÃ©gradÃ©s distincts par section */
.section--teal { background: linear-gradient(180deg, #F2F4F7 0%, #EDF1F7 100%); }
.section--blue  { background: linear-gradient(180deg, #F2F4F7 0%, #EDF1F7 100%); }
.section--rose  { background: linear-gradient(180deg, #F2F4F7 0%, #EDF1F7 100%); }
.section--warm  { background: linear-gradient(180deg, #F2F4F7 0%, #EDF1F7 100%); }

.section__header {
  margin-bottom: 3rem;
}

.section__eyebrow {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-h2);
  color: var(--primary);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section__intro {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  color: var(--text-body);
  font-family: var(--font-body);
}

.section__outro {
  margin-top: 2.5rem;
  font-size: 1.125rem;
  color: var(--text-body);
  font-family: var(--font-body);
  font-style: italic;
  max-width: 56rem;
}


/* ============================================================
   TYPOGRAPHIE UTILITAIRES
============================================================ */
.body-text {
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--text-body);
  line-height: 1.7;
}

.text-muted  { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }

.accent {
  color: var(--primary);
  font-style: normal;
}

/* Divider rose â€” utilisÃ© dans hero et contact */
.hero__divider {
  width: 3.5rem;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
  margin-block: 0.25rem;
}

/* ============================================================
   LINE-HEIGHT COHÉRENT POUR TEXTE PRINCIPAL
============================================================ */
p,
li,
ul,
.body-text,
.writing-list li,
.project__desc li,
.card__body,
.timeline__role {
  line-height: 1.7;
}


/* ============================================================
   HERO
============================================================ */
.hero {
  padding-block: var(--section-py);
  background: linear-gradient(135deg, #F2F4F7 0%, #EDF1F7 100%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 52rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-h1);
  color: var(--text-body);
  line-height: 1.0;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
}

.hero__title-line { display: block; }

.hero__identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero__avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--text-subtle);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--text-body);
  line-height: 1.3;
}

.hero__role {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.hero__tagline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--size-tagline);
  color: var(--text-body);
  line-height: 1.35;
  letter-spacing: -0.01em;
}


/* ============================================================
   BOUTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* Bouton blanc â€” utilisÃ© sur fond vert (footer/contact) */
.btn--light {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  font-weight: 600;
}
.btn--light:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-1px);
}


/* ============================================================
   CARDS â€” grille 3 colonnes
============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--card-py) var(--card-px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


/* Badge numÃ©ro (section Leadership) */
.card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-badge);
  background: var(--secondary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
  flex-shrink: 0;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-h3);
  color: var(--text-body);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.card__body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--text-body);
  line-height: 1.7;
  flex: 1;
}

/* Tags (section Portfolio cards) */
.card__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-badge);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  align-self: flex-start;
}

.tag--green {
  background: var(--primary-light);
  color: var(--primary);
}
.tag--rose {
  background: var(--secondary-light);
  color: var(--secondary-dark);
}


/* ============================================================
   SELECTED IMPACT
============================================================ */
.impact-group {
  margin-bottom: 3.5rem;
}
.impact-group:last-child { margin-bottom: 0; }

.impact-group__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-body);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.card--impact { gap: 0.5rem; }

.card__company {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  color: var(--secondary-dark);
}

.card__metric {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.5rem;
  color: var(--primary-dark);
  line-height: 1.0;
  letter-spacing: -0.03em;
}


/* ============================================================
   2 COLONNES
============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--gutter) * 3);
  align-items: center;
}

/* Inversion gauche/droite */
.two-col--reverse      { direction: rtl; }
.two-col--reverse > *  { direction: ltr; }

.two-col__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.two-col__visual {
  background: var(--primary-light);
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-family: var(--font-body);
  font-size: 0.875rem;
  border: 1px dashed var(--border);
  overflow: hidden;
}

.two-col__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ============================================================
   PORTFOLIO
============================================================ */
.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--gutter) * 3);
  align-items: center;
}

/* Inversion gauche/droite sur les projets pairs */
.project:nth-child(even)      { direction: rtl; }
.project:nth-child(even) > *  { direction: ltr; }

.project__content {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.project__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-h3);
  color: var(--text-body);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: -0.5rem; /* resserre l'espace vers company */
}

.project__company {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  color: var(--secondary-dark);
}

.project__role {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-body);
}

.project__desc {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.25rem 0 0.75rem 0;
  padding: 0;
}

.project__desc li {
  position: relative;
  padding-left: 1.25rem;
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Bullet fin rose */
.project__desc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--secondary);
}

.project__metrics {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.project__metric {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--text-body);
  line-height: 1.5;
}

.project__metric strong {
  font-weight: 700;
  color: var(--primary-dark);
}

/* Lien "View project â†’" */
.project__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  width: fit-content;
}

.project__link-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.project__link:hover .project__link-arrow,
.project__link:focus-visible .project__link-arrow {
  transform: translateX(5px);
}

.project__link:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
  border-radius: 3px;
}

/* Colonne image */
.project__visual {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.35s ease;
}

.project:hover .project__visual {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.project__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.35s ease;
}

.project:hover .project__visual img {
  transform: scale(1.025);
}

.project__visual--placeholder {
  background: var(--primary-light);
  color: var(--text-subtle);
  font-family: var(--font-body);
  font-size: 0.875rem;
}


/* ============================================================
   ABOUT
============================================================ */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.about-block__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-body);
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}

.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.timeline__item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding-block: 0.25rem;
  align-items: baseline;
}

.timeline__date {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: #4A9E8E;
  white-space: nowrap;
}

.timeline__role {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--text-body);
  line-height: 1.5;
}

.timeline__role strong { font-weight: 600; }

.writing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.writing-list li {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--text-body);
  line-height: 1.5;
  padding-block: 0.25rem;
}
.writing-list li.text-muted  { color: var(--text-muted); }

.writing-list a {
  color: var(--text-body);
  text-decoration: none;
  transition: color var(--transition);
}

.writing-list a:hover,
.writing-list a:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}


/* ============================================================
   FOOTER / CONTACT
============================================================ */
.site-footer {
  background: var(--primary);
  padding-block: var(--section-py);
}

.contact-inner {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-h2);
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.contact__divider {
  width: 3.5rem;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.contact__text {
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.contact__copy {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}


/* ============================================================
   UTILITAIRES
============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   RESPONSIVE â€” Tablette â‰¤ 1024px
============================================================ */
@media (max-width: 64rem) {
  :root {
    --size-h1:      3.75rem;
    --size-h2:      2.75rem;
    --size-h3:      1.75rem;
    --size-tagline: 1.875rem;
    --size-body:    1.25rem;
    --margin-h:     3rem;
    --section-py:   6rem;
    --card-px:      2rem;
    --card-py:      2rem;
  }

  .portfolio-list { gap: 4rem; }
}


/* ============================================================
   RESPONSIVE â€” Mobile â‰¤ 768px
============================================================ */
@media (max-width: 48rem) {
  :root {
    --size-h1:      2.5rem;
    --size-h2:      2rem;
    --size-h3:      1.375rem;
    --size-tagline: 1.375rem;
    --size-body:    1.0625rem;
    --margin-h:     1.25rem;
    --section-py:   4rem;
    --card-px:      1.5rem;
    --card-py:      1.5rem;
  }

  /* Nav */
  .nav__links {
    display: none;
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    background: rgba(242, 244, 247, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding-block: 1rem;
  }
  .nav__links.is-open  { display: flex; }
  .nav__links a        { padding: 0.875rem 1.25rem; font-size: 1.125rem; }
  .nav__burger         { display: flex; }

  /* Grilles */
  .cards-grid          { grid-template-columns: 1fr; }
  .two-col             { grid-template-columns: 1fr; }
  .two-col--reverse    { direction: ltr; }

  /* Portfolio */
  .project             { grid-template-columns: 1fr; gap: 2rem; }
  .project:nth-child(even) { direction: ltr; }
  .project__visual     { order: -1; aspect-ratio: 16 / 9; }

  /* Buttons */
  .btn                 { width: 100%; justify-content: center; }
  .btn--light          { width: 100%; justify-content: center; }

  /* Timeline */
  .timeline__item      { grid-template-columns: 1fr; gap: 0.25rem; }
}