/* ============================================================
   DAFE – Template v2.0  |  css/user.css
   Feuille de styles personnalisée (chargée après Bootstrap 5)
   ============================================================ */


/* ============================================================
   0. Variables globales
   ============================================================ */

:root {
  /* Couleurs de marque */
  --accent:           #198754;
  --accent-rgb:       25, 135, 84;
  --accent-hover:     #157347;

  /* Palette texte */
  --text:             #0f172a;
  --text-muted:       #475569;
  --text-soft:        #333333;

  /* Fonds & neutres */
  --white:            #ffffff;
  --bg-soft:          #d2e7e0;
  --grad-start:       #a1c2b7;
  --grad-end:         #d2e7e0;
  --muted-300:        #cccccc;

  /* Ombres */
  --shadow-surface-rgb: 2, 6, 23;
  --ring-light-rgb:     249, 250, 251;

  /* --navbar-height est injecté dynamiquement par index.php */
}


/* ============================================================
   1. Mise en page générale
   ============================================================ */

.block1 {
  background: var(--bg-soft);
}

.block1-sub {
  background: var(--white);
  clip-path: ellipse(105% 100% at 49.45% 0%);
}

.background-gradient {
  background: linear-gradient(to top, var(--grad-start) 0%, var(--grad-end) 100%);
}

/* Correction ancres masquées derrière la navbar fixe */
[id] {
  scroll-margin-top: calc(var(--navbar-height, 64px) + 1rem);
}


/* ============================================================
   2. Cartes & blocs
   ============================================================ */

#block2 .card {
  border: none;
}

#block2 .card-footer {
  background: none;
  border-top: none;
}

#testimonials .card {
  background: none;
  border: none;
  border-radius: 0.25rem;
}

#testimonials .card img {
  border-radius: 90px;
}

#testimonials .blockquote-footer {
  color: var(--muted-300);
}

#news a {
  color: var(--text-soft);
  text-decoration: none;
}

#news .card-footer {
  background: none;
}

#news .card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#news .card:hover {
  box-shadow: 0 8px 24px rgba(var(--shadow-surface-rgb), 0.1);
  transform: translateY(-2px);
}

.galery-1 h5 {
  margin-bottom: 2em;
}


/* ============================================================
   3. Boutons – effets & ombres utilitaires
   ============================================================ */

/* ============================================================
   4. Pied de page
   ============================================================ */

footer a {
  color: var(--white);
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}

footer a:hover {
  opacity: 0.8;
}

/* ── Ligne logo / navigation / réseaux sociaux ─────────────── */

.footer-logo {
  height: 32px;
  width: auto;
}

/* Les modules Joomla affichent chacun un <h3> de titre (ex: "Dafe",
   "Suivez-nous") : on le garde pour les lecteurs d'écran mais on le
   masque visuellement pour obtenir une seule ligne homogène. */
.footer-nav h3,
.footer-social h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-nav {
  flex: 1 1 auto;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav li {
  margin: 0;
}

.footer-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-social ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: var(--accent);
  border-radius: 50%;
  line-height: 1;
  flex-shrink: 0;
}

.footer-social a:hover {
  background: var(--accent-hover);
  opacity: 1;
}

.footer-social a span.bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Le module de menu Joomla ajoute les classes utilitaires Bootstrap
     "p-2 pt-0" sur ce span (padding partout sauf en haut, via !important)
     : ça décale visuellement l'icône vers le haut du cercle. On neutralise
     avec !important, seul moyen de gagner face aux utilitaires Bootstrap. */
  padding: 0 !important;
  font-size: 1.1rem;
  line-height: 1;
}

/* ── Barre copyright + liens légaux (pleine largeur) ─────────── */

.footer-bottom-bar {
  background: inherit;
}

.footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-legal li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-300);
  margin-right: -0.4rem;
}

.footer-legal a {
  color: var(--muted-300);
  font-size: 0.8rem;
}

.footer-legal a:hover {
  color: var(--white);
  opacity: 1;
}

/* ── Bandeau slogan ─────────────────────────────────────────── */

.footer-banner-wrap {
  display: flex;
  justify-content: flex-end;
  margin: 3.5rem 0 0.5rem;
}

.footer-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.footer-banner::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

@media (max-width: 767.98px) {
  .footer-top,
  .footer-top-right {
    justify-content: center;
    text-align: center;
  }

  .footer-top-right {
    margin-left: 0 !important;
  }

  .footer-nav ul {
    justify-content: center;
  }

  .footer-banner-wrap,
  .footer-bottom-bar .d-flex {
    justify-content: center;
    text-align: center;
  }
}


