/* ============================================================
   Scriptonic, theme.css
   Styles propres au site web Scriptonic.fr.
   Les variables, reset, boutons et composants partagés
   viennent de base.css qui est chargé en premier.
   ============================================================ */


/* ─────────────────────────────────────────────────────────────
   1. HEADER DU SITE
   ───────────────────────────────────────────────────────────── */

.site-header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  position: relative;
  z-index: 100;
}

.site-header__container {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition-fast);
  flex-shrink: 0;
}

.site-header__brand:hover {
  opacity: 0.85;
}

.site-header__logo {
  display: block;
  height: 40px;
  width: auto;
}

.site-header__nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-header__nav > a {
  color: var(--light);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.site-header__nav > a:hover {
  color: var(--primary);
}

/* CTA bouton dans le header */
.site-header__cta {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* Dropdown */
.site-header__dropdown {
  position: relative;
}

.site-header__dropdown-toggle {
  background: none;
  border: none;
  color: var(--light);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  font-family: inherit;
  transition: color var(--transition-fast);
}

.site-header__dropdown-toggle:hover {
  color: var(--primary);
}

.site-header__arrow {
  font-size: 0.6rem;
  transition: transform var(--transition-fast);
}

.site-header__dropdown--open .site-header__arrow {
  transform: rotate(180deg);
}

.site-header__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0;
  min-width: 220px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.site-header__dropdown--open .site-header__dropdown-menu {
  display: block;
}

.site-header__dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--light);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.site-header__dropdown-menu a:hover {
  background: var(--surface-hover);
  color: var(--primary);
}

/* Hamburger mobile */
.site-header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.site-header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--light);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.site-header__hamburger--open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.site-header__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.site-header__hamburger--open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================
   2. Hero de la page d'accueil (video de fond)
   ============================================ */

.home-hero {
  position: relative;
  background-color: var(--dark);
  overflow: hidden;
}

.home-hero--with-video {
  min-height: 800px;
}

.home-hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.home-hero__overlay {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.55);
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.home-hero__inner {
  max-width: 800px;
  text-align: center;
}

.home-hero__tagline {
  font-size: 1.125rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.home-hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--light);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.home-hero__subtitle {
  font-size: 1.25rem;
  color: var(--light);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.home-hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .home-hero--with-video,
  .home-hero__overlay {
    min-height: 500px;
  }

  .home-hero__title {
    font-size: 2rem;
  }

  .home-hero__subtitle {
    font-size: 1rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   3. COMPOSANTS DE LA PAGE D'ACCUEIL
   ───────────────────────────────────────────────────────────── */

/* Aiguillage par profil */

.home-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.home-profiles__link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--light);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.home-profiles__link:hover {
  border-color: var(--primary-border);
  background-color: var(--surface-hover);
}

/* Chiffres clés */

.home-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  text-align: center;
  padding: 1rem 0;
}

.home-stats__number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.home-stats__label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Section présentation (texte + image côte à côte) */

.home-presentation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.home-presentation__image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Deux expertises */

.home-expertises {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.home-expertises__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.home-expertises__card:hover {
  border-color: var(--primary-border);
}

.home-expertises__image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.home-expertises__card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--light);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding: 0 2rem;
}

.home-expertises__card p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  padding: 0 2rem;
}

.home-expertises__card .btn {
  margin: 0 2rem 2rem;
}

/* Cartes vidéo showreel */

.video-card {
  margin-bottom: 0.5rem;
}

.video-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--light);
  margin: 1rem 0 0.5rem;
}

.video-card__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Parcours client en 5 étapes */

.home-process {
  margin: 2rem 0;
}

.home-process__step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.home-process__step--last {
  border-bottom: none;
}

.home-process__number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.home-process__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--light);
  margin: 0 0 0.5rem;
}

.home-process__text {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.home-process__text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.home-process__text a:hover {
  color: var(--primary-dark);
}

/* Témoignages home (grille 3 colonnes) */

.home-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.home-testimonials__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.home-testimonials__google {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.home-testimonials__google:hover {
  color: var(--primary-dark);
}

/* Page témoignages (grille 2 colonnes) */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.page-section--surface .testimonials-grid .testimonial {
  background: var(--dark);
}

.testimonials-google {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-top: 1rem;
}

.testimonials-google:hover {
  color: var(--primary-dark);
}

.page-section .btn-primary {
  color: var(--dark);
}

/* Formulaire de contact */

.contact-form {
  margin-top: 2rem;
}

.contact-form__field {
  margin-bottom: 1.5rem;
}

.contact-form__field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 0.5rem;
}

.contact-form__optional {
  font-weight: 400;
  color: var(--muted);
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--light);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--primary-border);
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: var(--muted);
}

