/* =========================================================
   AKAR-AKAR — PAGE D'ACCUEIL
   Hauteur du hero, palette et police : voir assets/css/base.css.
   ========================================================= */

.akar-home-wrapper {
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

/* --- Hero (diaporama plein écran, plus grand que les autres pages) ---
   Contenu texte calé en bas à gauche, navigation (points) en bas à droite. */
.akar-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.akar-hero__slides,
.akar-hero__slide,
.akar-hero__overlay {
  position: absolute;
  inset: 0;
}

.akar-hero__slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease, transform 7s ease;
}

.akar-hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Voile ciblé sur la zone du texte (bas de l'image, où le contenu est calé),
   pas sur toute la photo (2026-09-23 - cf. capture d'écran utilisateur :
   texte illisible sur fond clair avec le seul text-shadow). */
.akar-hero__overlay {
  background: linear-gradient(180deg, rgba(1, 18, 52, 0) 10%, rgba(1, 18, 52, 0.3) 45%, rgba(1, 18, 52, 0.68) 100%);
  z-index: 1;
}

.akar-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 20px 110px;
  text-align: center;
}

.akar-hero__content p {
  margin: 0 auto;
  max-width: 760px;
  color: #fff;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.7;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 4px 22px rgba(0, 0, 0, 0.45);
}

/* Points de navigation du diaporama, en bas à droite */
.akar-hero__nav {
  position: absolute;
  right: 24px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.akar-hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.akar-hero__dot:hover {
  background: rgba(255, 255, 255, 0.75);
}

.akar-hero__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.25);
}

/* --- Hero, mode "circuits" : chaque diapositive porte son propre contenu --- */
.akar-hero--circuits .akar-hero__slide {
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.akar-hero--circuits .akar-hero__slide.is-active {
  pointer-events: auto;
}

/* Voile ciblé sur la zone du texte (bas de l'image), agrandi le 2026-09-23
   (retour utilisateur : cadre trop petit) pour bien couvrir tout le bloc
   eyebrow/titre/extrait/bouton, pas seulement les dernières lignes. */
.akar-hero__slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 18, 52, 0) 8%, rgba(1, 18, 52, 0.28) 42%, rgba(1, 18, 52, 0.7) 100%);
}

.akar-hero__slide-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 120px;
  color: #fff;
  text-align: center;
}

.akar-hero__slide-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 14px rgba(0, 0, 0, 0.4);
}

.akar-hero__slide-title {
  margin: 0 0 20px;
  font-size: clamp(30px, 3.8vw, 46px);
}

.akar-hero__slide-title a {
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 4px 24px rgba(0, 0, 0, 0.45);
  transition: color 0.2s ease;
}

.akar-hero__slide-title a:hover {
  color: var(--color-accent);
}

.akar-hero__slide-excerpt {
  max-width: 640px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55), 0 2px 16px rgba(0, 0, 0, 0.4);
}

.akar-hero__slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  background: var(--color-primary); /* CTA : bleu, pas l'orange (2026-09-23) */
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.akar-hero__slide-btn:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .akar-hero__slide-inner {
    padding-bottom: 50px;
  }
}

/* --- Circuits --- */
.akar-circuits {
  padding: 120px 0; /* +espace (2026-09-23, retour utilisateur : sections trop compactes) */
}

.akar-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.akar-line,
.akar-section-label span:first-child {
  display: block;
  width: 40px;
  height: 2px;
  margin: 0 auto 15px;
  background: var(--color-accent);
}

.akar-section-header h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.akar-section-header p {
  max-width: 850px;
  margin: 20px auto 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-muted);
}

.akar-circuit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.akar-circuit-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.akar-circuit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.akar-circuit-thumb {
  overflow: hidden;
}

.akar-circuit-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.akar-circuit-card:hover .akar-circuit-thumb img {
  transform: scale(1.05);
}

.akar-circuit-info {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.akar-circuit-info h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.akar-circuit-info h3 a {
  color: var(--color-ink);
  text-decoration: none;
  transition: color 0.2s;
}

.akar-circuit-info h3 a:hover {
  color: var(--color-accent);
}

.akar-circuit-excerpt {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.akar-circuit-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.akar-circuit-link:hover {
  color: var(--color-accent);
}

/* --- Agence --- */
.akar-agency {
  padding: 130px 0; /* +espace (2026-09-23, retour utilisateur : sections trop compactes) */
  background: var(--color-ink);
  color: #fff;
}

.akar-agency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.akar-agency-visual {
  position: relative;
}

.akar-agency-visual > img {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.akar-agency-badge {
  position: absolute;
  right: -20px;
  bottom: -20px;
  padding: 20px 30px;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.akar-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 15px;
}

.akar-section-label span:first-child {
  margin: 0;
}

.akar-agency-content h2 {
  color: #fff;
  font-size: clamp(30px, 3.5vw, 40px);
}

.akar-agency-intro {
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.7;
}

.akar-why-list {
  display: grid;
  gap: 20px;
  margin-bottom: 35px;
}

.akar-why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.akar-why-icon img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: none; /* icône seule, sans pastille derrière (2026-09-23, demande utilisateur) */
  /* Icônes SVG chargées en <img> (pas de fill/currentColor possible) :
     repassées en blanc puisque cette section a un fond bleu foncé
     (2026-09-23, demande utilisateur - règle : icônes blanches sur fond
     bleu, bleues sur fond blanc). */
  filter: brightness(0) invert(1);
}

.akar-why-item h3 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 16px;
}

.akar-why-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.5;
}

.akar-agency-button {
  display: inline-block;
  padding: 14px 30px;
  background-color: var(--color-primary); /* CTA : bleu, pas l'orange (2026-09-23) */
  color: #fff;
  border-radius: var(--radius-pill);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s;
}

.akar-agency-button:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  color: #fff;
}

/* --- Newsletter --- */
.akar-newsletter {
  padding: 120px 0; /* +espace (2026-09-23, retour utilisateur : sections trop compactes) */
}

.akar-newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
}

.akar-newsletter-grid h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.akar-newsletter-grid p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-muted);
}

.akar-newsletter-form form.fluent_form_2 .ff-el-group {
  display: flex;
  gap: 10px;
  margin-bottom: 0 !important;
}

.akar-newsletter-form form.fluent_form_2 input[type="email"] {
  flex-grow: 1;
  padding: 14px 18px !important;
  border-radius: var(--radius-sm) !important;
  border: none !important;
  background: var(--color-bg-section) !important;
  font-size: 15px !important;
}

.akar-newsletter-form form.fluent_form_2 .wpf_has_custom_css.ff-btn-submit,
.akar-newsletter-form form.fluent_form_2 .ff-btn-submit {
  background-color: var(--color-ink) !important;
  color: #ffffff !important;
  padding: 14px 28px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer;
  transition: background-color 0.2s;
}

.akar-newsletter-form form.fluent_form_2 .wpf_has_custom_css.ff-btn-submit:hover {
  background-color: var(--color-primary-hover) !important; /* CTA : bleu, pas l'orange (2026-09-23) */
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .akar-circuit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .akar-agency-grid, .akar-newsletter-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .akar-agency-badge {
    right: 20px;
    bottom: 20px;
  }
  .akar-circuits,
  .akar-newsletter {
    padding: 80px 0;
  }
  .akar-agency {
    padding: 90px 0;
  }
}

@media (max-width: 768px) {
  .akar-circuit-grid {
    grid-template-columns: 1fr;
  }
  .akar-newsletter-form form.fluent_form_2 .ff-el-group {
    flex-direction: column;
  }
}