/* ============================================================
   5. Navbar – Logo / Brand
   ============================================================ */

.navbar-brand img {
  max-height: 30px;
  padding-right: 10px;
}

.navbar-brand span {
  font-weight: 700;
  text-transform: uppercase;
}

/* État "flottant" au scroll (inspiré du header Google Store) : c'est le
   conteneur intérieur (largeur du contenu, pas toute la page) qui devient
   une carte blanche arrondie avec ombre légère ; la barre elle-même reste
   transparente et laisse voir le contenu de part et d'autre. Basculé par
   .is-scrolled (voir js/user.js). */
.navbar.fixed-top {
  background-color: #fff;
  transition: background-color 0.3s ease;
}

.navbar.fixed-top > .container {
  border-radius: 1.25rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.fixed-top.is-scrolled {
  background-color: transparent;
}

.navbar.fixed-top.is-scrolled > .container {
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(var(--shadow-surface-rgb), 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .navbar.fixed-top,
  .navbar.fixed-top > .container {
    transition: none;
  }
}


/* ============================================================
   6. Navbar – Liens principaux
   ============================================================ */

.navbar .navbar-nav .nav-link {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.015em;
  font-size: clamp(0.78rem, 0.74rem + 0.2vw, 0.9rem);
  color: var(--text);
  padding: 0.6rem 0.85rem;
  position: relative;

  /* Soulignement animé */
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s ease, transform 0.15s ease, color 0.15s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
  color: var(--text);
  background-size: 100% 2px;
  transform: translateY(-1px);
}

/* État actif (page courante) */
.navbar .navbar-nav .nav-item.active > .nav-link,
.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-item.current > .nav-link {
  color: var(--accent);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 2px;
}

.navbar .navbar-nav .nav-item.parent > .nav-link {
  color: var(--text);
}

.navbar .navbar-nav .nav-item.nav-path > .nav-link {
  color: var(--accent);
}


/* ============================================================
   7. Navbar – Dropdown (niveau 2+)
   ============================================================ */

.dropdown-menu {
  border: 0;
  box-shadow: 0 8px 24px rgba(var(--shadow-surface-rgb), 0.1);
  padding: 0.5rem;
  border-radius: 0.75rem;
}

.dropdown-item {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.015em;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-radius: 0.5rem;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--text);
  background-color: rgba(var(--accent-rgb), 0.08);
  transform: translateX(2px);
}

.dropdown-item.active,
.dropdown-item:active {
  color: var(--accent) !important;
  background-color: rgba(var(--accent-rgb), 0.12) !important;
  font-weight: 800;
}

/* Desktop : anime l'ouverture (fade + léger slide) au lieu du show/hide
   instantané de Bootstrap — on garde display:block en permanence et on
   pilote la visibilité via opacity/visibility pour pouvoir transitionner. */
@media (min-width: 992px) {
  .navbar .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .navbar .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Mobile : le sous-menu doit s'intégrer dans le menu déroulant (accordéon)
   plutôt que flotter par-dessus le contenu, comportement par défaut de
   Bootstrap non adapté au menu collapse. */
@media (max-width: 991.98px) {
  .navbar .dropdown-menu {
    position: static;
    float: none;
    box-shadow: none;
    margin: 0.25rem 0 0.5rem;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(var(--accent-rgb), 0.15);
  }
}


/* ============================================================
   8. Accessibilité – focus visible & prefers-reduced-motion
   ============================================================ */

.navbar .navbar-nav .nav-link:focus-visible,
.dropdown-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 0.4rem;
}

@media (prefers-reduced-motion: reduce) {
  .navbar .navbar-nav .nav-link,
  .dropdown-item,
  .navbar .dropdown-menu,
  .btn-brand,
  #news .card {
    transition: none !important;
    animation: none !important;
  }
}


/* ============================================================
   9. Sélecteur de langue
   ============================================================ */

div.mod-languages a {
  background-color: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font-weight: bold;
  border-radius: 0.4rem;
  padding: 0.2rem 0.5rem;
}


/* ============================================================
  10. Bannière pages intérieures (.page-banner)
  Carte arrondie, fond pastel, titre à gauche, image à droite.
  ============================================================ */

.page-banner {
  display: flex;
  align-items: center;
  gap: 2rem;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 220px;
  margin: 1.5rem 0 2.5rem;
}

.page-banner__text {
  flex: 1 1 auto;
  padding: 2rem 2.5rem;
}