.contact-form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form__reassurance {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.contact-form .btn {
  width: 100%;
}

/* Coordonnées */

.contact-map {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.contact-map__image {
  width: 100%;
  height: auto;
  display: block;
}

.contact-map__pin {
  position: absolute;
  top: 59%;
  left: 49%;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border: 2px solid var(--dark);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px var(--primary-glow), 0 0 12px var(--primary-glow);
  z-index: 2;
}

.contact-map__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(251, 186, 50, 0);
  transition: background var(--transition-normal);
  z-index: 1;
}

.contact-map:hover .contact-map__overlay {
  background: rgba(251, 186, 50, 0.12);
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-info__item strong {
  display: block;
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.contact-info__item p {
  font-size: 1rem;
  color: var(--light);
  line-height: 1.6;
  margin: 0;
}

.contact-info__item a {
  color: var(--light);
  text-decoration: none;
}

.contact-info__item a:hover {
  color: var(--primary);
}

/* Page À propos */

.about-portrait {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Responsive composants home */

@media (max-width: 768px) {
  .home-profiles {
    flex-direction: column;
    align-items: stretch;
  }

  .home-profiles__link {
    text-align: center;
  }

  .home-stats {
    flex-direction: column;
    gap: 2rem;
  }

  .home-presentation {
    grid-template-columns: 1fr;
  }

  .home-expertises {
    grid-template-columns: 1fr;
  }

  .home-process__step {
    gap: 1rem;
  }

  .home-process__number {
    width: 30px;
    height: 30px;
    font-size: 0.875rem;
  }

  .home-testimonials {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .home-testimonials__footer {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }
}


/* ─────────────────────────────────────────────────────────────
   4. FOOTER DU SITE
   ───────────────────────────────────────────────────────────── */

.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.site-footer__main {
  padding: 3rem 1.5rem 2rem;
}

.site-footer__container {
  max-width: 1040px;
  margin: 0 auto;
}

.site-footer__main .site-footer__container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

/* Colonne marque */
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer__logo {
  display: block;
  height: 33px;
  width: auto;
}

.site-footer__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.site-footer__social {
  display: flex;
  gap: 0.75rem;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.site-footer__social a:hover {
  color: var(--primary);
  border-color: var(--primary-border);
}

.site-footer__social svg {
  width: 16px;
  height: 16px;
}

/* Colonnes nav */
.site-footer__col {
  display: flex;
  flex-direction: column;
}

.site-footer__heading {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

.site-footer__heading:not(:first-child) {
  margin-top: 1.5rem;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__nav a {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__nav a:hover {
  color: var(--primary);
}

/* Colonne contact */
.site-footer__contact {
  margin-bottom: 1.25rem;
}

.site-footer__company {
  font-weight: 600;
  color: var(--light);
  margin: 0 0 0.25rem;
}

.site-footer__contact p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 0.25rem;
}

.site-footer__contact a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__contact a:hover {
  color: var(--primary);
}

.site-footer__cta {
  font-size: 0.875rem;
  padding: 0.6rem 1.5rem;
  border-radius: 20px;
  text-align: center;
  display: inline-block;
  text-decoration: none;
}

/* Barre legale */
.site-footer__bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.site-footer__bottom .site-footer__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer__copyright {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
}

.site-footer__legal {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-footer__legal a {
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__legal a:hover {
  color: var(--primary);
}


/* ─────────────────────────────────────────────────────────────
   5. RESPONSIVE
   ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  /* Header mobile */
  .site-header__hamburger {
    display: flex;
  }

  .site-header__nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    align-items: stretch;
    z-index: 200;
  }

  .site-header__nav--open {
    display: flex;
  }

  .site-header__nav > a {
    padding: 0.5rem 0;
    font-size: 1rem;
  }

  .site-header__dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    margin-top: 0;
    min-width: 0;
  }

  .site-header__cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  /* Footer mobile */
  .site-footer__main .site-footer__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer__bottom .site-footer__container {
    flex-direction: column;
    text-align: center;
  }

  .site-footer__legal {
    justify-content: center;
  }
}


/* ─────────────────────────────────────────────────────────────
   6. PAGES SECTORIELLES (cf. QA-CSS S2B.10)
   Modèle : <main> pleine largeur, sections avec fond propre,
   contenu interne contraint (1040px défaut ou 720px narrow).
   ───────────────────────────────────────────────────────────── */

/* Hero sectoriel */

.page-hero {
  background-color: var(--dark);
  padding: 4rem 1.5rem;
}

.page-hero--with-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
}

.page-hero--with-image .page-hero__overlay {
  background: rgba(0, 0, 0, 0.55);
  padding: 1.5rem;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}

.page-hero__inner {
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

.page-hero__title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--light);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.page-hero__tagline {
  font-size: 1.5rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.page-hero:not(.page-hero--with-image) .page-hero__overlay {
  /* Pas de voile si pas d'image */
}

@media (max-width: 768px) {
  .page-hero {
    padding: 2.5rem 1rem;
  }

  .page-hero--with-image .page-hero__overlay {
    min-height: 280px;
    padding: 1rem;
  }

  .page-hero__title {
    font-size: 2.25rem;
  }

  .page-hero__tagline {
    font-size: 1rem;
  }
}

/* Sections de contenu */

.page-section {
  background-color: var(--dark);
  padding: 2rem 1.5rem;
}

.page-section--surface {
  background-color: var(--surface);
}

.page-section__inner {
  max-width: 1040px;
  margin: 0 auto;
}

.page-section__inner--narrow {
  max-width: 720px;
  font-size: 1.25rem;
}

.page-section__inner--with-aside {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.page-section__inner--with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Contenu éditorial dans les sections sectorielles.
   Scope .page-section__inner pour ne pas interférer
   avec .page__content (pages classiques). */

.page-section__inner h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.page-section__inner h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--light);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-section__inner p:not([class]) {
  font-size: 1rem;
  color: var(--light);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.page-section__inner--narrow p:not([class]) {
  font-size: inherit;
}

.page-section__inner ul,
.page-section__inner ol {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.page-section__inner li {
  font-size: 1rem;
  color: var(--light);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.page-section__inner ul > li::before {
  content: "✓";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.page-section__inner ol {
  counter-reset: ol-counter;
}

.page-section__inner ol > li {
  counter-increment: ol-counter;
}

.page-section__inner ol > li::before {
  content: counter(ol-counter) ".";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: 600;
}

.page-section__inner a:not([class]) {
  color: var(--primary);
  text-decoration: underline;
}

.page-section__inner a:not([class]):hover {
  color: var(--primary-dark);
}

/* Vidéos Vimeo dans les sections */

.page-section__inner figure {
  margin: 2rem 0;
}

.page-section__inner iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 8px;
}

.page-section__inner figcaption {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: center;
  line-height: 1.5;
}

/* Grille pour deux vidéos côte à côte */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

/* Layout avec témoignage latéral (ratio 3fr/2fr, ~40% aside) */
.page-section__inner--with-testimonial {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}

/* Éléments pleine largeur dans la grille testimonial */
.page-section__inner--with-testimonial > .video-grid {
  grid-column: 1 / -1;
  margin-top: -4rem;
  margin-bottom: 0;
}

/* ── Encart témoignage ── */

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial__stars {
  color: var(--primary);
  font-size: 1.125rem;
  letter-spacing: 0.15em;
  line-height: 1;
}

.testimonial__text {
  font-size: 0.9rem;
  color: var(--light);
  line-height: 1.7;
  font-style: italic;
  margin: 0;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.testimonial__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.testimonial__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonial__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--light);
  margin: 0;
}

.testimonial__role {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 768px) {
  .page-section {
    padding: 1.5rem 1rem;
  }

  .page-section__inner--with-aside {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-section__inner--with-image {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-section__inner--with-testimonial {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}


/* ─────────────────────────────────────────────────────────────
   7. PAGES CLASSIQUES
   ───────────────────────────────────────────────────────────── */

.page {
  padding: 2rem 0 3rem;
  max-width: 760px;
  margin: 0 auto;
}

.page--wide {
  max-width: 1040px;
}

.page__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--light);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

p.page__tagline {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.6;
}

.page__content {
  font-size: 1rem;
  color: var(--light);
  line-height: 1.7;
}

.page__content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page__content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--light);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page__content p {
  margin-bottom: 1.25rem;
}

.page__content ul,
.page__content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.page__content li {
  margin-bottom: 0.5rem;
}

.page__content a {
  color: var(--primary);
  text-decoration: underline;
}

.page__content a:hover {
  color: var(--primary-dark);
}

/* Boutons CTA dans les pages classiques.
   Neutralise .page__content a qui écraserait la couleur
   du texte et ajouterait un underline indésirable. */
.page__content .btn {
  text-decoration: none;
}

.page__content .btn-primary {
  color: var(--dark);
}

/* CTA de fin de page classique.
   Rendu conditionnellement par le template via cta_contact. */
.page__cta {
  text-align: center;
  margin-top: 2rem;
}

/* Liste d'articles sur la page auteur */

.author-articles {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

.author-articles li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.author-articles li:last-child {
  border-bottom: none;
}

.author-articles a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.author-articles a:hover {
  color: var(--primary-dark);
}

.author-articles__date {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.25rem;
}


/* ─────────────────────────────────────────────────────────────
   8. LISTING DU BLOG
   ───────────────────────────────────────────────────────────── */

.list-header {
  padding: 2rem 0 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.list-header__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 0.75rem;
}

.list-header__intro {
  color: var(--muted);
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 3rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.post-card:hover {
  border-color: var(--primary-border);
  background-color: var(--surface-hover);
}

.post-card__link {
  display: block;
  padding: 1.5rem;
  color: inherit;
  text-decoration: none;
}

.post-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.post-card__date {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.post-card__summary {
  color: var(--muted);
  line-height: 1.6;
}

.post-list__empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 0;
  font-style: italic;
}


/* ─────────────────────────────────────────────────────────────
   9. ARTICLE DE BLOG INDIVIDUEL
   ───────────────────────────────────────────────────────────── */

.post {
  padding: 2rem 0 3rem;
  max-width: 760px;
  margin: 0 auto;
}

.post__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.post__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--light);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.post__meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--muted);
}

.post__content {
  font-size: 1rem;
  color: var(--light);
  line-height: 1.7;
}

.post__content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post__content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--light);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post__content p {
  margin-bottom: 1.25rem;
}

.post__content ul,
.post__content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post__content li {
  margin-bottom: 0.5rem;
}

.post__content blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}

.post__content code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  font-size: 0.9em;
  color: var(--primary);
}

.post__content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post__content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--light);
}

.post__content a {
  color: var(--primary);
  text-decoration: underline;
}

.post__content a:hover {
  color: var(--primary-dark);
}

.post__footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.post__back {
  color: var(--primary);
  font-size: 0.875rem;
  text-decoration: none;
}

.post__back:hover {
  color: var(--primary-dark);
}

/* Images illustratives dans le corps d'un article.
   Goldmark génère des <img> nus sans classe. */
.post__content img {
  display: block;
  max-width: 70%;
  height: auto;
  margin: 2rem auto;
  border-radius: 8px;
}

/* Boutons CTA dans les articles.
   Neutralise .post__content a qui écraserait la couleur
   du texte et ajouterait un underline indésirable. */
.post__content .btn {
  text-decoration: none;
}

.post__content .btn-primary {
  color: var(--dark);
}

/* Témoignage dans un article.
   Neutralise les styles éditoriaux hérités de .post__content
   (margin sur p, underline sur a, couleur). */
.post__content .testimonial p {
  margin-bottom: 0;
}

.post__content .testimonial a {
  text-decoration: none;
}

/* Parcours outils dans un article.
   Réduit la largeur (~60% du conteneur 760px) et centre.
   Neutralise l'underline hérité de .post__content a. */
.post__content .tools-funnel {
  max-width: 440px;
  margin: 2rem auto;
}

.post__content .tools-funnel a {
  text-decoration: none;
}


/* ============================================================
   GRILLE RÉALISATIONS
   ============================================================ */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.case-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-3px);
}

.case-card figure {
  margin: 0;
}

.case-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.case-card h3 {
  margin: 1rem 1rem 0.25rem;
  font-size: 1rem;
}

.case-card p {
  margin: 0 1rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}


/* ============================================================
   LISTING BLOG
   ============================================================ */

.blog-listing {
  padding: 3rem 1.5rem;
}

.blog-listing__container {
  max-width: 1040px;
  margin: 0 auto;
}

.blog-listing__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 0.5rem;
}

.blog-listing__intro {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.blog-listing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.blog-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-2px);
}

