/* --- FONTS --- */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- DESIGN TOKENS --- */
:root {
  /* Palette — used as backgrounds, borders, accents */
  /* Text on these: always #000 (as specified in palette) */
  --color-yellow: #d5c111;
  --color-green:  #3eae15;
  --color-teal:   #0b959f;

  /* Light tints — for subtle section backgrounds */
  --color-yellow-light: #fdf9d0;
  --color-teal-light:   #d6f4f6;

  /* Neutral */
  --color-bg:   #fafaf7;
  --color-text: #1a1a2e;

  /* Typography */
  --font: 'Nunito', system-ui, sans-serif;
  --text-base: 1.1875rem;
  --leading: 1.65;

  /* Spacing */
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  /* Borders & shadows */
  --border: 2px solid var(--color-text);
  --radius: 4px;
  --shadow: 4px 4px 0 var(--color-text);
  --shadow-lg: 6px 6px 0 var(--color-text);

  /* Layout */
  --max-width: 860px;
  --gutter: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--color-text);
  background-color: var(--color-bg);
}

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


/* --- SKIP LINK --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  background: var(--color-yellow);
  color: #000;
  padding: 0.75rem 1.5rem;
  border: var(--border);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.1s;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* --- BASE TYPOGRAPHY --- */
h1, h2, h3 {
  line-height: 1.15;
  font-weight: 700;
}

p {
  max-width: 65ch;
}

a {
  color: var(--color-text);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--color-teal);
  text-decoration-thickness: 2px;
}

/* --- LAYOUT --- */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  padding-block: var(--space-lg);
  border-bottom: var(--border);
}

/* --- SECTION TITLE --- */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-md);
}

.section-title::after {
  content: '';
  display: block;
  height: 4px;
  width: 3rem;
  margin-top: 0.5rem;
}

.services .section-title::after { background: var(--color-teal); }
.approche  .section-title::after { background: var(--color-green); }
.contact  .section-title::after { background: var(--color-yellow); }

/* --- NAVIGATION --- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--color-bg);
  border-bottom: var(--border);
  z-index: 100;
}

.nav {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav__logo span {
  position: relative;
  top: 0;
}

.nav__menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--color-text);
  padding-bottom: 2px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s;
}

.nav__link:hover {
  border-bottom-color: var(--color-teal);
}

.nav__link[aria-current="true"] {
  border-bottom-color: var(--color-yellow);
}

.nav__toggle {
  display: none;
  background: none;
  border: var(--border);
  border-radius: var(--radius);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-text);
  line-height: 1;
  align-items: center;
  justify-content: center;
}

.nav__toggle:hover {
  background: var(--color-yellow-light);
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
  height: 18px;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.nav__toggle[aria-expanded="true"] .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .burger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__toggle[aria-expanded="true"] .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 600px) {
  .nav__toggle {
    display: flex;
    align-items: center;
  }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: var(--border);
    flex-direction: column;
    padding: 0.5rem var(--gutter) var(--space-md);
    gap: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 200ms ease-out, transform 200ms ease-out, visibility 200ms ease-out;
  }

  .nav__menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav__menu .nav__link {
    display: block;
    padding: 0.6rem 0;
    font-size: 1.1rem;
    color: var(--color-text);
    border-bottom: none;
    text-decoration: none;
  }

  .nav__menu .nav__link::before {
    content: none;
  }

  .nav__menu .nav__link:hover,
  .nav__menu .nav__link[aria-current="true"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }
}

/* --- BUTTON --- */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow 0.1s, transform 0.1s;
}

.btn:hover,
.btn:focus-visible {
  box-shadow: var(--shadow-lg);
  transform: translate(-1px, -1px);
}

.btn:active {
  box-shadow: 2px 2px 0 var(--color-text);
  transform: translate(1px, 1px);
}

.btn--primary {
  background-color: var(--color-yellow);
  color: #000;
}

/* --- HERO --- */
.hero {
  padding-block: var(--space-xl);
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero__content {
  flex: 1;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.hero__name {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--color-text);
  opacity: 0.65;
}

.hero__subtitle {
  display: block;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.15;
}

.hero__text {
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

.hero__photo {
  position: relative;
  width: 220px;
  flex-shrink: 0;
}

.hero__photo::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: -8px;
  bottom: -8px;
  background: var(--color-teal);
  border: var(--border);
  border-radius: var(--radius);
  z-index: 0;
}

.hero__photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%);
  border: var(--border);
  border-radius: var(--radius);
}


@media (max-width: 700px) {
  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__photo {
    width: 160px;
  }

  .hero__photo img {
    width: 160px;
    height: 160px;
  }
}

/* --- SERVICES --- */
.services {
  background: var(--color-teal-light);
}

.services__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* --- APPROCHE --- */
.approche__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.approche-card {
  padding: var(--space-md);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.approche-card--yellow {
  background: var(--color-yellow);
}

.approche-card--green {
  background: var(--color-green);
}

.approche-card__title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #000;
}

.approche-card p {
  color: #000;
}

/* --- CONTACT --- */
.contact {
  background: var(--color-yellow-light);
  border-bottom: none;
}

.contact__intro {
  margin-bottom: var(--space-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 540px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-weight: 500;
  font-size: 1rem;
}

.form-label__hint {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
  opacity: 0.7;
}

.form-input {
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  width: 100%;
  transition: box-shadow 0.15s;
}


.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-required-note {
  font-size: 1rem;
  opacity: 0.75;
}

/* --- FOOTER --- */
.site-footer {
  border-top: var(--border);
  padding-block: var(--space-md);
  font-size: 0.9rem;
}

/* --- PRINT --- */
@media print {
  .site-header,
  .btn,
  .contact-form { display: none; }
  a[href]::after { content: " (" attr(href) ")"; }
}