.page-banner__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text);
}

.page-banner__desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0.75rem 0 0;
  line-height: 1.6;
}

.page-banner__media {
  flex: 0 0 42%;
  align-self: stretch;
}

.page-banner__media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

/* Palette : tons de vert clair (déclinaisons subtilement dégradées) + gris,
   alignés sur la charte graphique. */
.page-banner--sage  { background: linear-gradient(135deg, #d2e7e0 0%, #e6f3ee 100%); }
.page-banner--mint  { background: linear-gradient(135deg, #dcf0e6 0%, #eef9f3 100%); }
.page-banner--teal  { background: linear-gradient(135deg, #d7ece7 0%, #ebf7f4 100%); }
.page-banner--moss  { background: linear-gradient(135deg, #e4ead9 0%, #f1f4ea 100%); }
.page-banner--cloud { background: linear-gradient(135deg, #e3e7ea 0%, #f2f4f5 100%); }

/* Même dégradé que le hero de la home (.hero-home) */
.page-banner--hero  { background: linear-gradient(135deg, #f0faf6 0%, #ffffff 60%); }

/* Contact : variante sombre, texte blanc */
.page-banner--dark {
  background: linear-gradient(315deg, var(--accent) 0%, #0f3d28 100%);
}

.page-banner--dark .page-banner__title {
  background: none;
  -webkit-text-fill-color: var(--white);
  color: var(--white);
}

.page-banner--dark .page-banner__desc {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 767.98px) {
  .page-banner {
    flex-direction: column;
    min-height: 0;
    border-radius: 1rem;
  }
  .page-banner__text {
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .page-banner__desc {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  .page-banner__media {
    width: 100%;
    flex: 0 0 auto;
  }
  .page-banner__media img {
    min-height: 180px;
  }
}


/* ============================================================
  10b. Styles partagés sections
  ============================================================ */

.section-h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Barres d'accent sous les titres retirées : le dégradé du titre porte
   désormais l'accent visuel, plus besoin du trait en dessous. */
.section-divider-left {
  display: none;
}

.section-header {
  margin-bottom: 2.5rem;
}


/* ============================================================
  10c. Homepage – Hero
  ============================================================ */

.hero-home {
  position: relative;
  background: linear-gradient(135deg, #f0faf6 0%, #ffffff 60%);
  overflow: hidden;
}

.hero-home > .container {
  position: relative;
  z-index: 2;
}

/* Courbure en bas : vraie forme SVG (symétrique par construction, contrairement
   au border-radius sur les coins qui donnait une courbe déformée). Le blanc
   du hero plonge au centre, remonte sur les bords. */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 3;
  display: block;
}

.hero-wave path {
  fill: var(--bg-soft);
}

.hero-home-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text); /* repli si background-clip: text non supporté */
}

.hero-home-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* ============================================================
   6b. Bouton standard – CTA plein vert (".btn-brand")
   Unique traitement pour tous les boutons verts pleins du site :
   dégradé, pilule, ombre, lift au survol + dégradé inversé.
   Groupé avec le bouton d'envoi du formulaire de contact (natif
   Joomla, impossible d'y ajouter une classe).
   ============================================================ */

.btn-brand,
.contact-form-card .btn-primary,
.contact-form-card button[type="submit"] {
  background: linear-gradient(135deg, var(--accent) 0%, #22c55e 100%) !important;
  border: none !important;
  border-radius: 90px !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* Bouton natif Joomla (formulaire de contact) : pas de classe utilitaire
   Bootstrap possible dessus, donc le gabarit (padding/typo) est fixé ici
   plutôt que via px-4/btn-lg comme les autres CTA. */
.contact-form-card .btn-primary,
.contact-form-card button[type="submit"] {
  padding: 0.75rem 2.5rem !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
}

.btn-brand:hover,
.btn-brand:focus-visible,
.contact-form-card .btn-primary:hover,
.contact-form-card button[type="submit"]:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.48);
  background: linear-gradient(135deg, #157347 0%, var(--accent) 100%) !important;
}

/* Image + décorations — l'image sert d'arrière-plan à la colonne,
   ancrée en bas et débordant du cadre (pas de card flottante avec
   coins arrondis/ombre). Le bas est "flush" avec le bas de la section :
   la vague (.hero-wave, z-index supérieur) la découpe proprement. Le
   haut s'estompe via un masque CSS pour éviter un bord rectangulaire
   visible. */
.hero-img-col {
  position: relative;
  align-self: stretch;
  min-height: 320px;
}

/* Le débord bas doit toujours dépasser la somme des paddings bas
   entre la colonne et le bord réel de la section (row .py-4 = 1.5rem +
   container .py-5 = 3rem = 4.5rem), pour que l'image touche vraiment
   le bord — jamais un espace résiduel. Le dépassement est absorbé par
   `.hero-home { overflow: hidden }`, donc pas de risque de "trop". */
.hero-img-wrapper {
  position: absolute;
  inset: -2rem -1rem -5rem;
  overflow: visible;
}

.hero-img-wrapper .hero-img-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 22%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 22%);
}

/* Même principe que .hero-img-wrapper (bulles décoratives), mais sans
   coins arrondis ni ombre sur l'image (demande explicite pour "Notre
   mission"). */
.mission-img-wrapper {
  position: relative;
  overflow: visible;
  /* Desktop + tablette : l'image "descend" dans le padding bas du
     container (.section-mission .container a un py-5, donc 3rem) pour
     toucher le bord réel de la section, sans réduire ce padding qui
     reste nécessaire pour l'air du texte. transform ne modifie pas le
     flux/la hauteur de la rangée, contrairement à un margin négatif. */
  transform: translateY(3rem);
}

.mission-img-wrapper img {
  position: relative;
  z-index: 1;
}

/* Points décoratifs — tous en vert plein foncé, comme le site de référence */
.hero-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  z-index: 2;
}

.hero-dot--lg {
  width: 1.75rem;
  height: 1.75rem;
  top: -0.75rem;
  right: 20%;
}

.hero-dot--sm {
  width: 1.4rem;
  height: 1.4rem;
  bottom: 8%;
  right: -0.75rem;
}

.hero-dot--xs {
  width: 1.1rem;
  height: 1.1rem;
  top: 8%;
  left: -0.5rem;
}

/* Bulles supplémentaires : tailles et teintes variées (toujours dans la
   palette verts + gris) pour casser la répétition des 3 bulles pleines. */
.hero-dot--md {
  width: 1.5rem;
  height: 1.5rem;
  top: 40%;
  right: -1.25rem;
  background: #22c55e;
}

.hero-dot--xxs {
  width: 0.65rem;
  height: 0.65rem;
  top: 4%;
  left: 6%;
  background: rgba(71, 85, 105, 0.45);
}

.hero-dot--ring {
  width: 1.7rem;
  height: 1.7rem;
  top: -1rem;
  left: 38%;
  background: transparent;
  border: 2px solid rgba(var(--accent-rgb), 0.45);
}

/* Grande bulle centrale : pleine et claire, jamais foncée. Centrée
   sur le sujet de la photo (décalée vers la droite de l'image). */
.hero-circle {
  position: absolute;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.18);
  top: 50%;
  left: 65%;
  transform: translate(-50%, -50%);
  z-index: 0;
}


/* ============================================================
  10d. Homepage – Pourquoi DAFE ?
  ============================================================ */

.section-why {
  padding: 5rem 0;
  background: var(--bg-soft);
}

.why-card {
  border: none;
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px rgba(var(--shadow-surface-rgb), 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(var(--shadow-surface-rgb), 0.12);
}

.why-card-icon {
  width: 3rem;
  height: 3rem;
  margin: 1.75rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font-size: 1.4rem;
}

/* Avatar circulaire — volontairement différent des photos rectangulaires
   utilisées sur la page La plateforme (.advantage-card-img-wrap) */
.why-card-avatar {
  position: relative;
  overflow: hidden;
  max-height: 180px;
}

.why-card-avatar img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Trait épais vert, à l'intérieur du bord bas, demi-largeur */
.why-card-avatar::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  width: 50%;
  height: 12px;
  background: var(--accent);
}

.why-card:hover .why-card-avatar img {
  transform: scale(1.04);
}

.why-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  text-align: center;
}

.why-card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  text-align: center;
}

.why-card-footer {
  background: transparent;
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 0.75rem 1.25rem;
}

.why-card-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

.why-card-link:hover {
  gap: 0.7rem;
}


/* ============================================================
  10e. Homepage – Mission
  ============================================================ */

.section-mission {
  background: #fff;
}

.section-mission-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}


/* ============================================================
  10f. Homepage – Grille fonctionnalités
  ============================================================ */

.section-features-grid {
  background: var(--bg-soft);
  padding: 4rem 0;
}

/* Page La plateforme : on inverse les fonds pour garder du contraste
   juste après la bannière (menthe) plutôt que d'enchaîner deux tons
   pastel proches. */
#platform .section-features-grid {
  background: #fff;
}

#platform .section-advantages {
  background: var(--bg-soft);
}

.feature-tile {
  text-align: center;
  padding: 2rem 1.25rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(var(--shadow-surface-rgb), 0.06);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(var(--shadow-surface-rgb), 0.1);
}

.feature-tile-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--accent) 0%, #22c55e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.7rem;
  color: #fff;
}

.feature-tile-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.feature-tile-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}


/* ============================================================
  10f-bis. La plateforme – Avantages (cartes avec image,
  même langage visuel que .why-card sur la home)
  ============================================================ */

.advantage-card {
  background: #fff;
  border: none;
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px rgba(var(--shadow-surface-rgb), 0.06);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(var(--shadow-surface-rgb), 0.12);
}

.advantage-card-img-wrap {
  overflow: hidden;
  max-height: 180px;
}

.advantage-card-img-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.advantage-card:hover .advantage-card-img-wrap img {
  transform: scale(1.04);
}

.advantage-card-icon-wrap {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, #22c55e 100%);
}

.advantage-card-icon-wrap i {
  font-size: 2.75rem;
  color: var(--white);
}

.advantage-card-body {
  padding: 1.25rem;
}

.advantage-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.advantage-card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.advantage-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.advantage-card-link:hover {
  gap: 0.7rem;
}

/* ── Catégorie générique – grille de sous-catégories ─────────────────── */

.section-subcategories {
  background: var(--bg-soft);
}

.subcategory-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(var(--shadow-surface-rgb), 0.06);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.subcategory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(var(--shadow-surface-rgb), 0.12);
}

.subcategory-card-img-wrap {
  overflow: hidden;
  max-height: 180px;
}

.subcategory-card-img-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.subcategory-card:hover .subcategory-card-img-wrap img {
  transform: scale(1.04);
}

.subcategory-card-icon-wrap {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, #22c55e 100%);
}

.subcategory-card-icon-wrap i {
  font-size: 2.5rem;
  color: var(--white);
}

.subcategory-card-body {
  padding: 1.5rem;
}

.subcategory-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.subcategory-card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.subcategory-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  transition: gap 0.2s ease;
}