.blog-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-card__body {
  padding: 1.25rem;
}

.blog-card__date {
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.5rem;
}

.blog-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--light);
  line-height: 1.4;
  margin: 0 0 0.5rem;
}

.blog-card__summary {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.blog-listing__empty {
  font-size: 1rem;
  color: var(--muted);
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0;
}

@media (max-width: 768px) {
  .blog-listing__grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   GRILLE LOGOS CLIENTS
   ============================================================ */

.client-logos {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 30px;
  align-items: center;
  justify-items: center;
  margin: 2rem 0;
}

.client-logos img {
  width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: opacity var(--transition-fast), filter var(--transition-fast);
}

.client-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}


/* ============================================================
   FAQ (site)
   Réutilise les classes .faq-item, .faq-question, .faq-answer
   de base.css. Seul le titre H2 et le conteneur sont spécifiques.
   ============================================================ */

.page-faq__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

/* Reset font-size dans les sections narrow pour que la FAQ
   garde ses tailles base.css (1rem) et ne herite pas du 1.25rem */
.page-section__inner--narrow .faq-question {
  font-size: 1rem;
}

.page-section__inner--narrow .faq-answer p {
  font-size: 1rem;
}

/* Texte et liens dans les réponses FAQ.
   Le texte est en --light pour la lisibilité sur fond sombre.
   Les liens suivent la convention du site (--primary, underline). */
.faq-answer p {
  color: var(--light);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: underline;
}

.faq-answer a:hover {
  color: var(--primary-dark);
}


/* ============================================================
   ENCART SOURCE EXTERNE
   Encart compact renvoyant vers une source tierce (etude,
   rapport, statistiques) pour credibiliser le contenu.
   Utilise cote a cote avec une video via .video-source-row,
   ou seul en remplacement du temoignage sur certaines pages.
   ============================================================ */

/* Grille video + source-box cote a cote */
.video-source-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 0;
  align-items: start;
}

