/* ==========================================================================
   Galileo Conseil — Design tokens
   ========================================================================== */
:root {
  --color-primary: #020046;
  --color-secondary: #0640a9;
  --color-accent: #01dab8;
  --color-accent-cyan: #00b0ea;
  --color-light-blue: #91b3fa;
  --color-dark-blue-alt: #003e68;
  --color-indigo: #161455;
  --color-text: #020046;
  --color-text-muted: #4a4a68;

  --bg-page: #f7f7f7;
  --bg-white: #ffffff;
  --border-color: #eaeaea;

  --font-heading: 'Google Sans Flex', 'Inter', sans-serif;
  --font-body: 'Google Sans Flex', 'Inter', sans-serif;
  --font-accent: 'Quicksand', sans-serif;

  --font-h1: clamp(2.25rem, 4.5vw + 1rem, 4.375rem);
  --font-h2: clamp(1.75rem, 3vw + 1rem, 3.125rem);
  --font-h3: clamp(1.375rem, 1.5vw + 1rem, 2.1875rem);
  --font-body-size: 1rem;
  --font-small: 0.875rem;

  --container-max: 1400px;
  --side-inset: 5vw;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --gradient-cta: linear-gradient(90deg, #8c92c1 0%, #4b80dd 50%, #8cf5fb 100%);
  --gradient-cta-border: linear-gradient(90deg, #c8cfec 0%, #6da7f1 50%, #c9f6fd 100%);

  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1200px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-body-size);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--bg-page);
  background-image: radial-gradient(circle, rgba(168, 168, 168, 0.3) 1.2px, transparent 1.3px);
  background-size: 34px 34px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary); margin: 0 0 0.6em; font-weight: 700; line-height: 1.2; }
h1 { font-size: var(--font-h1); }
h2 { font-size: var(--font-h2); }
h3 { font-size: var(--font-h3); }
p { margin: 0 0 1em; }
button, input, textarea, select { font-family: inherit; cursor: pointer; }
* { font-family: inherit; }
body { font-family: var(--font-body); }