.subcategory-card:hover .subcategory-card-link {
  gap: 0.7rem;
}

/* ── La plateforme – Clôture "Qui sommes-nous" (carte mise en avant) ── */

.section-qsn-teaser {
  background: #fff;
  /* Bloc de clôture juste avant le footer sombre : le py-5 standard
     (3rem) suffit en haut (déjà séparé par le changement de fond de la
     grille d'avantages) mais laissait trop peu d'air avant le footer. */
  padding-bottom: 6rem !important;
}

.qsn-teaser-card {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: linear-gradient(135deg, #dcf0e6 0%, #eef9f3 100%);
  border-radius: 1.5rem;
  overflow: hidden;
  padding: 3rem 3.5rem;
}

.qsn-teaser-card--no-media {
  text-align: center;
  justify-content: center;
  padding: 3.5rem;
}

.qsn-teaser-card__text {
  flex: 1 1 auto;
}

.qsn-teaser-card--no-media .qsn-teaser-card__text {
  max-width: 620px;
}

.qsn-teaser-card__media {
  flex: 0 0 38%;
  align-self: stretch;
  border-radius: 1.1rem;
  overflow: hidden;
  min-height: 220px;
}

.qsn-teaser-card__media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.qsn-teaser-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.qsn-teaser-text {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.qsn-teaser-card--no-media .qsn-teaser-text {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767.98px) {
  .qsn-teaser-card {
    flex-direction: column;
    padding: 2rem 1.75rem;
    text-align: center;
  }
  .qsn-teaser-card__media {
    order: -1;
    width: 100%;
    min-height: 200px;
  }
}


/* ============================================================
  10g. Homepage – Actualités
  ============================================================ */

.section-news {
  background: #fff;
}

.news-card {
  border: none;
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px rgba(var(--shadow-surface-rgb), 0.06);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(var(--shadow-surface-rgb), 0.12);
}

.news-card-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-img {
  transform: scale(1.04);
}

.news-card-date {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.news-card-title a {
  color: var(--text);
  text-decoration: none;
}

.news-card-title a:hover {
  color: var(--accent);
}

.news-card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.news-card-footer {
  background: transparent;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.news-card-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

.news-card-link:hover {
  gap: 0.7rem;
}


/* ============================================================
  10h. Homepage – CTA
  ============================================================ */

.section-cta {
  background: linear-gradient(135deg, #0f5132 0%, var(--accent) 60%, #22c55e 100%);
  padding: 5rem 0;
}

.cta-block {
  max-width: 720px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
}

.section-cta .btn-success {
  background: #fff !important;
  color: var(--accent) !important;
  border: none !important;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-cta .btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.3);
}


/* ============================================================
  11. Boutons CTA – "Offres d'emploi" & "Espace client"
  ============================================================ */

.btn-group-cta {
  gap: 0.6rem;
}


/* ============================================================
  12. Responsive – Tablette / Mobile (≤ 991px)
  ============================================================ */

@media (max-width: 991.98px) {

  .navbar-collapse {
    padding-top: 1.5rem;
  }

  /* Espace client + langue restent sobres et compacts, alignés entre le
     logo et le bouton hamburger (voir order-3 sur .navbar-toggler dans
     header.php) plutôt que de prendre toute la largeur sur une 2e ligne. */
  .btn-group-cta {
    gap: 0.4rem;
  }

  .navbar-toggler {
    margin-left: 0.75rem;
  }

  .btn-group-cta .btn-brand {
    padding: 0.4rem 0.85rem !important;
    font-size: 0.78rem;
  }

  div.mod-languages a {
    font-size: 0.78rem;
  }

  .block1-sub {
    clip-path: ellipse(120% 100% at 50% 0%);
  }

  /* Hero – commun mobile + tablette (<992px) : sans courbe ni image en
     arrière-plan qui déborde (trop fragile à petite échelle) — image
     simple et contenue dans sa colonne. */
  .hero-wave {
    display: none;
  }

  .hero-img-col {
    position: static;
    align-self: auto;
    min-height: 0;
  }

  .hero-img-wrapper {
    position: relative;
    inset: auto;
  }

  .hero-img-wrapper .hero-img-bg {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-dot--md, .hero-dot--xxs, .hero-dot--ring { display: none; }
}

/* Hero + Mission – mobile uniquement (<768px) : empilé, image pleine
   largeur pour le hero, centré pour tout le reste. */
@media (max-width: 767.98px) {
  /* Notre mission : fond léger derrière l'image plutôt qu'une photo qui
     flotte seule sur le blanc de la section — et on annule le
     translateY (bord collé) qui ne s'applique qu'en tablette/desktop,
     où l'image partage sa rangée avec le texte. */
  .mission-img-wrapper {
    max-width: 280px;
    margin: 0 auto 1.5rem;
    padding: 1.5rem;
    background: var(--bg-soft);
    border-radius: 1.5rem;
    transform: none;
  }

  .section-mission .row {
    text-align: center;
  }

  .section-mission-text {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-home-title {
    font-size: clamp(1.6rem, 5vw, 2.25rem);
  }

  .hero-home .row {
    text-align: center;
  }

  .hero-img-col {
    /* Écrase col-10/col-sm-8 (Bootstrap) : l'image doit remplir toute la
       largeur disponible, pas une portion réduite avec des marges. */
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .hero-img-wrapper {
    width: 100%;
  }

  .hero-home-cta {
    display: flex;
    justify-content: center;
  }

  .hero-dot--lg { width: 2.5rem; height: 2.5rem; }
  .hero-dot--sm { width: 1.75rem; height: 1.75rem; }
  .hero-circle  { width: 8rem; height: 8rem; }
}

/* Hero – tablette (768–991px) : deux blocs côte à côte (titre + bouton
   d'un côté, image de l'autre), pas de texte descriptif — trop de bruit
   dans une colonne à 50% (voir d-md-none d-lg-block sur .hero-home-text
   dans home.php). */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-home-title {
    font-size: clamp(1.7rem, 4vw, 2.1rem);
  }

  /* Image collée au bord inférieur de la colonne (le texte, plus court,
     ne doit pas la centrer verticalement avec un vide en dessous). */
  .hero-img-col {
    align-self: flex-end;
  }

  .hero-dot--lg { width: 3rem; height: 3rem; }
  .hero-dot--sm { width: 1.9rem; height: 1.9rem; }
  .hero-circle  { width: 9rem; height: 9rem; }
}

/* Grilles tuiles / actualités – tablette (768–991px) : colonnes trop
   étroites pour un texte descriptif complet (4 colonnes fonctionnalités,
   3 colonnes actualités) — on garde juste icône/image + titre. Ces
   classes sont partagées entre home/platform/features/blog/content. */
@media (min-width: 768px) and (max-width: 991.98px) {
  .feature-tile-text,
  .news-card-date,
  .news-card-text {
    display: none;
  }
}


/* ============================================================
  12b. Article unique (fil d'Ariane, titre, image, texte)
  ============================================================ */

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.article-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.article-breadcrumb a:hover {
  color: var(--accent);
}

.article-breadcrumb-sep {
  color: var(--muted-300);
}

.article-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.article-hero {
  margin-bottom: 2rem;
}

.article-hero img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.com-content-article__body {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

.com-content-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}


/* ============================================================
  13. Responsive – Très petits écrans (≤ 575px)
  ============================================================ */

@media (max-width: 575.98px) {

  #news .row {
    --bs-gutter-x: 1rem;
  }

  /* Clip-path désactivé sur très petits écrans */
  .block1-sub {
    clip-path: none;
    padding-top: 1.5rem;
  }

  .section-cta {
    padding: 3rem 0;
  }
}


/* ============================================================
  14. Pricing – Design Spotlight
  ============================================================ */

/* ── Fond de section ─────────────────────────────────────── */
.pricing-section {
  background: linear-gradient(180deg, #ffffff 0%, #f0faf6 50%, #ffffff 100%);
}

/* ── Base commune des cartes ─────────────────────────────── */
.pricing-card {
  border-radius: 0;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ── Carte secondaire – Gratuit ──────────────────────────── */
.pricing-card--muted {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(var(--shadow-surface-rgb), 0.06);
}

.pricing-card--muted:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(var(--shadow-surface-rgb), 0.1);
}

/* ── Carte featured – Professionnel ──────────────────────── */
.pricing-card--featured {
  background: #ffffff;
  border: 1px solid rgba(var(--accent-rgb), 0.30);
  box-shadow: 0 20px 60px rgba(var(--accent-rgb), 0.15);
  z-index: 1;
}

.pricing-card--featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 72px rgba(var(--accent-rgb), 0.24);
}

/* ── Badge "Recommandé" ──────────────────────────────────── */
.pricing-card__badge {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, var(--accent) 0%, #22c55e 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.35);
}

/* ── En-têtes de carte ───────────────────────────────────── */
.pricing-card__header {
  padding: 2rem;
  text-align: left;
}

.pricing-card__header--muted {
  border-bottom: 1.5px solid #e2e8f0;
}

.pricing-card__header--featured {
  background: rgba(var(--accent-rgb), 0.08);
  border-bottom: 1.5px solid rgba(var(--accent-rgb), 0.12);
}

.pricing-card__title {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
  line-height: 1.2;
}

.pricing-card__title--muted {
  font-size: 1.6rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* ── Corps de carte ──────────────────────────────────────── */
.pricing-card__body {
  padding: 1.5rem 2rem 2rem;
}

/* ── Liste des features ──────────────────────────────────── */
.pricing-card__features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-card__features ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(var(--shadow-surface-rgb), 0.05);
}

.pricing-card__features ul li:last-child {
  border-bottom: none;
}

.pricing-card__features ul li > i {
  display: none;
}

.pricing-card__features ul li::before {
  content: "\F26E";
  font-family: "bootstrap-icons";
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.pricing-card__features:not(.pricing-card__features--muted) ul li {
  color: var(--text);
}

/* ── CTA ─────────────────────────────────────────────────── */
/* Gabarit (padding/typo) uniquement — l'habillage couleur vient de
   .btn-brand (plein) ou du style outline-success standard Bootstrap. */
.pricing-card__cta {
  font-weight: 700;
  letter-spacing: 0.03em;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ── Note de bas de section ──────────────────────────────── */
.pricing-footnote {
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(var(--accent-rgb), 0.04);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Responsive pricing ──────────────────────────────────── */
@media (max-width: 991.98px) {
  .pricing-card--featured {
    box-shadow: 0 12px 36px rgba(var(--accent-rgb), 0.14);
  }
  .pricing-card__badge {
    top: 1rem; right: 1rem;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-card,
  .pricing-card__cta,
  .why-card,
  .news-card,
  .feature-tile { transition: none !important; }
}


/* ============================================================
  15. Page Contact
  ============================================================ */

.contact-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* ── Colonne info ─────────────────────────────────────────── */
.contact-info-col {
  position: sticky;
  top: calc(var(--navbar-height, 64px) + 2rem);
}

.contact-info-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(0,0,0,0.08);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

a.contact-info-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(var(--shadow-surface-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.contact-info-box:last-of-type {
  margin-bottom: 0;
}

.contact-info-box-icon {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font-size: 1.25rem;
}

.contact-info-box-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-info-box-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contact-info-box-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* ── Encart alternative (contact général ↔ demande de devis) ─ */
.contact-alt-box {
  margin-top: 1.5rem;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, #22c55e 100%);
  box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.25);
}

.contact-alt-box-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.contact-cross-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.65rem 1.4rem;
  border-radius: 90px;
  transition: gap 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-cross-link:hover {
  gap: 0.75rem;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ── Carte formulaire ─────────────────────────────────────── */
.contact-form-card {
  background: #fff;
  border-radius: 0;
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(var(--shadow-surface-rgb), 0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

/* Champs Joomla com_contact */
.contact-form-card .control-group {
  margin-bottom: 1.25rem;
}

.contact-form-card .control-label label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  display: block;
}

.contact-form-card .controls input[type="text"],
.contact-form-card .controls input[type="email"],
.contact-form-card .controls textarea,
.contact-form-card .form-control {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.contact-form-card .controls input[type="text"]:focus,
.contact-form-card .controls input[type="email"]:focus,
.contact-form-card .controls textarea:focus,
.contact-form-card .form-control:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.contact-form-card .controls textarea {
  min-height: 140px;
  resize: vertical;
}

/* Responsive contact */
@media (max-width: 991.98px) {
  .contact-info-col {
    position: static;
  }
  .contact-form-card {
    padding: 1.75rem;
  }
}


/* ============================================================
  16. Services – page sous-catégorie
  ============================================================ */

.service-block-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.service-divider {
  width: 2.5rem;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.service-block-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}


/* ============================================================
  17. Pages intérieures – styles complémentaires
  ============================================================ */

/* ── Texte présentation ──────────────────────────────────── */
.presentation-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Lien tuile features ─────────────────────────────────── */
.features-tile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  margin-top: 0.75rem;
  transition: gap 0.2s ease;
}
.features-tile-link:hover { gap: 0.6rem; }

/* ── Pricing — en-tête section ───────────────────────────── */
/* ── FAQ – accordéon personnalisé ────────────────────────── */
.accordion-item {
  border: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 0.85rem;
  border-radius: 1rem !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 61, 40, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.accordion-item:hover {
  border-color: rgba(var(--accent-rgb), 0.25);
  box-shadow: 0 8px 24px rgba(15, 61, 40, 0.1);
}
.accordion-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.accordion-button:not(.collapsed) {
  color: var(--accent);
  background-color: rgba(var(--accent-rgb), 0.04);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(var(--accent-rgb), 0.2);
}
.accordion-button::after {
  filter: invert(40%) sepia(80%) saturate(400%) hue-rotate(100deg);
  flex-shrink: 0;
}
.accordion-button__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.accordion-button:not(.collapsed) .accordion-button__badge {
  background: var(--accent);
  color: var(--white);
}
.accordion-body {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.95rem;
  padding: 0 1.5rem 1.5rem 4.25rem;
}

/* ── FAQ – CTA de fin de page ────────────────────────────── */
.faq-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: linear-gradient(135deg, #f0faf6 0%, #e6f3ee 100%);
  border-radius: 1.25rem;
  padding: 2rem 2.25rem;
  margin-top: 1rem;
}
.faq-cta__text h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.faq-cta__text p {
  color: var(--text-muted);
  margin: 0;
}


/* ============================================================
  18. Footer – modules de navigation
  ============================================================ */

#site-footer .moduletable {
  color: rgba(255,255,255,0.75);
}

#site-footer .moduletable > h3,
#site-footer .moduletable > .module-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: none;
  letter-spacing: 0;
}

/* Nav-menu en colonne dans le footer */
#site-footer .navbar-nav {
  flex-direction: column;
  gap: 0.1rem;
}

#site-footer .navbar-nav .nav-item {
  width: 100%;
}

#site-footer .navbar-nav .nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255,255,255,0.7) !important;
  padding: 0.2rem 0;
  background-image: none !important;
  transition: color 0.2s ease;
}

#site-footer .navbar-nav .nav-link:hover,
#site-footer .navbar-nav .nav-link:focus {
  color: #fff !important;
  transform: none;
  background-size: 0 !important;
}

/* Lien simple (mod_custom) dans le footer */
#site-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

#site-footer a:hover {
  color: #fff;
  opacity: 1;
}

/* Texte courant dans le footer */
#site-footer p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}