.video-source-row figure {
  margin: 0;
}

/* Pleine largeur quand enfant direct de with-aside */
.page-section__inner--with-aside > .video-source-row,
.page-section__inner--with-aside > .video-grid {
  grid-column: 1 / -1;
}

.source-box {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.source-box__image {
  display: block;
  max-width: 50%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.source-box__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--light);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.source-box__text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.source-box__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.source-box__link:hover {
  color: var(--primary-dark);
}

@media (max-width: 768px) {
  .video-source-row {
    grid-template-columns: 1fr;
  }
}


/* ─────────────────────────────────────────────────────────────
   BANDEAU COOKIES (RGPD)
   ───────────────────────────────────────────────────────────── */

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  z-index: 300;
  align-items: center;
  justify-content: center;
}

.cookie-banner__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
  min-width: 280px;
}

.cookie-banner__text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-size: 0.8rem;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
}

.cookie-blocked-notice {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
  margin: 0;
}

@media (max-width: 768px) {
  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner__actions {
    justify-content: center;
  }
}


/* ============================================================
   PARCOURS OUTILS
   Encart aside affichant le funnel en 4 etapes + 2 satellites.
   Remplace l'ancien encart mono-outil (19 avril 2026).
   ============================================================ */

.tools-funnel {
  padding: 1.5rem;
  background: var(--dark);
  border: 1px solid var(--primary);
  border-radius: 10px;
}

