:root {
  --ink: #000;
  --pink: #f50c8c;
  --font-title: Lato, Calibri, Carlito, Tahoma, sans-serif;
  --font-text: Lato, Calibri, Carlito, Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #e7e7e7;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background-color: #fff;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.15;
}

p {
  margin: 0;
}

u {
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* boutons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 1.45rem;
  font-family: var(--font-title);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: scale(1.05) rotate(-1deg);
}

.btn-large {
  font-size: clamp(1.25rem, 1.9vw, 1.625rem);
}

.btn-primary {
  color: #fff;
  background-color: var(--pink);
  /* ombre légère, teintée de bleu pétrole plutôt que de noir */
  box-shadow: 0 4px 12px rgba(23, 58, 64, 0.28);
}

/* accueil */
.header {
  position: relative;
  container-type: inline-size;
  height: 86vh;
  min-height: 460px;
  padding: 2rem 2.5rem;
  background: #f1e6a8 url(./header-jungle-v2.jpg) center / cover no-repeat;
}

/* le titre se pose dans la clairière, à gauche de l'oiseau */
.what-i-do {
  position: absolute;
  left: 16.5%;
  top: 35%;
  width: 32%;
}

.what-i-do h1 {
  color: #173a40;
  /* taille proportionnelle à la largeur de l'accueil (cqw), pas de l'écran :
     le titre garde sa place dans la clairière même sur très grand écran */
  font-size: clamp(2.4rem, 3.95cqw, 3.9rem);
  text-transform: uppercase;
  /* Lato est déjà à sa graisse maximale (900) : un fin contour l'épaissit encore un peu */
  -webkit-text-stroke: 0.025em currentColor;
}

/* surligné façon feutre, dans l'orange des ailes, sur le bas de chaque ligne */
.highlight {
  padding: 0 0.12em;
  background: linear-gradient(
    transparent 52%,
    rgba(233, 164, 67, 0.55) 52%,
    rgba(233, 164, 67, 0.55) 90%,
    transparent 90%
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.header-cta {
  position: absolute;
  right: 2.5rem;
  bottom: 2rem;
}

/* sections */
.section {
  position: relative;
  margin: 0;
  min-height: 86vh;
  /* garde les marges à l'intérieur de la section : le filet touche pile la section d'avant */
  display: flow-root;
  padding: 0;
  background-repeat: no-repeat;
}

.article-title {
  position: relative;
  z-index: 1;
  /* pas d'espace au-dessus ni sur les côtés : le filet touche la section d'avant
     et va d'un bord à l'autre du site, le texte garde sa marge intérieure */
  margin: 0 0 1.875rem;
  padding: 0 1.25rem;
  border-top: 0.625rem solid var(--ink);
}

.subtitle {
  padding-top: 0.25rem;
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 900;
  text-transform: uppercase;
}

.main-text {
  padding-top: 1.875rem;
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 3.6vw, 3.125rem);
  font-weight: 700;
  line-height: 1.2;
}

.main-text-caps {
  font-weight: 900;
  text-transform: uppercase;
}

/* l'ampoule, en bas à droite, à côté du texte */
#section-0 {
  min-height: max(86vh, min(58vw, 812px));
  background-image: url(./section-une-idee-v2.webp);
  background-position: right bottom;
  background-size: 90% auto;
}

#section-0 .main-text {
  max-width: 58%;
}

/* bandeau aux couleurs du ciel de la jungle, de l'identité jusqu'aux cartes */
.band-warm {
  background: linear-gradient(180deg, #ecca9c 0%, #f0e3a8 100%);
}

/* le podium, centré sous le texte : le bas de section lui réserve sa place */
#section-1 {
  min-height: 90vh;
  padding-bottom: 33%;
  background-image: url(./podium-v2.webp);
  background-position: center bottom;
  background-size: 76% auto;
}

/* le plan d'action et ses plumes */
#section-2 {
  min-height: 0;
  padding-bottom: 12%;
  background-image: url(./plumes-v2.webp);
  background-position: center bottom;
  background-size: 80% auto;
}

.middle-text {
  /* de l'air entre le podium et le titre */
  padding-top: clamp(2rem, 4vw, 3.5rem);
  font-size: clamp(1.75rem, 3.6vw, 3.125rem);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.article-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.875rem;
  align-items: center;
  padding: 1.25rem;
  margin-top: 3.75rem;
}