.container {
  width: 90%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.section { padding-block: 80px; }
.section--centered { text-align: center; }
.section--centered .section-lead { max-width: 640px; margin-inline: auto; }

/* Spec commune à tous les eyebrows du site */
.eyebrow {
  font-family: var(--font-body);
  color: #0640a9;
  font-weight: 700;
  font-size: 15px;
  line-height: 35px;
  letter-spacing: 1.59px;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}
.eyebrow--accent { color: var(--color-accent-cyan); font-size: 60px; line-height: 75px; font-weight: 700; }

.section-lead { color: var(--color-text-muted); }
.section--centered__heading { font-size: 50px; line-height: 55px; color: #0640a9; }
.section--testimonials .section-lead { font-size: 15px; font-weight: 400; line-height: 26px; max-width: 455px; color: #020046; }
.section--testimonials__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.section--testimonials__head .section--centered__heading { margin-bottom: 0; }
.section--testimonials .section-carousel-head { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1.59px;
  text-align: center;
  border: none;
}
.btn--pill {
  text-transform: uppercase;
  padding: 16px 40px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background:
    var(--gradient-cta) padding-box,
    var(--gradient-cta-border) border-box;
  color: #fff;
  box-shadow: 0 10px 25px -6px rgba(0, 176, 234, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn--pill:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -6px rgba(0, 176, 234, 0.55); }

/* ==========================================================================
   Navigation : pas de barre — icône burger flottante et fixe, superposée
   à la page. Le logo vit dans le hero (voir plus bas), pas ici.
   ========================================================================== */
.site-nav-fixed {
  position: fixed;
  top: 57px;
  right: 104px;
  z-index: 200;
}

.site-logo img { height: 40px; width: auto; }

/* Bouton burger flottant : cercle en dégradé (identique au CTA) */
.site-nav__toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  /* Dégradé diagonal plus diffus que les CTA : lavande (haut-gauche)
     → bleu adouci → cyan très clair (bas-droite), contour clair. */
  background:
    radial-gradient(circle at 28% 30%, rgba(75, 128, 221, 0.3), transparent 50%) padding-box,
    linear-gradient(135deg, #9ca8da 0%, #7b96dc 18%, #84aae8 32%, #93c8f2 46%, #a3e0fa 62%, #b5effc 80%, #c9f6fd 100%) padding-box,
    linear-gradient(135deg, #c8cfec 0%, #b5c6ee 45%, #c9f6fd 75%, #e6fcfe 100%) border-box;
  position: relative;
  padding: 0;
  z-index: 210;
  box-shadow: 0 8px 24px -6px rgba(0, 176, 234, 0.5);
}
.site-nav__toggle span {
  display: block;
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-nav__toggle span:nth-child(1) { top: calc(50% - 1.25px - 7px); }
.site-nav__toggle span:nth-child(2) { top: calc(50% - 1.25px); }
.site-nav__toggle span:nth-child(3) { top: calc(50% - 1.25px + 7px); }
.site-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panneau plein écran (100vw x 100vh), glisse depuis le haut à l'ouverture,
   repart vers le haut à la fermeture. Reprend la maquette : titre éditorial
   + liens à plat + recherche + LinkedIn. */
.mobile-nav {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 205;
  background: var(--bg-page);
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}
.mobile-nav.is-open { transform: translateY(0); pointer-events: auto; }

/* Bloc de contenu à 90% de la largeur, centré : toujours un espace visible
   de chaque côté. */
.mobile-nav__inner {
  width: 90%;
  max-width: 1400px;
  margin-inline: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-block: 32px 40px;
}

.mobile-nav__topbar { display: flex; }
.mobile-nav__mark img { height: 34px; width: auto; }

.mobile-nav__main {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 75px;
  padding-block: 40px;
}
.mobile-nav__heading {
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-secondary);
  font-size: 70px;
  line-height: 65px;
  max-width: 800px;
  margin: 0;
}
.mobile-nav__links { display: flex; flex-direction: column; gap: 38px; padding-top: 6px; }
.mobile-nav__links a {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  transition: font-weight 0.15s ease;
}
.mobile-nav__links a:hover { font-weight: 800; }

/* Recherche pleine largeur, réseau social juste en dessous */
.mobile-nav__footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav__search {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 10px;
  width: 100%;
}
.mobile-nav__search-icon { color: var(--color-accent); flex-shrink: 0; }
.mobile-nav__search input {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 15px;
  width: 100%;
  color: var(--color-primary);
}
.mobile-nav__search input::placeholder { color: var(--color-accent); }
.mobile-nav__social {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-end;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-accent);
  white-space: nowrap;
}
.mobile-nav__social-icon {
  font-weight: 800;
  font-size: 1.15em;
}

/* ==========================================================================
   Hero — plein largeur : les images touchent le haut ET la droite de l'écran
   ========================================================================== */
.hero { padding-block: 0 60px; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  width: 100%;
}
.hero__content {
  padding-top: 166px;
  /* Reproduit exactement la position du bord gauche de .container (width:90%
     max-width:var(--container-max), centré) pour un alignement garanti avec
     le reste du contenu de la page, quelle que soit la largeur d'écran. */
  margin-inline-start: max(var(--side-inset), calc((100vw - var(--container-max)) / 2));
  max-width: 506px;
}
.hero__logo { display: inline-block; margin-bottom: 105px; }
.hero__logo img { width: 263px; height: auto; }
.hero h1 {
  font-family: 'Google Sans Flex', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 45px;
  line-height: 1.2;
}
.hero .eyebrow { font-size: 15px; line-height: 23px; }
.hero__content .hero__text { color: var(--color-secondary); font-size: 20px; max-width: 46ch; }
.hero__list { margin: 1.2em 0 45px; display: flex; flex-direction: column; gap: 10px; }
.hero__list li { display: flex; align-items: center; gap: 10px; font-weight: 400; color: #0640a9; font-size: 0.95rem; }
.hero__list-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-color: #91b3fa;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.hero__scroll-hint { display: block; width: 25px; height: auto; margin-top: 118px; }

.hero__images { margin-top: -214px; }
.hero__image-card img { display: block; width: 100%; height: auto; }

/* Retours à la ligne : .br-phone seulement sur téléphone, .br-desktop partout sauf sur téléphone */
.br-phone { display: none; }
@media (max-width: 767px) { .br-phone { display: inline; } .br-desktop { display: none; } }
/* .br-narrow : retour à la ligne en tablette et téléphone (pas en desktop) */
.br-narrow { display: none; }
@media (max-width: 1023px) { .br-narrow { display: inline; } }
/* .br-tablet : retour à la ligne en tablette uniquement (activé dans les blocs concernés) */
.br-tablet { display: none; }
/* .br-wide : retour à la ligne de la maquette, gardé uniquement en desktop */
@media (max-width: 1023px) { .br-wide { display: none; } }

/* Bande de cartes qui défile (téléphone uniquement, voir plus bas) */
.hero__marquee { display: none; }
@keyframes hero-marquee { to { transform: translateX(-50%); } }

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 1.2fr; gap: 60px; }
}

/* ==========================================================================
   Section carousel head
   ========================================================================== */
.section-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #020046;
  padding-bottom: 14px;
  margin-bottom: 32px;
}
.section-carousel-head__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 35px;
  letter-spacing: 1.59px;
  text-transform: uppercase;
  color: #020046;
  margin: 0;
}
.carousel-arrows { display: flex; gap: 10px; }
.carousel-arrow {
  width: auto; height: 60px;
  border: none;
  background: none;
  color: #00b0ea;
  font-size: 60px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   Card numbered (Nos expertises)
   ========================================================================== */
/* Carrousel à défilement horizontal : ~3,5 cartes visibles, la suivante
   déborde sur la droite (scroll natif, piloté aussi par les flèches). */
/* La marge gauche est portée par le conteneur du scroll lui-même (pas par
   :first-child) : ainsi la fenêtre visible du carrousel commence exactement
   à cette position, et les cartes disparaissent à cet endroit au lieu de
   glisser jusqu'au vrai bord gauche de l'écran (x=0) quand on scrolle. */
.card-numbered-grid {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  margin-inline-start: max(var(--side-inset), calc((100vw - var(--container-max)) / 2));
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.card-numbered-grid::-webkit-scrollbar { display: none; }
/* Largeur demandée : 99vw. La grille part de la marge gauche, elle dépasse
   donc l'écran à droite : la section coupe ce dépassement pour éviter un
   défilement horizontal de la page. */
.card-numbered-grid { width: 99vw; }
#nos-missions { overflow-x: clip; }
.card-numbered {
  position: relative;
  background: #eaeaea;
  border-radius: 15px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  /* flex-end (pas center) : les icônes ont des tailles différentes selon les
     cartes (90px / 150px), donc centrer le groupe entier décalait le titre
     verticalement d'une carte à l'autre. En alignant sur le bas, le titre
     reste toujours à la même hauteur, quelle que soit la taille de l'icône. */
  justify-content: center; /* icône + titre centrés dans la carte (le numéro reste en haut à gauche) */
  flex: 0 0 376px;
  width: 376px;
  height: 280px;
  scroll-snap-align: start;
}
/* Sorti du flux flex (position absolute) : pour la même raison que le
   titre, le numéro doit rester à une position fixe en haut de la carte,
   indépendamment de la taille de l'icône en dessous. */
.card-numbered__number {
  position: absolute;
  top: 10px;
  left: 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 35px;
  letter-spacing: 1.59px;
  color: var(--color-text-muted);
}
.card-numbered__icon img { max-width: 90px; max-height: 90px; width: auto; height: auto; }
.card-numbered__icon { font-size: 2.2rem; }
.card-numbered:nth-child(2) .card-numbered__icon img,
.card-numbered:nth-child(4) .card-numbered__icon img,
.card-numbered:nth-child(6) .card-numbered__icon img {
  max-width: 150px;
  max-height: 150px;
}
.card-numbered__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 25px;
  word-spacing: 1px;
  color: var(--color-primary);
}

.section-intro { max-width: 780px; margin-inline-start: 88px; }
.section-intro__text { border-left: 3px solid #91e4ff; padding-left: 20px; color: var(--color-text-muted); }

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.team-grid__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.team-member { text-align: left; min-width: 0; }
.team-member__avatar {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--color-light-blue);
}
/* Effet retiré temporairement — nouvelles photos à venir. */
.team-member__blob { display: none; }
.team-member__photo {
  position: relative;
  z-index: 1;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
/* Le prénom déborde légèrement en bas à gauche de la photo ; le nom
   (en gras) est en dessous, hors de la photo. */
.team-member__first {
  position: absolute;
  z-index: 3;
  left: -10px;
  bottom: 6px;
  margin: 0;
  pointer-events: none;
}
.team-member__first,
.team-member__last {
  display: block;
  font-family: var(--font-body);
  font-size: 25px;
  letter-spacing: 2.65px;
  line-height: 35px;
  color: #0640a9;
  text-transform: uppercase;
}
.team-member__first { font-weight: 300; }
.team-member__last { font-weight: 700; margin: 0; padding-left: 0; position: relative; left: -10px; white-space: nowrap; }
.team-grid__content p { color: var(--color-text-muted); max-width: 506px; }
.team-grid__content-mark {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  background-color: #01dab8;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.team-grid__content p.team-grid__content-eyebrow { text-transform: uppercase; }

@media (min-width: 1024px) {
  .team-grid { grid-template-columns: 1fr 1.2fr; gap: 80px; }
}

/* ==========================================================================
   Card photo (Votre activité)
   ========================================================================== */
/* Carrousel à défilement horizontal, identique dans son fonctionnement à
   .card-numbered-grid : ~3,5 cartes visibles, la suivante déborde à droite. */
.card-photo-grid {
  display: flex;
  gap: 16px;
  text-align: left;
  margin-inline-start: max(var(--side-inset), calc((100vw - var(--container-max)) / 2));
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.card-photo-grid::-webkit-scrollbar { display: none; }
.card-photo {
  border-radius: 15px;
  overflow: hidden;
  background: #eaeaea;
  flex: 0 0 376px;
  width: 376px;
  height: 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.card-photo__image { flex: 1; overflow: hidden; }
.card-photo__image img { width: 100%; height: 100%; object-fit: cover; }
.card-photo__divider { display: block; height: 3px; width: 100%; background: linear-gradient(to right, #0640a9, #01dab8); }
.card-photo__body { padding: 16px 18px; }
.card-photo__number {
  display: block;
  font-family: 'Google Sans Flex', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 35px;
  letter-spacing: 1.59px;
  color: var(--color-text-muted);
}
.card-photo__title {
  display: block;
  font-family: 'Google Sans Flex', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 25px;
  word-spacing: 1px;
  color: var(--color-primary);
}
.card-photo__title-sep { display: inline-block; color: #00b0ea; margin: 0 4px; font-size: 0.75em; vertical-align: middle; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
/* Carrousel à défilement horizontal : ~2,5 avis visibles, le suivant
   déborde sur la droite (même technique que .card-photo-grid). */
.testimonial-grid {
  display: flex;
  gap: 24px;
  margin-top: 8px;
  margin-inline-start: max(var(--side-inset), calc((100vw - var(--container-max)) / 2));
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.testimonial-grid::-webkit-scrollbar { display: none; }
.testimonial-card { border-radius: var(--radius-lg); padding: 28px 28px 28px 0; flex: 0 0 640px; width: 640px; scroll-snap-align: start; }
.testimonial-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.testimonial-card__name {
  display: inline-block;
  background: #91e4ff;
  border-radius: var(--radius-pill);
  padding: 2px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1.59px;
  line-height: 35px;
  text-transform: uppercase;
  color: #020046;
}
.testimonial-card__stars { display: inline-flex; }
.testimonial-card__stars img { display: block; width: 128px; height: 20px; }
.testimonial-card__text { color: var(--color-text-muted); font-size: 0.95rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { margin-top: 32px; max-width: 1090px; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-item__question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-secondary);
}
.faq-item__question-text { font-size: 35px; line-height: 40px; font-weight: 600; transition: font-size 0.35s ease, line-height 0.35s ease; }
.faq-item__toggle {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.faq-item__toggle svg { width: 100%; height: 100%; display: block; }
/* Ouverture fluide : la ligne de grille passe de 0fr à 1fr, soit exactement
   la hauteur du contenu (quelle que soit sa longueur), avec un fondu. */
.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.faq-item__inner { min-height: 0; overflow: hidden; }
.faq-item__answer p { color: var(--color-text-muted); padding-bottom: 20px; margin: 0; }
.faq-item.is-open .faq-item__answer { grid-template-rows: 1fr; opacity: 1; }
/* Le « + » devient « − » : la barre verticale se replie au lieu de disparaître d'un coup */
.faq-item__toggle-v { transform-box: fill-box; transform-origin: center; transition: transform 0.35s ease; }
.faq-item.is-open .faq-item__toggle-v { transform: scaleY(0); }
@media (prefers-reduced-motion: reduce) {
  .faq-item__answer, .faq-item__toggle-v, .faq-item__question-text { transition: none; }
}
.faq-item.is-open .faq-item__question-text { font-size: 44px; line-height: 47px; font-weight: 600; }
#faq-answer-0 p { font-size: 16px; line-height: 26px; font-weight: 400; }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final { padding-block: 60px; }
.cta-final__grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; justify-content: center; }
.cta-final__image img { max-width: 368px; width: 100%; margin-inline: auto; }
.cta-final__content { text-align: center; }
.cta-final__content h2 { font-size: 50px; line-height: 55px; color: #020046; }
.cta-final__content p { font-size: 15px; line-height: 26px; color: #020046; }

@media (min-width: 768px) {
  .cta-final__grid { grid-template-columns: auto auto; text-align: left; }
  .cta-final__content { text-align: left; }
  .cta-final__image img { margin-inline: 0; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  display: flex;
  align-items: stretch;
  margin-top: 40px;
  color: #dcdcf5;
}
.site-footer__stripe {
  flex: 0 0 62px;
  width: 62px;
  background: linear-gradient(to bottom, #020046, #0640a9, #01dab8);
}
.site-footer__surface {
  flex: 1 1 auto;
  min-width: 0;
  background: #020046;
  border-top-right-radius: 70px;
  padding-top: 56px;
}
/* Tous les liens du footer : pas de changement de couleur au survol,
   juste un soulignement qui se révèle de gauche à droite. */
.site-footer a {
  color: inherit;
  position: relative;
  text-decoration: none;
}
.site-footer a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}
.site-footer a:hover::after { width: 100%; }

.site-logo--white img { width: 248px; height: auto; margin-bottom: 24px; }

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.site-footer__col--contact { display: flex; flex-direction: column; gap: 30px; }
.site-footer__contact-block { display: flex; flex-direction: column; gap: 10px; }
.site-footer__icon { display: inline-flex; }
.site-footer__icon img { width: 22px; height: 22px; object-fit: contain; }
.site-footer__label {
  font-size: 17px;
  line-height: 21px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 4px;
}
.site-footer__contact-block p:not(.site-footer__label) { margin: 0; font-size: 17px; line-height: 21px; font-weight: 300; color: #fff; }
.site-footer__contact-block a { color: #fff; }
.site-footer__contact-row { display: flex; gap: 32px; }
/* LinkedIn est un élément de la grille (hors de la colonne contact) pour
   pouvoir être déplacé en tablette. -2px : 40px d'écart de grille - 2px
   = les 38px d'origine (30px d'écart de colonne + 8px de marge). */
.site-footer__linkedin { display: inline-flex; justify-self: start; align-self: start; align-items: center; gap: 8px; font-size: 17px; line-height: 23px; font-weight: 300; margin-top: -2px; }
.site-footer a.site-footer__linkedin { color: #fff; }
.site-footer__linkedin-icon img { width: 18px; height: 18px; }

/* Regroupe les 3 listes de liens ; neutre (display: contents) sauf en tablette */
.site-footer__links { display: contents; }

.site-footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col a { font-size: 17px; line-height: 23px; font-weight: 300; color: #fff; }

.site-footer__col--pages ul { gap: 10px; }
.site-footer__col--pages a {
  font-size: 15px;
  line-height: 50px;
  font-weight: 600;
  text-transform: uppercase;
  color: #f7f7f7;
}

.site-footer__col--secteurs a,
.site-footer__col--missions a {
  font-size: 15px;
  line-height: 50px;
  font-weight: 300;
  color: #eaeaea;
}
.site-footer__sep { display: inline-block; color: #6488c7; font-size: 0.75em; margin: 0 4px; }

.site-footer__badge-row { padding-block: 24px; }
.site-footer__badge { display: flex; align-items: center; gap: 16px; }
.site-footer__badge-img--cncc { width: 150px; height: auto; }
.site-footer__badge-img--ordre { width: 174px; height: auto; }

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 20px;
  border-bottom: 40px solid transparent;
  position: relative;
  font-family: 'Stack Sans Notch', 'Inter', sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 300;
  color: #fff;
}
.site-footer__bottom::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background-image: url('../img/footer-divider-gradient.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.site-footer__bottom p { margin: 0; font-size: 14px; line-height: 18px; font-weight: 300; color: rgba(255, 255, 255, 0.65); }
.site-footer__dev-credit { font-size: 14px; line-height: 18px; font-weight: 300; color: rgba(255, 255, 255, 0.85) !important; }
.site-footer__legal-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 8px; }
.site-footer__legal-sep { font-size: 14px; line-height: 18px; font-weight: 300; color: rgba(255, 255, 255, 0.65); }
.site-footer__legal { font-size: 14px; line-height: 18px; font-weight: 300; text-transform: uppercase; color: rgba(255, 255, 255, 0.65) !important; }

@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ==========================================================================
   Utility responsive tweaks
   ========================================================================== */
@media (max-width: 767px) {
  .section { padding-block: 32px; }
  h1 { line-height: 1.15; }
}

/* ==========================================================================
   Responsive — tablette (< 1024px) et mobile (< 768px)
   La maquette n'existe qu'en desktop (1450px) : ces règles adaptent la page
   sans changer le rendu desktop.
   ========================================================================== */
.site-footer__contact-block a[href^="tel:"] { white-space: nowrap; }

@media (max-width: 1023px) {
  /* Burger : collé en haut à droite, aligné sur la marge du contenu */
  .site-nav-fixed { top: 28px; right: var(--side-inset); }

  /* Hero tablette : même disposition que le desktop (texte à gauche,
     illustrations à droite, collées en haut et à droite), en plus compact. */
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero__content { padding-top: 120px; }
  .hero__logo { margin-bottom: 56px; }
  .hero__logo img { width: 200px; }
  .hero h1 { font-size: 32px; }
  .hero .eyebrow { font-size: 13px; line-height: 23px; letter-spacing: 1.2px; }
  .hero__content .hero__text { font-size: 17px; }
  .hero__list { margin-bottom: 32px; }
  .hero__scroll-hint { margin-top: 64px; }
  /* Illustrations à la même hauteur que le bloc texte : la colonne s'étire
     sur la hauteur de la ligne, l'image la remplit et déborde à droite
     (côté bord d'écran) plutôt que d'être déformée. */
  .hero__grid { align-items: stretch; }
  .hero__images { margin-top: -80px; }
  .hero__image-card { height: 100%; } /* hauteur du texte + les 80px de la marge négative */
  .hero__image-card img { height: 100%; width: 100%; object-fit: cover; object-position: left top; }

  .mobile-nav__heading { font-size: 52px; line-height: 52px; }

  /* Nos expertises : 2 cartes entières + la 3e qui déborde à droite */
  .card-numbered {
    flex-basis: min(376px, calc((100vw - var(--side-inset) - 32px) / 2.4));
    width: min(376px, calc((100vw - var(--side-inset) - 32px) / 2.4));
    height: 250px;
  }

  .section-intro { margin-inline-start: 0; max-width: 690px; }
  .team-grid__content p { max-width: none; }

  /* Équipe : photos réduites à gauche, texte à droite (comme en desktop) */
  /* La colonne photos prend juste la place nécessaire, le texte le reste */
  .team-grid { grid-template-columns: min-content 1fr; gap: 30px; }
  .team-grid__content .btn--pill { margin-top: 14px; } /* 16px de marge du paragraphe + 14px = 30px */
  .team-grid__photos { grid-template-columns: repeat(2, min-content); justify-content: start; gap: 18px 16px; }
  .team-member__avatar,
  .team-member__photo { width: 150px; height: 150px; }
  .team-member__first,
  .team-member__last { font-size: 23px; line-height: 32px; letter-spacing: 2.44px; }
  .team-member__first { left: -6px; }
  .team-member__last { left: -6px; white-space: normal; overflow-wrap: normal; }

  .site-footer__stripe { flex-basis: 32px; width: 32px; }
}

@media (max-width: 767px) {
  /* Menu plein écran : le titre ne doit plus dépasser de l'écran */
  .mobile-nav__heading { font-size: 34px; line-height: 38px; overflow-wrap: break-word; }
  .mobile-nav__main { gap: 40px; }

  /* Hero : sur une colonne, les illustrations sous le texte */
  .hero__grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .hero__image-card, .hero__image-card img { height: auto; }
  .hero__content { padding-top: 104px; max-width: none; margin-inline-end: var(--side-inset); }
  .hero__scroll-hint { display: none; }
  .hero__images { margin-top: 0; padding-inline: var(--side-inset); }
  .hero__logo { margin-bottom: 48px; }
  .hero__logo img { width: 200px; }
  .hero h1 { font-size: 34px; }
  .hero__content .hero__text { font-size: 17px; }
  .hero__list { margin-bottom: 32px; }

  /* Titres de section */
  .eyebrow--accent { font-size: 44px; line-height: 54px; }
  .section--centered__heading,
  .cta-final__content h2 { font-size: 34px; line-height: 40px; }

  /* Carrousels : la carte suivante reste visible à droite */
  .card-numbered,
  .card-photo { flex-basis: min(376px, 78vw); width: min(376px, 78vw); height: 250px; }
  .testimonial-card { flex-basis: 82vw; width: 82vw; padding-right: 0; }

  /* Équipe : les photos s'adaptent à la largeur de la colonne */
  .team-grid { grid-template-columns: 1fr; }
  .team-grid__photos { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .team-member__avatar,
  .team-member__photo { width: 100%; max-width: 180px; height: auto; aspect-ratio: 1; }
  .team-member__first,
  .team-member__last { font-size: 17px; line-height: 24px; letter-spacing: 1.4px; }
  .team-member__first { left: -6px; }
  .team-member__last { left: -6px; white-space: normal; overflow-wrap: anywhere; }

  /* FAQ */
  .faq-item__question-text { font-size: 21px; line-height: 27px; }
  .faq-item.is-open .faq-item__question-text { font-size: 24px; line-height: 30px; }

  /* Footer */
  .site-footer__stripe { flex-basis: 14px; width: 14px; }
  .site-footer__surface { border-top-right-radius: 40px; padding-top: 40px; }
  .site-logo--white img { width: 190px; }
  .site-footer__contact-row { flex-wrap: wrap; gap: 24px 32px; }
  .site-footer__badge { flex-wrap: wrap; } /* petits écrans : l'un sous l'autre */
}

/* Footer : 4 colonnes seulement à partir du desktop ; en tablette 2 x 2 */
@media (min-width: 1024px) {
  /* LinkedIn sous le contact (colonne 1), les 3 listes de liens sur 2 lignes.
     La 2e ligne est flexible : c'est elle qui absorbe la hauteur des listes,
     pour que LinkedIn reste collé sous le bloc contact. */
  .site-footer__inner { grid-template-columns: 1.3fr 1fr 1fr 1fr; grid-template-rows: auto 1fr; }
  .site-footer__col--contact { grid-column: 1; grid-row: 1; }
  .site-footer__linkedin { grid-column: 1; grid-row: 2; }
  .site-footer__col--pages,
  .site-footer__col--secteurs,
  .site-footer__col--missions { grid-row: 1 / span 2; }
}

/* Tablette uniquement (768–1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Votre activité : 120px entre le texte d'intro et l'en-tête du carrousel */
  #votre-activite .section-lead { margin-bottom: 120px; }

  /* Votre activité : 2 cartes entières + la 3e qui déborde à droite
     (même règle que les cartes « Nos expertises ») */
  .card-photo {
    flex-basis: min(376px, calc((100vw - var(--side-inset) - 32px) / 2.4));
    width: min(376px, calc((100vw - var(--side-inset) - 32px) / 2.4));
    height: 250px;
  }

  /* Témoignages : 2 avis entiers + 8px du 3e visibles à droite
     (2 écarts de 24px + 8px de débordement = 56px) */
  .testimonial-card {
    flex-basis: calc((100vw - var(--side-inset) - 56px) / 2);
    width: calc((100vw - var(--side-inset) - 56px) / 2);
  }

  /* FAQ : questions en 40px, ouvertes ou fermées */
  .faq-item__question-text,
  .faq-item.is-open .faq-item__question-text { font-size: 40px; line-height: 46px; }

  /* CTA final : titre en 40/45px, 100px entre l'image et le texte */
  .cta-final__grid { column-gap: 100px; }
  .cta-final__content h2 { font-size: 40px; line-height: 45px; }
}

/* Footer tablette (768–1023px) : à gauche le logo, LinkedIn (10px dessous)
   puis les badges (50px dessous) ; à droite le bloc contact ; en dessous
   les 3 listes de liens. Les conteneurs intermédiaires sont « aplatis »
   (display: contents) pour que tout soit placé dans une seule grille. */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-footer__stripe { flex-basis: 62px; width: 62px; } /* même largeur qu'en desktop */
  .site-footer__surface { padding-top: 132px; }
  .site-footer__main {
    display: grid;
    width: 90%;
    margin-inline: auto;
    /* Gauche : juste la largeur nécessaire ; droite : tout le reste, pour
       que téléphone et e-mail tiennent sur la même ligne. */
    grid-template-columns: auto 1fr;
    /* 3e ligne flexible : si le contact est plus haut que la colonne de
       gauche, c'est elle qui grandit, pas les écarts logo/LinkedIn/badges. */
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
      "logo     contact"
      "linkedin contact"
      "badge    contact"
      "links    links";
    column-gap: 32px;
    padding-bottom: 40px;
  }
  .site-footer__logo-row,
  .site-footer__inner { display: contents; }

  .site-footer__main .site-logo--white { grid-area: logo; justify-self: start; }
  .site-footer__main .site-logo--white img { margin-bottom: 0; }
  .site-footer__linkedin { grid-area: linkedin; margin-top: 10px; }
  .site-footer__badge-row { grid-area: badge; align-self: start; width: auto; margin: 50px 0 0; padding: 0; }
  .site-footer__badge { gap: 12px; }
  .site-footer__badge-img--cncc { width: 120px; }
  .site-footer__badge-img--ordre { width: 140px; }

  .site-footer__col--contact { grid-area: contact; }
  /* Téléphone et e-mail côte à côte, sans retour à la ligne */
  .site-footer__contact-row { flex-wrap: nowrap; gap: 24px; }
  .site-footer__contact-block a[href^="mailto:"] { white-space: nowrap; }

  .site-footer__links {
    grid-area: links;
    display: grid;
    /* Colonnes à la largeur de leur contenu, réparties sur toute la
       largeur : aucun lien ne passe sur deux lignes. */
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    column-gap: 24px;
    margin-top: 150px;
  }
  .site-footer__col--secteurs ul,
  .site-footer__col--missions ul { gap: 4px; }
}

/* ==========================================================================
   Téléphone uniquement (< 768px) — retouches validées une à une
   ========================================================================== */
@media (max-width: 767px) {
  /* Tous les eyebrows (sauf le grand « FAQ », qui est un titre) */
  .eyebrow:not(.eyebrow--accent) { font-size: 12px; line-height: 15px; letter-spacing: 1.27px; }
  #nos-missions .eyebrow { font-size: 15px; line-height: 20px; letter-spacing: 1.59px; margin-bottom: 35px; }
  #nos-missions .card-numbered-grid { margin-bottom: 60px; } /* 60px entre les cartes et l'intro */
  .section-intro__text { font-size: 12px; line-height: 21px; }

  /* Équipe : une colonne centrée, dans l'ordre marque → eyebrow → titre →
     photos → texte → bouton. Le bloc texte est « aplati » (display:
     contents) pour que ses éléments se placent autour des photos. */
  .team-grid { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
  .team-grid__content { display: contents; }
  .team-grid__content-mark { order: 1; width: 24px; height: 24px; margin-bottom: 10px; }
  .section--team .team-grid__content-eyebrow { order: 2; font-size: 11px; line-height: 26px; letter-spacing: 1.17px; margin-bottom: 6px; }
  .team-grid__content h2 { order: 3; font-size: 27px; line-height: 31px; margin-bottom: 32px; }
  /* Colonnes à la largeur des photos : ce sont les photos qui sont centrées
     (un nom plus long que la photo dépasse simplement à droite). */
  .team-grid__photos { order: 4; grid-template-columns: repeat(2, 116px); justify-content: center; gap: 24px 24px; margin-bottom: 32px; text-align: left; }
  .team-grid__content p:not(.team-grid__content-eyebrow) { order: 5; font-size: 15px; line-height: 26px; text-align: center; }
  .team-grid__content .btn--pill { order: 6; }

  /* Votre activité : titre et texte d'intro */
  #votre-activite .section--centered__heading { font-size: 27px; line-height: 30px; }
  /* 3 lignes : le texte déborde un peu des marges du conteneur (10px du
     bord de l'écran au lieu de 5 %) pour tenir aussi sur les petits écrans */
  #votre-activite .section-lead { font-size: 15px; line-height: 26px; margin-inline: calc(10px - var(--side-inset)); margin-bottom: 106px; }

  /* Témoignages : eyebrow → titre (1 ligne) → texte → 1 avis à la fois →
     flèches centrées tout en bas. Les conteneurs sont « aplatis » pour
     pouvoir placer les flèches sous le carrousel. */
  /* 115px entre les cartes « Votre activité » et « Témoignages clients » :
     32px de padding bas de la section précédente + 83px ici */
  .section--testimonials { display: flex; flex-direction: column; padding-top: 83px; }
  .section--testimonials > .container,
  .section--testimonials__head { display: contents; }
  .section--testimonials .eyebrow,
  .section--testimonials .section--centered__heading,
  .section--testimonials .section-lead { margin-inline: var(--side-inset); }
  .section--testimonials .eyebrow { order: 1; }
  /* 40px / 44px ; sur les écrans de moins de ~390px, la taille baisse un
     peu pour que le titre reste sur une ligne sans déborder. */
  .section--testimonials .section--centered__heading { order: 2; font-size: min(40px, calc((95vw - 12px) / 8.95)); line-height: 1.1; white-space: nowrap; margin-bottom: 12px; margin-inline-end: 0; }
  .section--testimonials .section-lead { order: 3; }
  .testimonial-grid { order: 4; margin-inline: var(--side-inset); gap: 24px; }
  .testimonial-card { flex-basis: 100%; width: 100%; padding-right: 0; }
  .section--testimonials .section-carousel-head { order: 5; align-self: center; margin-top: 4px; }
  .section--testimonials .carousel-arrows { gap: 33px; }
  /* Chaque avis garde sa hauteur ; la zone suit celle de l'avis affiché (JS) */
  .testimonial-grid { align-items: flex-start; overflow-y: hidden; transition: height 0.3s ease; }
  .testimonial-card { padding-bottom: 0; }
  /* Avis : étoiles sous le nom, tout le contenu calé à gauche */
  .testimonial-card { text-align: left; }
  .testimonial-card__head { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 22px; margin-bottom: 20px; } /* 22px nom → étoiles, 20px étoiles → texte */

  /* FAQ : grand « FAQ » et questions (ouvertes ou fermées) */
  .section--faq .eyebrow--accent { font-size: 60px; line-height: 75px; }
  .faq-item__question-text,
  .faq-item.is-open .faq-item__question-text { font-size: 25px; line-height: 31px; }
  .faq-item__answer p { font-size: 16px; line-height: 26px; color: #020046; }

  /* CTA final */
  .cta-final__content h2 { font-size: 35px; }
  .cta-final { padding-bottom: 200px; } /* + 40px de marge du footer = 240px sous le bouton */

  /* Footer : une colonne centrée, dans l'ordre logo → LinkedIn → pages →
     secteurs → missions → contact → badges → bas de page. Les conteneurs
     sont « aplatis » (display: contents) pour pouvoir réordonner. */
  .site-footer__main { display: flex; flex-direction: column; align-items: center; width: 90%; margin-inline: auto; padding-bottom: 40px; text-align: center; }
  .site-footer__logo-row,
  .site-footer__inner { display: contents; }

  .site-footer__main .site-logo--white { order: 1; }
  .site-footer__main .site-logo--white img { width: 182px; margin-bottom: 12px; }

  .site-footer__linkedin { order: 2; align-self: center; font-size: 15px; line-height: 35px; margin-top: 0; }

  .site-footer__col--pages { order: 3; margin-top: 32px; }
  .site-footer__col--secteurs { order: 5; margin-top: 24px; }
  .site-footer__col--missions { order: 4; margin-top: 24px; }
  .site-footer__links ul { align-items: center; }
  .site-footer__links a { font-size: 15px; line-height: 50px; }

  .site-footer__col--contact { order: 6; align-items: center; margin-top: 40px; }
  .site-footer__contact-block { align-items: center; }
  .site-footer__contact-row { justify-content: center; }

  .site-footer__badge-row { order: 7; width: auto; margin: 40px 0 0; padding: 0; }
  .site-footer__badge { justify-content: center; }
  .site-footer__badge-img--cncc { width: 93px; }
  .site-footer__badge-img--ordre { width: 116px; }

  .site-footer__bottom { align-items: center; text-align: center; gap: 10px; }
  .site-footer__stripe { flex-basis: 30px; width: 30px; }
  /* 65px au-dessus du contenu du footer et 65px sous « Mentions légales »
     (la bordure transparente du bas de page sert d'espace final) */
  .site-footer__surface { padding-top: 65px; }
  .site-footer__bottom { padding-bottom: 0; border-bottom-width: 65px; }

  .team-member__avatar,
  .team-member__photo { width: 116px; height: 116px; max-width: none; }
  .team-member__first,
  .team-member__last { font-size: 12px; line-height: 15px; letter-spacing: 1.27px; }
  .team-member__first { left: -4px; bottom: 4px; }
  .team-member__last { left: -4px; margin-top: 0; white-space: nowrap; }

  /* Logo du hero : 152px, centré verticalement sur le bouton burger */
  .hero__logo img { width: 152px; }
  /* Burger : top 28px + 52px de haut → centre à 54px.
     Logo : 44px de haut → il doit commencer à 54 - 22 = 32px. */
  .hero__content { padding-top: 32px; }

  /* Hero : typographie téléphone */
  .hero .eyebrow { margin-bottom: 25px; line-height: 23px; }
  .hero h1 { font-size: 25px; line-height: 26px; }
  .hero__content .hero__text { font-size: 15px; line-height: 24px; }
  .hero__list li { font-size: 15px; line-height: 20px; }

  /* Illustrations : les 4 cartes en ligne, défilement automatique en boucle
     de bord à bord (remplace l'image groupée du desktop/tablette). */
  .hero__images { display: none; }
  .hero__marquee { display: block; overflow: hidden; }
  .hero__marquee-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: hero-marquee 24s linear infinite;
  }
  /* Le gap final est inclus dans chaque moitié pour une boucle sans saut */
  /* Carte 224 x 278 : l'illustration (plus haute) est recadrée à l'intérieur,
     le contour arrondi est redessiné en CSS avec les couleurs du fichier
     (turquoise en haut → bleu en bas). */
  .hero__marquee-card {
    display: block;
    flex-shrink: 0;
    width: 224px;
    height: 278px;
    overflow: hidden;
    border: 1.5px solid transparent;
    border-radius: 16px;
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(to bottom, #a3f2e6, #a8dee5 50%, #adc9e3) border-box;
  }
  .hero__marquee-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom; /* le haut n'a que des nuages */
    transform-origin: center bottom;
    /* Léger zoom : masque le contour déjà dessiné dans l'image */
    transform: scale(1.04);
  }
  .hero__marquee-track { padding-right: 12px; }

  /* Nos expertises : cartes 124 x 141, même présentation en réduit
     (numéro en haut à gauche, icône, titre en bas) */
  .card-numbered-grid { gap: 12px; }
  .card-numbered { flex-basis: 124px; width: 124px; height: 141px; padding: 10px; gap: 8px; border-radius: 12px; }
  .card-numbered__number { top: 4px; left: 10px; font-size: 11px; line-height: 24px; letter-spacing: 1.1px; }
  .card-numbered__icon img { max-width: 44px; max-height: 44px; }
  .card-numbered:nth-child(2) .card-numbered__icon img,
  .card-numbered:nth-child(4) .card-numbered__icon img,
  .card-numbered:nth-child(6) .card-numbered__icon img { max-width: 70px; max-height: 70px; }
  .card-numbered__title { font-size: 12px; line-height: 15px; word-spacing: 0; }

  /* Autres secteurs : « NOS FONDAMENTAUX » tient sur une ligne (376.5px à 35px) */
  .service-page--autres-secteurs .statement__text { font-size: min(35px, calc(90vw * 35 / 377)); line-height: 1.23; }

  /* Nos outils : 130px entre l'illustration du hero et le bloc Pennylane */
  .page-hero--outils { margin-bottom: 98px; } /* + 32px de marge haute de la section */
  .media-row--tool .media-row__logo { height: 56px; } /* logos Pennylane / Tiime agrandis (32px ailleurs) */
  .media-row--tool:has(+ .section--faq) { padding-bottom: 108px; } /* 140px du bouton à la FAQ (+ 32px de la FAQ) */
  .media-row.media-row--outline .media-row__grid { row-gap: 78px; } /* 78px entre la photo et le titre */
  .media-row--outline .media-row__media img { height: 230px; object-fit: cover; object-position: center; } /* photos Facturation / Indépendants : 230px de haut, recadrées au centre */

  /* Autres secteurs, grille d'activités : une seule colonne, lue colonne par colonne
     comme la grille desktop (Commerce, Transport, Intermédiaires, Associations…) */
  .service-page .activity-grid { grid-template-columns: 1fr; gap: 6px; }
  .service-page .activity-grid li { padding: 9px 8px; font-size: 13px; line-height: 26px; letter-spacing: 0.33px; color: var(--color-secondary); }
  .service-page .activity-grid li:nth-child(3n+1) { order: 1; }
  .service-page .activity-grid li:nth-child(3n+2) { order: 2; }
  .service-page .activity-grid li:nth-child(3n) { order: 3; }
}

/* Mouvement réduit demandé par le système : pas de défilement automatique,
   la bande se fait défiler au doigt. */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .hero__marquee { overflow-x: auto; }
  .hero__marquee-track { animation: none; }
}

/* ==========================================================================
   Pages intérieures (missions, secteurs, cabinet, outils, contact)
   Base = desktop, adaptations tablette / téléphone en fin de section.
   ========================================================================== */

/* Marque « o » Galileo en masque (couleur via background-color) */
.galileo-mark {
  display: block;
  background-color: #01dab8;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}

/* ---------- Hero des pages intérieures --------------------------------- */
/* L'illustration reprend sa position exacte de la maquette (1450px) :
   --img-x / --img-y / --img-w / --img-h en px maquette, mis à l'échelle
   de la largeur d'écran jusqu'à 1450px. */
.page-hero { --u: calc(min(100vw, 1450px) / 1450); position: relative; overflow: hidden; }
.page-hero__frame {
  position: relative;
  max-width: 1450px;
  margin-inline: auto;
  min-height: calc(var(--u) * (var(--img-y, 0) + var(--img-h, 0)) + 80px);
}
.page-hero__content {
  position: relative;
  z-index: 1;
  padding-top: 166px;
  padding-bottom: 60px;
  margin-inline-start: max(var(--side-inset), calc((min(100vw, 1450px) - var(--container-max)) / 2));
  max-width: 560px;
}
.page-hero__logo { margin-bottom: 125px; }
/* Séparateur « | » des titres : trait fin, de la hauteur des majuscules */
.page-hero__sep { display: inline-block; width: 4px; height: 0.74em; margin: 0 0.15em; background: #00b0ea; color: transparent; overflow: hidden; line-height: 0; vertical-align: baseline; }
.page-hero__title { font-size: 45px; line-height: 1.2; font-weight: 700; margin-bottom: 20px; }
.page-hero__text { color: var(--color-secondary); font-size: 20px; line-height: 30px; max-width: 520px; margin-bottom: 30px; }
.page-hero__scroll-hint { margin-top: 300px; }
.page-hero__image {
  position: absolute;
  left: calc(var(--u) * var(--img-x));
  top: calc(var(--u) * var(--img-y));
  width: calc(var(--u) * var(--img-w));
}
.page-hero__image img { display: block; width: 100%; height: auto; }

/* ---------- Phrase d'accroche ------------------------------------------ */
.statement { padding-block: 60px 80px; }
.statement__inner { display: flex; align-items: center; justify-content: center; gap: 45px; }
.statement__mark { flex: 0 0 90px; width: 90px; height: 96px; }
.statement__text { text-transform: uppercase; width: fit-content; margin: 0; min-width: 0; overflow-wrap: break-word; font-family: var(--font-heading); font-weight: 700; font-size: 70px; line-height: 66px; color: var(--color-secondary); }

/* ---------- En-tête de section (marque + eyebrow + titre) --------------- */
.section-head { margin-bottom: 48px; }
.section-head__mark { width: 32px; height: 34px; margin-bottom: 6px; }
/* Le fichier de la marque a une marge transparente à gauche (31px sur 270) :
   on cale le dessin à gauche et on compense pour l'aligner sur le texte. */
.section-head--left .section-head__mark { -webkit-mask-position: left center; mask-position: left center; margin-left: -3.4px; }
.section-head__eyebrow { margin-bottom: 4px; }
.section-head__title { font-size: 50px; line-height: 55px; color: var(--color-primary); margin: 0; }
.section-head--center { text-align: center; }
.section-head--center .section-head__mark { margin-inline: auto; }

/* ---------- Accordéon des missions (rendu FAQ + filet vertical) --------- */
.accordion { border-left: 3px solid #00b0ea; padding-left: 55px; }
.accordion .faq-list { margin-top: 0; }
.accordion__list .faq-item { border-bottom: 1px solid #01dab8; }
.accordion .faq-item__question { padding: 34px 0; }
.accordion .faq-item:first-child .faq-item__question { padding-top: 0; }
.accordion__content { padding-bottom: 24px; color: #003e68; font-size: 16px; line-height: 26px; }
.accordion__content p { margin: 0 0 12px; color: inherit; padding: 0; }
.accordion__content ul,
.accordion__content ol { margin: 0 0 12px; padding-left: 1.3em; }
.accordion__content ul { list-style: disc; }
.accordion__content ol { list-style: decimal; }
.accordion__content li { margin-bottom: 4px; }
.why__text a { color: var(--color-secondary); text-decoration: underline; text-underline-offset: 2px; }
/* Liens dans l'accordéon des missions : flèche ↗ au bout, et soulignement bleu de
   2px qui passe aussi sous la flèche (dessinés en fond pour couvrir tout le lien) */
.accordion__content a {
  color: inherit; text-decoration: none;
  padding-right: 1.25em; padding-bottom: 2px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 10 L10 2 M4 2 H10 V8' fill='none' stroke='%2300b0ea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.05em top 0.15em / 0.9em 0.9em,
    linear-gradient(#00b0ea, #00b0ea) no-repeat left bottom / 100% 2px;
}
.accordion__note-title { font-size: 25px; line-height: 31px; color: var(--color-secondary); margin: 28px 0 12px; }

/* Tableau comparatif (Examen de conformité fiscale) */
.data-table { overflow-x: auto; margin: 16px 0 8px; }
.data-table table { width: 100%; border-collapse: collapse; text-align: center; font-size: 16px; line-height: 21px; color: #003e68; background: #fff; }
.data-table th, .data-table td { padding: 16px 20px; border: 1px solid #eaeaea; font-weight: 400; vertical-align: middle; }
.data-table thead th { height: 70px; text-transform: uppercase; background: #eaeaea; }
.data-table thead th:nth-child(2) { background: #b9e4f0; }
.data-table thead th:nth-child(3) { background: #01dab8; }
.data-table tbody th { background: #91e4ff; width: 22%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Grille des activités (Autres secteurs) */
.activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; list-style: none !important; padding: 0 !important; margin: 20px 0 !important; text-align: center; }
/* Cases pleines lavande, sans bordure ni arrondi marqué (maquette) */
.activity-grid li { margin: 0; padding: 22px 8px; background: #f2f3fe; border: 0; border-radius: 2px; font-size: 16px; line-height: 22px; display: flex; align-items: center; justify-content: center; }

/* ---------- « Pourquoi choisir Galileo » -------------------------------- */
.why__grid { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 60px; align-items: center; }
.why .section-head { margin-bottom: 24px; }
.why__text { font-size: 15px; line-height: 26px; color: var(--color-primary); max-width: 520px; }
.why__text p { margin: 0 0 12px; }
.why__text ol { margin: 0 0 12px; padding-left: 1.3em; list-style: decimal; }
.why__text li { margin-bottom: 6px; }
.why__note { color: #263293; }
.why__list { margin: 20px 0 36px; display: flex; flex-direction: column; gap: 10px; }
.why__list li { display: flex; align-items: center; gap: 10px; color: var(--color-secondary); font-size: 15px; line-height: 24px; }
.why__image { display: flex; justify-content: center; }
.why__image img { width: auto; max-width: 100%; max-height: 520px; }
.why--reverse .why__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
.why--reverse .why__image { order: -1; }

/* ---------- Parcours en étapes ------------------------------------------ */
.timeline__list { position: relative; list-style: none; margin: 72px 0 0; padding: 0; }
/* Trait vertical : un segment par étape, du centre de sa bulle au centre de la
   bulle suivante (il s'arrête donc sur la dernière bulle). 48px = marge entre
   deux étapes, 28px = demi-bulle. */
.timeline__step:not(:last-child)::before { content: ''; position: absolute; left: 50%; top: calc(28px + var(--bo, 0px)); bottom: calc(-48px - 28px - var(--bo-next, 0px)); width: 2px; margin-left: -1px; background: #d4d4d4; }
/* Bulle centrée verticalement sur le titre de l'étape (1 ou 2 lignes) : --bo est
   calculé par le script (assets/js/main.js) */
.timeline__bubble { margin-top: var(--bo, 0px); }
.timeline__step { position: relative; display: grid; grid-template-columns: 1fr 56px 1fr; column-gap: 32px; align-items: start; min-height: 180px; margin-bottom: 48px; }
.timeline__bubble {
  grid-column: 2; grid-row: 1;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 30px; font-weight: 600;
  /* Anneau foncé + disque plus clair, du marine (1re étape) au turquoise (6e) */
  background: linear-gradient(to bottom, color-mix(in srgb, var(--fill) 94%, #000), var(--fill));
  border: 5px solid var(--ring);
  position: relative; z-index: 1;
}
.timeline__step:nth-child(1) .timeline__bubble { --ring: #0b1e71; --fill: #5468b9; }
.timeline__step:nth-child(2) .timeline__bubble { --ring: #214ea4; --fill: #6f9ce0; }
.timeline__step:nth-child(3) .timeline__bubble { --ring: #3b85ac; --fill: #78c5e6; }
.timeline__step:nth-child(4) .timeline__bubble { --ring: #4ca7b1; --fill: #7bd9e2; }
.timeline__step:nth-child(5) .timeline__bubble { --ring: #5eccb8; --fill: #77e6d4; }
.timeline__step:nth-child(6) .timeline__bubble { --ring: #62d6b9; --fill: #74e4ce; }
.timeline__body { grid-row: 1; }
.timeline__step--right .timeline__body { grid-column: 3; text-align: left; }
.timeline__step--left .timeline__body { grid-column: 1; text-align: right; }
.timeline__title { font-size: 35px; line-height: 40px; font-weight: 600; color: var(--color-secondary); margin: 6px 0 10px; }
.timeline__subtitle { color: #00b0ea; margin: 0 0 8px; }
.timeline__text { font-size: 16px; line-height: 26px; color: #003e68; max-width: 480px; }
.timeline__step--left .timeline__text { margin-left: auto; }
.timeline__text p { margin: 0 0 10px; }

/* ---------- Tarifs ------------------------------------------------------ */
.pricing__intro { max-width: 720px; margin: -24px auto 56px; text-align: center; font-size: 16px; line-height: 26px; color: #003e68; }
.pricing__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: stretch; max-width: 1240px; margin-inline: auto; }
.pricing__card { display: flex; flex-direction: column; padding: 48px 44px 44px; border: 1.5px solid #91e4ff; border-radius: 20px; background: rgba(255, 255, 255, 0.6); }
/* Formule mise en avant : plus haute que les deux autres (24px de plus en haut et en bas) */
/* Copies du carrousel infini des tarifs : utilisées en tablette uniquement */
.pricing__card--clone { display: none; }
.pricing__track { display: contents; } /* piste du carrousel : neutre hors tablette */
@media (max-width: 1023px) { .pricing__card--clone { display: flex; } }
.pricing__card.is-featured { border: 2.5px solid #00b0ea; margin-block: -24px; padding-top: 72px; padding-bottom: 68px; box-shadow: 0 20px 40px -24px rgba(0, 176, 234, 0.45); }
.pricing__icon { width: 60px; height: auto; margin: -12px 0 0 -14px; }
.pricing__name { color: var(--color-secondary); font-size: 15px; margin: 0 0 16px; }
.pricing__price { font-size: 30px; line-height: 36px; font-weight: 700; color: var(--color-primary); margin: 0 0 28px; }
.pricing__items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.pricing__items li { display: flex; align-items: flex-start; gap: 10px; color: var(--color-secondary); font-size: 15px; line-height: 21px; }
.pricing__items .hero__list-icon { margin-top: 4px; }
.pricing__tagline { margin: auto 0 0; font-size: 16px; line-height: 26px; color: #003e68; }

/* ---------- Comparatif en colonnes -------------------------------------- */
.compare__table { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); max-width: 950px; margin: 0 auto; background: #fff; border: 1px solid #eaeaea; }
.compare__col { border-right: 1px solid #eaeaea; }
.compare__col:last-of-type { border-right: 0; }
.compare__head { margin: 0; padding: 22px 16px; text-align: center; font-size: 16px; font-weight: 700; color: #003e68; background: #b9e4f0; }
.compare__col--2 .compare__head { background: #91e4ff; }
.compare__col--3 .compare__head { background: #01dab8; }
.compare__text { padding: 32px 20px; font-size: 16px; line-height: 26px; color: #003e68; }
.compare__text p { margin: 0; }
.compare__footer { grid-column: 1 / -1; margin: 0; padding: 10px 16px; text-align: center; background: #0640a9; color: #f7f7f7; font-size: 17px; font-weight: 700; }

/* ---------- Bloc texte + visuel (Notre cabinet, Nos outils) ------------- */
.media-row__grid { display: grid; grid-template-columns: minmax(0, 606px) minmax(0, 1fr); gap: 90px; align-items: center; max-width: 1150px; }
.media-row--reverse .media-row__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 606px); }
.media-row--reverse .media-row__media { order: 2; }
.media-row__media img { display: block; width: 100%; height: auto; }
.media-row--founder .media-row__media img,
.media-row--fiscal .media-row__media img { border-radius: 20px; object-fit: cover; }
.media-row--founder .media-row__media img { aspect-ratio: 606 / 708; object-position: 70% center; }
.media-row--fiscal .media-row__media img { aspect-ratio: 606 / 437; }
/* Visuel découpé en morceaux : recomposé en tablette seulement (voir plus bas) */
.media-row__parts { display: none; }
/* Contour dégradé 2px (Rectangle 340 de la maquette) */
.media-row--outline .media-row__media img { box-sizing: border-box; border: 2px solid transparent; border-radius: 30px; background: linear-gradient(#a3f2e6, #afc1e3) border-box; }
.media-row .section-head { margin-bottom: 16px; }
.media-row__logo { display: block; height: 32px; width: auto; margin-bottom: 18px; }
.media-row__title { margin-bottom: 24px; }
/* Sous-titres des pages intérieures : même style partout */
.media-row__subtitle,
.timeline__subtitle { font-size: 15px; font-weight: 800; line-height: 23px; letter-spacing: 1.59px; text-transform: uppercase; }
.media-row__subtitle { color: var(--color-primary); margin: 0 0 16px; }
.media-row__content { font-size: 15px; line-height: 22px; color: var(--color-primary); max-width: 520px; }
.media-row__content p { margin: 0 0 12px; }
.media-row__content h3 { font-size: 15px; line-height: 22px; font-weight: 700; color: var(--color-primary); margin: 22px 0 2px; }
.media-row__quote { margin: 40px 0 0; font-size: 20px; line-height: 30px; color: var(--color-secondary); max-width: 480px; }
.media-row .btn--pill { margin-top: 28px; }
.media-row--tool .media-row__grid { max-width: 1200px; gap: 70px; }

/* Pôle comptable */
.pole__grid { display: flex; justify-content: center; gap: 120px; text-align: center; }
/* 313px entre le pôle comptable et la section « Un cabinet qui s'adapte » (80px de padding haut de la section suivante + 233px) */
.pole { padding-bottom: 233px; }
/* Notre cabinet : 134px entre le texte d'intro et l'en-tête « Nos expertises » */
#nos-missions.section--centered .section-lead { margin-bottom: 134px; }
#nos-missions.section--centered .section-intro { text-align: left; }
.pole__member { max-width: 300px; }
.pole__photo { width: 276px; height: 276px; border-radius: 50%; object-fit: cover; margin: 0 auto 26px; }
.pole__name { font-size: 50px; line-height: 55px; font-weight: 700; color: var(--color-primary); margin: 0 0 16px; }
.pole__role { font-size: 15px; font-weight: 800; line-height: 23px; letter-spacing: 1.59px; text-transform: uppercase; color: var(--color-primary); margin: 0 0 20px; }
.pole__text { font-size: 15px; line-height: 26px; color: var(--color-primary); margin: 0; }

/* ---------- Page Contact ----------------------------------------------- */
.contact__frame { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 532px); gap: 80px; max-width: 1450px; margin-inline: auto; padding: 166px max(var(--side-inset), calc((min(100vw, 1450px) - var(--container-max)) / 2)) 80px; }
.contact__intro .page-hero__logo { margin-bottom: 100px; }
.contact__title { font-size: 50px; line-height: 55px; margin-bottom: 24px; }
.contact__lead { font-size: 15px; color: var(--color-primary); margin-bottom: 28px; }
.contact__illustration { width: 369px; max-width: 100%; margin-top: 90px; }
.contact-form { align-self: start; margin-top: 100px; }
.contact-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 20px; }
.field { position: relative; margin: 0; }
.field--full { grid-column: 1 / -1; }
.field label { position: absolute; z-index: 1; top: -13px; left: 22px; padding: 0 8px; font-size: 20px; line-height: 26px; color: var(--color-secondary); pointer-events: none; }
.field input, .field select, .field textarea {
  width: 100%; height: 58px; padding: 16px 24px 8px;
  border: 2px solid #00b0ea; border-radius: 999px; background: transparent;
  font: inherit; font-size: 17px; color: var(--color-primary); cursor: text; outline: none;
}
/* Coupure du contour sous l'intitulé, sans fond derrière lui : le haut du contour est
   masqué sur la largeur du label (--notch, mesurée en JS) */
.field input, .field select, .field textarea {
  -webkit-mask: linear-gradient(#000 0 0) var(--notch-x, 22px) 0 / var(--notch, 0px) 3px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) var(--notch-x, 22px) 0 / var(--notch, 0px) 3px no-repeat exclude, linear-gradient(#000 0 0);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #0640a9; box-shadow: 0 0 0 3px rgba(0, 176, 234, 0.2); }
.field--select select { cursor: pointer; appearance: none; -webkit-appearance: none; background: #e3f7fd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%230640a9' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 26px center; text-align: center; text-align-last: center; font-size: 20px; color: var(--color-secondary); padding-top: 12px; }
.field--message textarea { height: 392px; border-radius: 26px; padding-top: 28px; resize: vertical; }
.contact-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; }
.contact-form__consent { display: flex; align-items: center; gap: 26px; font-size: 15px; line-height: 20px; color: var(--color-secondary); cursor: pointer; }
.contact-form__consent input { flex: 0 0 26px; width: 26px; height: 26px; margin: 0; appearance: none; -webkit-appearance: none; border: 2px solid #00b0ea; border-radius: 6px; cursor: pointer; }
.contact-form__consent input:checked { background: #00b0ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='11' viewBox='0 0 14 11'%3E%3Cpath d='M1.5 5.5l4 4 7-8' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center; }
.contact-form__notice { margin: 0 0 32px; padding: 14px 20px; border-radius: 14px; font-size: 15px; }
.contact-form__notice--ok { background: #e0faf5; color: #03624f; }
.contact-form__notice--error { background: #fdecec; color: #8a1c1c; }
.contact-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Pages intérieures — tablette (768–1023px) et téléphone (< 768px)
   ========================================================================== */
@media (max-width: 1023px) {
  .page-hero__content { padding-top: 120px; max-width: 46%; }
  .page-hero__logo { margin-bottom: 56px; }
  .page-hero__logo img { width: 200px; }
  .page-hero__title { font-size: 32px; }
  .page-hero__text { font-size: 17px; line-height: 26px; }
  .page-hero__scroll-hint { margin-top: 64px; }
  /* L'illustration occupe la moitié droite, calée en haut */
  .page-hero__image { left: auto; right: 0; top: 110px; width: 52%; }
  .page-hero__frame { min-height: 0; }

  .section-head__title { font-size: 40px; line-height: 45px; }
  .accordion { padding-left: 32px; }
  .accordion .faq-item__question { padding: 26px 0; }
  .why__grid, .why--reverse .why__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  /* Titres et accroches : on laisse le texte couler plutôt que de garder les coupures du desktop */
  .why .section-head__title br, .statement__text br, .media-row__title br { display: none; }
  .timeline__title { font-size: 28px; line-height: 33px; }
  .timeline__step { column-gap: 20px; }
  .pricing__grid { gap: 20px; }
  .pricing__card { padding: 36px 24px 30px; }
  .media-row__grid, .media-row--reverse .media-row__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .pole__grid { gap: 48px; }
  .pole__photo { width: 220px; height: 220px; }
  .pole__name { font-size: 40px; line-height: 45px; }
  .contact__frame { grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 120px; }
  .contact__title { font-size: 40px; line-height: 45px; }
  .contact-form { margin-top: 56px; }
  .contact-form__grid { grid-template-columns: 1fr; }
  .field--message textarea { height: 260px; }
}

@media (max-width: 767px) {
  .page-hero__content { padding-top: 32px; max-width: none; margin-inline-end: var(--side-inset); padding-bottom: 32px; }
  .page-hero__logo { margin-bottom: 48px; }
  .page-hero__logo img { width: 152px; }
  .page-hero__title { font-size: 25px; line-height: 26px; }
  .page-hero__text { font-size: 15px; line-height: 24px; width: 330px; max-width: 100%; }
  /* Tous les boutons des pages intérieures (l'accueil, déjà validé, garde les siens) */
  body:not(.home) .btn--pill { font-size: 13px; letter-spacing: 1.3px; padding: 12px 28px; }
  /* Hero : 100px entre le bouton et l'illustration */
  .page-hero__content { padding-bottom: 0; }
  .page-hero .page-hero__image { margin-top: 100px; }
  /* Création d'entreprise : illustration du hero de bord à bord, qui déborde un peu (coupée par le hero) */
  .service-page--creation-entreprise .page-hero__image { margin-inline: -60px -24px; } /* à gauche, le dessin commence après une marge vide */
  /* « Pourquoi choisir » (toutes les pages missions / secteurs) :
     - illustration dans un cadre de 339 × 288 (sans déformation) ;
     - texte au même découpage de lignes sur tous les téléphones (celui d'un
       écran de 390px) : largeur fixe de 351px, taille réduite si l'écran est plus étroit */
  .service-page .why__image img { width: 339px; height: 288px; max-width: 100%; object-fit: contain; }
  .service-page .why__text { width: 351px; max-width: 100%; }
  .service-page .why__text p { font-size: min(15px, calc((100vw - 10vw) * 15 / 351)); }
  /* Texte réparti proprement avant le retour à la ligne forcé (pas de mot isolé) */
  /* Accroche : marque « o » au-dessus du texte, le tout centré */
  .statement__inner { flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
  .statement__text { text-align: center; }
  .statement__text br.br-phone, .statement__text br.br-all { display: inline; }
  .statement__mark { flex: 0 0 60px; width: 55px; height: 60px; }
  .statement__text { font-size: 35px; line-height: 43px; text-transform: uppercase; }
  .section--accordion .section-head__title { font-size: 20px; line-height: 25px; }
  .section--accordion .section-head__eyebrow { font-size: 15px; line-height: 35px; }
  .accordion__content { font-size: 16px; line-height: 26px; letter-spacing: 0.4px; }
  /* Missions fermées de l'accordéon */
  .accordion .faq-item:not(.is-open) .faq-item__question-text { font-size: 20px; line-height: 30px; }
  .accordion { border-left-width: 5px; }
  #nos-missions .section-carousel-head, .service-page #votre-activite .section-carousel-head { padding-bottom: 15px; } /* 15px entre le libellé / les flèches et le trait */
  /* En-tête « Nos expertises » : libellé centré verticalement sur les flèches,
     flèches dessinées en 9 × 18px */
  #nos-missions .section-carousel-head, .service-page #votre-activite .section-carousel-head { align-items: center; }
  #nos-missions .section-carousel-head__label, .service-page #votre-activite .section-carousel-head__label { line-height: 18px; }
  #nos-missions .carousel-arrows, .service-page #votre-activite .carousel-arrows { gap: 24px; align-items: center; }
  #nos-missions .carousel-arrow, .service-page #votre-activite .carousel-arrow { width: 9px; height: 18px; padding: 0; font-size: 0; background: no-repeat center / 9px 18px; }
  #nos-missions .carousel-arrow--prev, .service-page #votre-activite .carousel-arrow--prev { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='18' viewBox='0 0 9 18'%3E%3Cpath d='M8 1 L1 9 L8 17' fill='none' stroke='%2300b0ea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  #nos-missions .carousel-arrow--next, .service-page #votre-activite .carousel-arrow--next { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='18' viewBox='0 0 9 18'%3E%3Cpath d='M1 1 L8 9 L1 17' fill='none' stroke='%2300b0ea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  /* « Pourquoi choisir Galileo » : centré, dans l'ordre titre → illustration
     (218 × 218) → texte → liste → bouton. Le bloc texte est « aplati »
     (display: contents) pour pouvoir glisser l'illustration sous le titre. */
  .why .why__grid { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
  .why__content { display: contents; }
  .why .section-head { order: 1; text-align: center; margin-bottom: 24px; }
  .why .section-head--left .section-head__mark { margin-inline: auto; -webkit-mask-position: center; mask-position: center; }
  .why__image { order: 2; margin-bottom: 44px; }
  .why__image img { width: 218px; height: 218px; max-height: none; object-fit: contain; }
  .why__text { order: 3; margin-inline: auto; }
  /* Liste : le bloc est centré, les lignes restent alignées à gauche */
  /* Liste : bloc plus étroit (264px max), centré dans la page ; les lignes restent alignées à gauche */
  .why__list { order: 4; align-self: center; width: fit-content; max-width: min(100%, 264px); text-align: left; }
  .why__list li { align-items: flex-start; }
  .why__list li .hero__list-icon { margin-top: 5px; } /* icône en face de la 1re ligne */
  .why__list li { justify-content: flex-start; text-align: left; }
  /* Retour à la ligne gardé aussi sur téléphone (ex. Audit : « Pourquoi choisir / Galileo… ») */
  /* Titre en 40px : on laisse le texte couler (les coupures de la maquette donnaient des lignes hachées) */
  .why .section-head__title br { display: none; }
  .why .section-head__title br.br-phone { display: inline; }
  .why .section-head__mark { width: 30px; height: 34px; }
  .why .section-head__eyebrow { font-size: 15px; line-height: 35px; letter-spacing: 1.59px; }
  .why .section-head__title { font-size: 35px; line-height: 40px; }
  /* Expertise comptable : « expert-comptable » sur une ligne → titre légèrement réduit (410px à 40px) */
  .why .section-head__title .nowrap { white-space: nowrap; }
  .service-page--expertise-comptable .why .section-head__title { font-size: min(35px, calc(90vw * 40 / 415)); }
  /* Startups : « activité e-commerce ? » sur une ligne → titre légèrement réduit (383px à 35px) */
  .service-page--startups-ecommerce .why .section-head__title { font-size: min(35px, calc(90vw * 35 / 388)); }
  /* 132px entre « Pourquoi choisir Galileo » et la FAQ (32px de padding bas du bloc précédent + 100px) */
  .service-page .section--faq { padding-top: 100px; }
  /* Réponses de la FAQ des pages intérieures (l'accueil garde ses 16/26px validés) */
  body:not(.home) .section--faq .faq-item__answer p,
  body:not(.home) .section--faq #faq-answer-0 p { font-size: 12px; line-height: 21px; letter-spacing: 0.3px; }
  /* Illustration du bloc final (pages intérieures) */
  body:not(.home) .cta-final__image img { width: 258px; height: 199px; max-width: 100%; object-fit: contain; }
  /* Questions fermées de la FAQ (pages intérieures) */
  body:not(.home) .section--faq .faq-item:not(.is-open) .faq-item__question-text { font-size: 18px; line-height: 24px; }
  .why__grid > .why__content > .btn--pill, .why .btn--pill { order: 5; }
  .page-hero__scroll-hint { display: none; }
  .page-hero__image { position: static; width: auto; margin: 0 var(--side-inset); }

  .statement { padding-block: 40px; }
  .section-head { margin-bottom: 28px; }
  .section-head__title { font-size: 27px; line-height: 31px; }
  .accordion { padding-left: 16px; }
  .accordion .faq-item__question { padding: 20px 0; }
  .data-table table { font-size: 13px; line-height: 17px; min-width: 520px; }
  .data-table th, .data-table td { padding: 10px; }
  .activity-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .activity-grid li { padding: 12px 8px; font-size: 14px; }
  .why__grid, .why--reverse .why__grid { grid-template-columns: 1fr; gap: 32px; }
  .why--reverse .why__image { order: 0; }
  .why__image img { max-height: 300px; }

  /* Parcours : filet à gauche, toutes les étapes du même côté */
  .timeline__list { margin-top: 40px; }
  .timeline__step:not(:last-child)::before { left: 24px; top: calc(24px + var(--bo, 0px)); bottom: calc(-32px - 24px - var(--bo-next, 0px)); }
  .timeline__step { grid-template-columns: 48px 1fr; column-gap: 18px; min-height: 0; margin-bottom: 32px; }
  .timeline__bubble { grid-column: 1; width: 48px; height: 48px; font-size: 24px; }
  .timeline__step--right .timeline__body,
  .timeline__step--left .timeline__body { grid-column: 2; text-align: left; }
  .timeline__step--left .timeline__text { margin-left: 0; }
  .timeline__title { font-size: 22px; line-height: 27px; margin-top: 8px; }
  .timeline__text { font-size: 15px; line-height: 24px; }

  .pricing__intro { margin: -8px auto 32px; font-size: 15px; line-height: 24px; }

  /* Comparatif : les colonnes s'empilent */
  .compare__table { grid-template-columns: 1fr; }
  .compare__col { border-right: 0; border-bottom: 1px solid #eaeaea; }
  .compare__text { padding: 20px; font-size: 15px; line-height: 24px; }
  .compare__footer { font-size: 15px; }

  .media-row__grid, .media-row--reverse .media-row__grid { grid-template-columns: 1fr; gap: 28px; }
  .media-row--reverse .media-row__media { order: 0; }
  .media-row__quote { font-size: 17px; line-height: 26px; margin-top: 24px; }
  .pole__grid { flex-direction: column; align-items: center; gap: 48px; }
  .pole { padding-bottom: 100px; } /* + 32px de la section suivante = 132px */
  /* 27px ; un peu moins sous ~400px pour que « à votre métier, pas l'inverse » tienne sur une ligne */
  #nos-missions.section--centered > .container > .eyebrow { font-size: 12px; line-height: 35px; letter-spacing: 1.27px; margin-bottom: 15px; }
  /* Texte d'intro sur 3 lignes, comme sur l'accueil */
  #nos-missions.section--centered .section-lead { font-size: 15px; line-height: 26px; margin-inline: calc(10px - var(--side-inset)); margin-bottom: 85px; }
  #nos-missions.section--centered .section--centered__heading { font-size: min(27px, calc((100vw - 20px) / 13.4)); line-height: 30px; text-align: center; white-space: nowrap; }
  .pole__photo { width: 180px; height: 180px; }
  .pole__name { font-size: 27px; line-height: 31px; }

  .contact__frame { grid-template-columns: 1fr; gap: 0; padding: 32px var(--side-inset) 48px; }
  .contact__intro .page-hero__logo { margin-bottom: 48px; }
  .contact__title { font-size: 35px; line-height: 40px; }
  .contact__illustration { display: none; }
  .contact-form { margin-top: 48px; }
  .field label { font-size: 16px; }
  .field--select select { font-size: 16px; }
  .contact-form__footer { flex-direction: column; align-items: center; } /* consentement et bouton centrés */
  .contact-form__consent { width: fit-content; gap: 14px; }
  .contact-form__consent br.br-desktop { display: inline; } /* 2 lignes fixes : le bloc se centre */
  .field--message textarea { height: 360px; }
}

/* Notre cabinet, tablette : les photos (fondateur, pôle fiscal) prennent toute la hauteur du texte */
@media (min-width: 768px) and (max-width: 1023px) {
  .media-row--founder .media-row__grid,
  .media-row--fiscal .media-row__grid { align-items: stretch; }
  .media-row--founder .media-row__media,
  .media-row--fiscal .media-row__media { position: relative; }
  .media-row--founder .media-row__media img,
  .media-row--fiscal .media-row__media img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  /* Nos outils : les visuels prennent toute la hauteur du texte */
  .media-row--outline .media-row__media img { object-position: center; } /* photos : recadrage centré */
  /* Titres des photos : lignes choisies, taille réduite juste assez pour tenir
     dans la colonne (ligne la plus longue : 404px à 40px) */
  .media-row--outline .media-row__title { font-size: min(40px, calc((100vw - 122px) / 2 * 40 / 404)); line-height: 1.125; }
  .media-row--outline .media-row__line { display: block; white-space: nowrap; }
  /* Montages (Pennylane, Tiime) : recomposés en morceaux, chaque carte garde
     ses coins arrondis et son contour dégradé, son contenu est recadré à droite */
  .media-row__media:has(.media-row__parts) > img { display: none; }
  .media-row__parts { display: block; position: absolute; inset: 0; }
  .media-row__part { position: absolute; background-repeat: no-repeat; }
  .media-row__part--logo { background-size: contain; background-position: center; }
  .media-row__part--card { padding: 2px; border-radius: 24px; overflow: hidden; background-size: cover; background-position: left top; background-origin: content-box; background-clip: content-box; }
  .media-row__part--card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: linear-gradient(#a3f2e6, #afc1e3); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
  .media-row--tool .media-row__grid { align-items: stretch; }
  .media-row--tool .media-row__media { position: relative; }
  .media-row--tool .media-row__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; } /* recadré à droite : logo et badge restent entiers */
  .pole { padding-bottom: 80px; }
  /* Conseil et accompagnement : illustration remontée pour que la bulle bleue
     de gauche se place entre le texte et le bouton */
  /* Illustrations du hero décollées du bord droit (marge du contenu) ; leur bord
     gauche ne bouge pas, pour ne pas se rapprocher du texte */
  .page-hero__image { right: var(--side-inset); width: calc(52% - var(--side-inset)); }
  .service-page--conseil-accompagnement .page-hero { --hero-anchor: 0.207; }
  /* Création d'entreprise : la 1re bulle (en haut à gauche) placée entre le texte et le bouton */
  .service-page--creation-entreprise .page-hero { --hero-anchor: 0.141; }
  /* RSE : illustration un peu plus grande, la couronne
     (carte en forme de couronne, en haut à gauche) alignée sur le centre du bouton */
  .service-page--rse .page-hero { --hero-anchor: 0.171; --hero-anchor-on: button; }
  .service-page--rse .page-hero__image { width: calc(58% - var(--side-inset)); }
  /* Cafés | Hôtels | Restaurants : titre sur une ligne (il passe au-dessus de l'illustration, placée plus bas) */
  .service-page--cafe-hotels-restaurants .page-hero__title,
  .service-page--batiment-travaux .page-hero__title,
  .service-page--particuliers-investisseurs .page-hero__title { white-space: nowrap; }
  .service-page--cafe-hotels-restaurants .page-hero__image { width: calc(58% - var(--side-inset)); } /* illustration agrandie */
  /* Professions libérales : illustration nettement agrandie (passe derrière la zone vide sous le bouton) */
  .service-page--professions-liberales .page-hero__image { width: calc(70% - var(--side-inset)); }
  .service-page--professions-liberales .page-hero__content { z-index: 2; }
  /* Autres secteurs : illustration agrandie */
  .service-page--autres-secteurs .page-hero__image { width: calc(62% - var(--side-inset)); }
  .service-page--autres-secteurs .page-hero__content { z-index: 2; }
  /* Nos outils : illustration agrandie et remontée (son milieu entre le texte et le bouton) */
  .page-hero--outils { --hero-anchor: 0.5; }
  .page-hero--outils .page-hero__image { width: calc(56% - var(--side-inset)); }
  .page-hero--outils .page-hero__content { z-index: 2; }

  /* Contact : formulaire compact à droite (2 colonnes), intro à gauche avec
     l'illustration calée en bas, au niveau du bouton Envoyer */
  .contact__frame { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; padding-bottom: 40px; }
  .contact__intro { display: flex; flex-direction: column; align-items: flex-start; }
  .contact__intro .page-hero__logo { margin-bottom: 78px; }
  .contact__title { font-size: 26px; line-height: 32px; margin-bottom: 24px; }
  .contact__lead { font-size: 14px; line-height: 20px; margin-bottom: 0; }
  .contact__lead .br-tablet { display: inline; }
  .contact__illustration { width: 295px; margin-top: auto; padding-top: 40px; }
  .contact-form { margin-top: 82px; }
  .contact-form__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .field label { top: -8px; left: 14px; padding: 0 5px; font-size: 13px; line-height: 16px; }
  .field input, .field select, .field textarea { --notch-x: 14px; height: 40px; padding: 10px 16px 4px; font-size: 14px; }
  .field--select select { font-size: 13px; font-weight: 600; padding-top: 6px; background-position: right 16px center; }
  .field--message textarea { height: 270px; border-radius: 22px; padding-top: 16px; }
  .contact-form__footer { flex-direction: row; align-items: center; gap: 16px; margin-top: 20px; }
  .contact-form__consent { gap: 14px; font-size: 11px; line-height: 15px; }
  .contact-form__consent input { flex-basis: 18px; width: 18px; height: 18px; border-radius: 4px; }
  .contact-form__footer .btn--pill { flex: 0 0 auto; padding: 9px 20px; font-size: 12px; letter-spacing: 1.2px; }
  /* « Pourquoi choisir » (pages missions / secteurs) : texte et liste débordent un peu
     à droite (26px, avant l'illustration) et se répartissent mieux */
  .service-page .why:not(.why--reverse) .why__text,
  .service-page .why:not(.why--reverse) .why__list { width: calc(100% + 26px); max-width: none; }
  .service-page .why__text p { text-wrap: pretty; }
  .service-page .why__list li { text-wrap: balance; align-items: flex-start; }
  .service-page .why__list .hero__list-icon { margin-top: 5px; }
  /* « Galileo pour votre » sur une ligne (déborde légèrement dans l'espace avant l'illustration) */
  .why .section-head__title .nowrap-tablet { white-space: nowrap; }
  /* Accordéon des missions : 35/40px fermé, 44/47px ouvert */
  .accordion .faq-item .faq-item__question-text { font-size: 35px; line-height: 40px; }
  .accordion .faq-item.is-open .faq-item__question-text { font-size: 44px; line-height: 47px; }
  .accordion { border-left-width: 5px; }
  /* Cartes « Nos expertises » : titres en majuscules (toutes les pages) */
  #nos-missions .card-numbered__title { text-transform: uppercase; }
  /* Frise d'étapes */
  /* Tarifs (d'après la maquette tablette) : nom en capitales au-dessus du prix,
     prix en grand avec « € HT » plus petit, liste et phrase finale plus discrètes */
  /* Tarifs en tablette : carrousel qui déborde des deux côtés de l'écran ; la
     formule mise en avant est centrée au chargement (script dans main.js) */
  .pricing__grid { display: block; max-width: none; margin-inline: calc(50% - 50vw); padding: 30px 0; overflow: hidden; }
  .pricing__track { display: flex; gap: 24px; align-items: center; transition: transform 0.45s ease; touch-action: pan-y; user-select: none; cursor: grab; }
  .pricing__track:active { cursor: grabbing; }
  .pricing__card { flex: 0 0 340px; min-height: 400px; }
  /* La carte mise en avant est celle qui est centrée (.is-active, posée par le script) */
  .pricing__card.is-featured { margin-block: 0; min-height: 400px; border: 1.5px solid #91e4ff; box-shadow: none; }
  .pricing__card.is-active { min-height: 450px; border: 2.5px solid #00b0ea; box-shadow: 0 20px 40px -24px rgba(0, 176, 234, 0.45); }
  .pricing__card { transition: min-height 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
  .pricing__card { padding: 34px 32px 34px; }
  .pricing__icon { width: 36px; margin: 0 0 8px; }
  .pricing__name { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--color-primary); margin: 0 0 2px; }
  .pricing__price { font-size: 40px; line-height: 46px; font-weight: 800; margin: 0 0 26px; }
  .pricing__unit { font-size: 22px; font-weight: 800; }
  .pricing__items { gap: 14px; margin-bottom: 30px; }
  .pricing__items li { font-size: 12px; line-height: 17px; }
  .pricing__items .hero__list-icon { margin-top: 2px; }
  .pricing__tagline { font-size: 13px; line-height: 20px; }
  .timeline__title { font-size: 35px; line-height: 47px; white-space: nowrap; }
  /* Création d'entreprise : titres plus longs (« Diagnostic stratégique » = 381px
     à 35px) → taille réduite sur les tablettes étroites pour rester sur 2 lignes */
  .service-page--creation-entreprise .timeline__title { font-size: min(35px, calc((90vw - 96px) / 2 * 35 / 390)); }
  .timeline__text { font-size: 16px; line-height: 26px; letter-spacing: 0.4px; }
  /* FAQ (toutes les pages, accueil compris) : 30/35px fermée, 40/47px ouverte */
  body .section--faq .faq-item .faq-item__question-text { font-size: 30px; line-height: 35px; }
  body .section--faq .faq-item.is-open .faq-item__question-text { font-size: 40px; line-height: 47px; }
  /* En-tête du carrousel (Nos expertises / Votre activité) : comme sur téléphone,
     libellé centré sur des flèches de 9 × 18px ; le padding bas ne change pas */
  #nos-missions .section-carousel-head, .service-page #votre-activite .section-carousel-head { align-items: center; }
  #nos-missions .section-carousel-head__label, .service-page #votre-activite .section-carousel-head__label { line-height: 18px; }
  #nos-missions .carousel-arrows, .service-page #votre-activite .carousel-arrows { gap: 24px; align-items: center; }
  #nos-missions .carousel-arrow, .service-page #votre-activite .carousel-arrow { width: 9px; height: 18px; padding: 0; font-size: 0; background: no-repeat center / 9px 18px; }
  #nos-missions .carousel-arrow--prev, .service-page #votre-activite .carousel-arrow--prev { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='18' viewBox='0 0 9 18'%3E%3Cpath d='M8 1 L1 9 L8 17' fill='none' stroke='%2300b0ea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  #nos-missions .carousel-arrow--next, .service-page #votre-activite .carousel-arrow--next { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='18' viewBox='0 0 9 18'%3E%3Cpath d='M1 1 L8 9 L1 17' fill='none' stroke='%2300b0ea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  /* Accroche : 60/65px, largeur fixe pour que le découpage soit le même
     sur toutes les tablettes (Audit : 4 lignes) */
  .statement__inner { gap: 20px; }
  .statement__mark { flex: 0 0 88px; width: 88px; height: 97px; }
  /* en majuscules les lignes sont plus larges : taille réduite sur les tablettes étroites */
  .statement__text { font-size: min(60px, 6.4vw); line-height: 1.08; width: 620px; max-width: 100%; }
  /* Accroche aux retours à la ligne imposés (ex. Audit) : chaque ligne reste entière */
  .section--accordion .section-head__title { font-size: 40px; line-height: 55px; }
  /* Titre aux lignes imposées (Audit) : 40px, réduit sur les tablettes
     étroites pour que « Nos missions en audit et commissariat » tienne */
  .section-head--nowrap .section-head__title { white-space: nowrap; font-size: min(40px, calc(90vw * 40 / var(--tw, 760))); }
  /* Accroches : retours à la ligne de la maquette, lignes entières (comme Audit).
     RSE garde un retour à la ligne naturel (ses lignes sont trop longues). */
  /* Accroche centrée dans la page : le bloc texte prend la largeur de son contenu */
  .statement__text { width: fit-content; max-width: 620px; }
  .service-page .statement:not(.statement--lines-wrap) .statement__text { width: auto; max-width: none; flex: 0 0 auto; white-space: nowrap; }
  .service-page .statement:not(.statement--lines-wrap):not(.statement--lines-tablet) .statement__text br:not(.br-phone) { display: inline; }
  .statement--lines-tablet .statement__text { width: auto; white-space: nowrap; }
  .statement--lines-tablet .statement__text br.br-keep { display: inline; }
  .statement__text br.br-all { display: inline; }
  br.br-tablet { display: inline; }
  /* Bloc « Un accompagnement complet » centré dans la page (texte toujours aligné à gauche) */
  #nos-missions.section--centered .section-intro { margin-inline: auto; }
}

/* Pages missions et secteurs, desktop : le hero occupe 90 % de la largeur
   de l'écran, le contenu des autres sections 80 %. */
@media (min-width: 1024px) {
  /* 5 % depuis le bord de l'écran, même au-delà de 1450px (le cadre du hero est centré) */
  .service-page .page-hero__content { margin-inline-start: calc(5vw - (100vw - min(100vw, 1450px)) / 2); }
  .service-page .container { width: 80%; max-width: none; }
  .service-page .card-numbered-grid,
  .service-page .card-photo-grid { margin-inline-start: 10vw; }
  /* Accroche centrée : lignes de la maquette entières (sinon le bloc prend toute la largeur à 1024px) */
  .service-page .statement__text { flex: 0 0 auto; white-space: nowrap; }
  /* Conseil et accompagnement : 431px entre la FAQ et le bloc final (80px de padding bas de la FAQ + 351px) */
  .service-page.service-page--conseil-accompagnement .cta-final { padding-top: 351px; }
  /* FAQ et accordéon : la liste occupe toute la largeur à 80 %, donc centrée dans la page */
  .service-page .faq-list { max-width: none; }
  /* 284px entre « Pourquoi choisir Galileo » et la FAQ (80px de padding bas du bloc précédent + 204px) */
  .service-page .section--faq { padding-top: 204px; }
  /* Bloc final : 70px entre l'illustration et le texte */
  .service-page .cta-final__grid { column-gap: 70px; }
  /* 238px entre la fin de la FAQ et le bloc final (80px de padding bas de la FAQ + 158px) */
  .service-page .cta-final { padding-top: 158px; padding-bottom: 74px; } /* + 40px de marge du footer = 114px sous le bloc final */
}

/* Section « Nos expertises » en desktop : 90 % de la largeur, sans limite
   de 1400px (toutes les pages). */
@media (min-width: 1024px) {
  #nos-missions .container,
  .service-page #nos-missions .container { width: 90%; max-width: 90%; }
  #nos-missions .card-numbered-grid,
  .service-page #nos-missions .card-numbered-grid { margin-inline-start: 5vw; }
}

/* Petits écrans desktop (1024–1199px) : accroche un peu réduite pour que ses
   lignes entières tiennent dans l'écran */
@media (min-width: 1024px) and (max-width: 1199px) {
  .service-page .statement__text { font-size: min(60px, 5.5vw); line-height: 0.95; }
}

/* Desktop : texte du hero sur 2 lignes équilibrées (toutes les pages).
   Les retours à la ligne de la maquette sont ignorés ; le bloc peut aller
   jusqu'à 620px, ce qui suffit pour tous les textes sauf les plus longs.
   À partir de 1300px : en dessous, le texte élargi passerait sur l'illustration. */
@media (min-width: 1300px) {
  .page-hero__content { max-width: 640px; }
  .page-hero__text { max-width: 620px; text-wrap: balance; }
  .page-hero__text .br-wide { display: none; }
  /* Textes courts (tiendraient sur 1 ligne) : on garde la coupure de la maquette */
  .service-page--examen-conformite-fiscale .page-hero__text .br-wide,
  .service-page--professions-liberales .page-hero__text .br-wide { display: inline; }
  /* Bâtiment : texte trop long pour 2 lignes ; on garde sa largeur d'origine pour ne pas toucher l'illustration */
  .service-page--batiment-travaux .page-hero__text { max-width: 520px; }
}
/* 1024–1299px : texte à sa largeur d'origine ; seule Création d'entreprise est
   rééquilibrée (sinon « création » resterait seul sur sa ligne) */
@media (min-width: 1024px) and (max-width: 1299px) {
  .service-page--creation-entreprise .page-hero__text .br-wide { display: none; }
  .service-page--creation-entreprise .page-hero__text { text-wrap: balance; }
}

/* Tarifs en desktop : la carte survolée prend la mise en avant (Booster par défaut) */
@media (min-width: 1024px) {
  .pricing__card { transition: margin 0.25s ease, padding 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
  .pricing__grid:hover .pricing__card.is-featured:not(:hover) { border: 1.5px solid #91e4ff; margin-block: 0; padding-top: 48px; padding-bottom: 44px; box-shadow: none; }
  .pricing__grid .pricing__card:hover { border: 2.5px solid #00b0ea; margin-block: -24px; padding-top: 72px; padding-bottom: 68px; box-shadow: 0 20px 40px -24px rgba(0, 176, 234, 0.45); }
}

/* Tarifs sur téléphone : même carrousel qu'en tablette (cartes un peu plus étroites) */
@media (max-width: 767px) {
  /* Cartes de 278px de haut : contenu resserré pour tenir */
  .pricing__grid { display: block; max-width: none; margin-inline: calc(50% - 50vw); padding: 30px 0; overflow: hidden; }
  .pricing__track { display: flex; gap: 16px; align-items: center; transition: transform 0.45s ease; touch-action: pan-y; user-select: none; cursor: grab; }
  .pricing__track:active { cursor: grabbing; }
  .pricing__card { flex: 0 0 210px; min-height: 278px; height: 278px; } /* 210 × 278 */
  /* La carte mise en avant est celle qui est centrée (.is-active, posée par le script) */
  .pricing__card.is-featured { margin-block: 0; min-height: 278px; border: 1.5px solid #91e4ff; box-shadow: none; }
  .pricing__card.is-active { min-height: 278px; border: 2.5px solid #00b0ea; box-shadow: 0 20px 40px -24px rgba(0, 176, 234, 0.45); }
  .pricing__card { transition: min-height 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
  .pricing__card { padding: 16px 16px 16px; }
  .pricing__card.is-featured { padding-top: 16px; padding-bottom: 16px; }
  .pricing__icon { width: 24px; margin: 0 0 2px; }
  .pricing__name { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--color-primary); margin: 0 0 2px; }
  .pricing__price { font-size: 30px; line-height: 34px; font-weight: 800; margin: 0 0 10px; }
  .pricing__unit { font-size: 16px; font-weight: 800; }
  .pricing__items { gap: 5px; margin-bottom: 10px; }
  .pricing__items li { font-size: 11px; line-height: 15px; gap: 6px; }
  .pricing__items .hero__list-icon { margin-top: 2px; }
  .pricing__tagline { font-size: 12px; line-height: 17px; }
}

/* Examen de conformité fiscale : tableau « Sans / Avec l'ECF » en version
   téléphone = deux blocs empilés (le tableau reste en desktop et tablette) */
.data-cards { display: none; }
@media (max-width: 767px) {
  .data-table { display: none; }
  .data-cards { display: flex; flex-direction: column; gap: 28px; margin: 16px 0 8px; }
  .data-cards__group { background: #fff; border: 1px solid #eaeaea; }
  .accordion__content .data-cards__head { margin: 0; padding: 12px; text-align: center; font-size: 11px; line-height: 16px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #003e68; }
  .data-cards__group--sans .data-cards__head { background: #b9e4f0; }
  .data-cards__group--avec .data-cards__head { background: #01dab8; }
  .data-cards__row { border-top: 1px solid #eaeaea; padding: 0 16px 16px; text-align: center; line-height: 1; }
  .data-cards__label { display: inline-block; margin-top: -1px; padding: 3px 14px; background: #91e4ff; border-radius: 0 0 8px 8px; font-size: 8px; line-height: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: #003e68; }
  .accordion__content .data-cards__value { margin: 10px 0 0; font-size: 12px; line-height: 16px; color: #003e68; }
  .accordion__content .data-cards__value small { font-size: 10px; line-height: 14px; }
  /* Examen de conformité fiscale : 148px entre l'accordéon et la section suivante (116 + 32) */
  .service-page--examen-conformite-fiscale .section--accordion { padding-bottom: 116px; }
  /* … et 48px entre le titre de « Pourquoi choisir » et son illustration */
  .service-page--examen-conformite-fiscale .why .section-head { margin-bottom: 48px; }
}

/* ==========================================================================
   Mentions légales
   ========================================================================== */
.legal { padding-block: 40px 100px; }
.legal__inner { max-width: 960px; }
.legal__block {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 24px;
}
.legal__block h2 { font-size: var(--font-h3); color: var(--color-secondary); margin-bottom: 0.7em; }
.legal__block h3 { font-size: 1.15rem; color: var(--color-primary); margin: 1.6em 0 0.6em; }
.legal__block h2 + h3 { margin-top: 0; }
.legal__block p { margin: 0 0 1em; color: var(--color-text-muted); }
.legal__block p:last-child { margin-bottom: 0; }
.legal__block strong { color: var(--color-primary); }
.legal__block a { color: var(--color-secondary); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal__block a:hover { color: var(--color-accent-cyan); }
.legal__list { margin: 0 0 1em; }
.legal__list:last-child { margin-bottom: 0; }
.legal__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 0.5em;
  color: var(--color-text-muted);
}
.legal__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
.legal__todo {
  display: inline-block;
  padding: 0 8px;
  border-radius: 6px;
  background: #fff3cd;
  color: #8a5a00;
  font-size: var(--font-small);
  font-weight: 600;
}
@media (max-width: 767px) {
  .legal { padding-block: 24px 64px; }
  .legal__block { padding: 24px 20px; border-radius: 16px; }
}

/* ==========================================================================
   Résultats de recherche (search.php)
   ========================================================================== */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.search-results__form {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}
.search-results__form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 14px 22px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--bg-white);
  font-size: 1rem;
  color: var(--color-primary);
  cursor: text;
}
.search-results__form input[type="search"]:focus { outline: 2px solid var(--color-accent-cyan); outline-offset: 1px; }
.search-results__list { list-style: none; margin: 0; padding: 0; }
.search-results__item h2 { margin-bottom: 0.4em; }
.search-results__item h2 a { color: inherit; text-decoration: none; }
.search-results__item h2 a:hover { color: var(--color-accent-cyan); }
.search-results__item mark { background: rgba(1, 218, 184, 0.25); color: var(--color-primary); padding: 0 2px; border-radius: 3px; }
.search-results__url { font-size: var(--font-small); }
@media (max-width: 767px) {
  .search-results__form { flex-direction: column; }
}