.tools-funnel__label {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.25rem;
}

.tools-funnel__title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--light);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.tools-funnel__intro {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.tools-funnel__section-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

/* Etapes du funnel */

.tools-funnel__step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.tools-funnel__step:hover {
  background: var(--surface);
  margin: 0 -0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.tools-funnel__step--last {
  border-bottom: none;
}

.tools-funnel__number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.tools-funnel__step-content {
  flex: 1;
  min-width: 0;
}

.tools-funnel__step-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--light);
}

.tools-funnel__step-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1px;
}

.tools-funnel__action {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Outils satellites */

.tools-funnel__satellites {
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.tools-funnel__satellite-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.tools-funnel__satellite {
  display: block;
  padding: 0.625rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color var(--transition-fast);
}

.tools-funnel__satellite:hover {
  border-color: var(--primary-border);
}

.tools-funnel__satellite-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 2px;
}

.tools-funnel__satellite-desc {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ============================================================
   GRILLE OUTILS (page Services)
   4 outils funnel en première ligne, 2 satellites centrés en dessous
   ============================================================ */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.tools-grid__satellites {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  grid-column: 1 / -1;
  max-width: 50%;
  margin: 0 auto;
}

.tool-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.tool-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-3px);
}

.tool-card .tool-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--light);
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.tool-card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.tool-card__icon svg {
  width: 100%;
  height: 100%;
}

.tool-card__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--light);
  flex: 1;
  margin-bottom: 1.25rem;
}

.tool-card .btn {
  margin-top: auto;
  text-align: center;
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid__satellites {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tools-grid__satellites {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 768px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .client-logos {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
}