.article-card {
  justify-self: center;
  width: 62%;
  padding: 1.25rem;
  border: 3px solid var(--ink);
  border-radius: 1.125rem;
  background-color: rgba(255, 255, 255, 0.97);
}

.article-card h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 2.1vw, 1.875rem);
  text-align: center;
}

.article-card:nth-child(1) {
  rotate: -1.5deg;
  margin-left: 1.75rem;
}

.article-card:nth-child(2) {
  rotate: 3deg;
  margin-left: -2.875rem;
}

.article-card:nth-child(3) {
  rotate: 1deg;
  margin-left: 3.375rem;
  margin-top: 1.875rem;
}

.article-card:nth-child(4) {
  rotate: -3deg;
  margin-left: -2.125rem;
}

/* comment je travaille : une étape par ligne, numéro, titre, phrase simple */
.section-steps {
  min-height: 0;
}

/* la dernière étape s'arrête sur le filet de la section suivante, sans double trait */
.step:last-child {
  border-bottom: none;
}

.steps {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: baseline;
  padding: 1.75rem 0;
  border-bottom: 2px solid var(--ink);
}

.step-number {
  font-family: var(--font-title);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  color: #173a40;
}

.step-title {
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 900;
  text-transform: uppercase;
}

.step-text {
  font-size: clamp(1.125rem, 1.4vw, 1.35rem);
}

/* appel final : section compacte, sans grand vide en bas */
#section-3 {
  min-height: 0;
}

.ready-title {
  padding-top: 0.75rem;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 900;
  text-transform: uppercase;
}

/* appel : citation manuscrite, bouton, et ta photo en pastille à côté */
.ready-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* de la place entre la citation et le bouton, pour que la flèche ne touche pas le texte */
  gap: 1.5rem;
}

.ready-quote {
  color: #173a40;
  font-family: Caveat, "Segoe Print", cursive;
  font-size: clamp(1.75rem, 2.9vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  rotate: -3deg;
}

.ready-button {
  position: relative;
}

/* la flèche descend de la citation et finit sur le côté droit du bouton */
.ready-arrow {
  position: absolute;
  left: calc(100% + 0.25rem);
  bottom: 10%;
  width: 4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* la photo est recadrée sur le rond, sans le cadre ni l'icône de la capture */
.photo-badge {
  width: clamp(180px, 19.2vw, 276px);
  aspect-ratio: 1;
  border: 2px solid #173a40;
  border-radius: 50%;
  background: url(./photo-meh.png) 65.2% 58.1% / 116.7% auto no-repeat;
}

.ready-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 1.25rem 4rem;
}

.footer {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}

/* image de la jungle réservée aux téléphones */
.header-illustration {
  display: none;
}

/* téléphones et tablettes : version provisoire, en attendant la jungle en calques */
@media (max-width: 800px) {
  .header {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    padding: 0;
    background: none;
  }

  .what-i-do {
    position: static;
    width: auto;
    padding: 2rem 1.25rem 1.5rem;
  }

  .what-i-do h1 {
    font-size: clamp(1.9rem, 8vw, 3rem);
  }

  .header-illustration {
    display: block;
    aspect-ratio: 1920 / 1080;
    background: url(./header-jungle-v2.jpg) center / cover no-repeat;
  }

  .header-cta {
    position: static;
    padding: 1.5rem 1.25rem;
    text-align: center;
  }

  .section {
    min-height: 0;
  }

  #section-0 {
    min-height: 0;
    padding-bottom: 92vw;
    background-size: 150% auto;
  }

  #section-0 .main-text {
    max-width: none;
  }

  #section-1 {
    min-height: 0;
    padding-bottom: 92vw;
    background-size: 215% auto;
  }

  #section-2 {
    padding-bottom: 62vw;
    background-size: 100% auto;
  }

  .article-cards {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 2.5rem;
  }

  .article-card,
  .article-card:nth-child(n) {
    width: 100%;
    margin: 0;
  }

  .article-card:nth-child(2) { rotate: 2deg; }
  .article-card:nth-child(4) { rotate: -2deg; }

  .step {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: 0.5rem 1rem;
    padding: 1.25rem 0;
  }

  .step-text {
    grid-column: 2;
  }

  .ready-cta {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.25rem 3rem;
  }

  .ready-arrow {
    width: 3rem;
  }

  .photo-badge {
    order: -1;
    width: 115px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
