/*



Theme Name: ASF



Theme URI: https://asf.be



Author: Avocats Sans Frontières



Author URI: https://asf.be



Description: Thème WordPress pour ASF basé sur le Brand Book 2.0



Version: 1.0.0



License: GPL v2 or later



Text Domain: asf



*/

/* ========================================



   Variables CSS - Brand Book ASF



======================================== */

:root {
  --moon-stone-green: #6f9a93;

  --carrot-orange: #f89412;

  --warm-sand: #e5d8a8;

  --soft-lavender: #c7b7e2;

  --muted-coral: #f08080;

  --black: #000000;

  --white: #ffffff;

  --gray-light: #f5f5f5;

  --gray-medium: #cccccc;

  --gray-dark: #333333;

  --font-primary: "Open Sans", sans-serif;

  --container-max: 1200px;

  --spacing-xs: 8px;

  --spacing-sm: 16px;

  --spacing-md: 24px;

  --spacing-lg: 32px;

  --spacing-xl: 48px;

  --shadow: 0 8px 20px rgba(0, 0, 0, 0.06);

  --radius-xl: 20px;

  --radius-lg: 16px;

  --radius-md: 12px;
}

/* ========================================



   Reset & Base



======================================== */

* {
  margin: 0;

  padding: 0;

  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);

  font-size: 16px;

  line-height: 1.6;

  color: var(--gray-dark);

  background-color: var(--white);
}

.container {
  max-width: var(--container-max);

  margin: 0 auto;

  padding: 0 var(--spacing-md);
}

/* ========================================



   Typography



======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);

  font-weight: 400;

  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 2.5rem;

  font-weight: 500;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
}

a {
  color: var(--moon-stone-green);

  text-decoration: none;

  transition: color 0.3s ease;
}

a:hover {
  color: var(--carrot-orange);
}

/* ========================================



   Header



======================================== */

.site-header {
  background: var(--white);

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

  position: sticky;

  top: 0;

  z-index: 100;
}

.header-inner {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 0;
}

.logo-container {
  padding: var(--spacing-xs) var(--spacing-sm);

  display: inline-block;
}

.logo-container img {
  height: 110px;

  width: auto;
}

.main-navigation ul {
  list-style: none;

  display: flex;

  gap: var(--spacing-lg);
}

.main-navigation a {
  color: var(--gray-dark);

  font-weight: 500;

  text-transform: uppercase;

  font-size: 0.875rem;
}

/* ========================================



   Footer



======================================== */

.site-footer {
  color: var(--white);

  padding: var(--spacing-xl) 0 var(--spacing-md);

  margin-top: var(--spacing-xl);
}

.footer-content {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: var(--spacing-lg);

  margin-bottom: var(--spacing-lg);
}

.footer-bottom {
  text-align: center;

  padding-top: var(--spacing-md);

  border-top: 1px solid rgba(255, 255, 255, 0.2);

  font-size: 0.875rem;
}

/* ========================================



   Cards - Organismes



======================================== */

.organismes-grid {
  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

  gap: var(--spacing-md);

  margin: var(--spacing-lg) 0;
}

.organisme-card {
  background: var(--white);

  border-radius: 8px;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  overflow: hidden;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.organisme-card:hover {
  transform: translateY(-4px);

  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-header {
  padding: var(--spacing-md);

  background: var(--gray-light);

  border-bottom: 3px solid var(--moon-stone-green);
}

.card-body {
  padding: var(--spacing-md);
}

.card-scores {
  display: flex;

  justify-content: space-around;

  padding: var(--spacing-md);

  background: var(--gray-light);
}

.score-circle {
  width: 80px;

  height: 80px;

  border-radius: 50%;

  border: 3px solid var(--moon-stone-green);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 1.25rem;

  font-weight: 600;

  color: var(--moon-stone-green);
}

.card-footer {
  padding: var(--spacing-md);

  border-top: 1px solid var(--gray-light);
}

.btn-contact {
  background: var(--moon-stone-green);

  color: var(--white);

  padding: var(--spacing-sm) var(--spacing-lg);

  border: none;

  border-radius: 25px;

  font-weight: 600;

  text-transform: uppercase;

  cursor: pointer;

  width: 100%;

  transition: background 0.3s ease;
}

.btn-contact:hover {
  background: var(--carrot-orange);
}

/* ========================================



   Detail View



======================================== */

.organisme-detail {
  background: var(--white);

  padding: var(--spacing-xl);

  margin: var(--spacing-lg) 0;

  border-radius: 8px;

  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.detail-header {
  border-bottom: 3px solid var(--moon-stone-green);

  padding-bottom: var(--spacing-md);

  margin-bottom: var(--spacing-lg);
}

.info-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: var(--spacing-lg);

  margin: var(--spacing-lg) 0;
}

.info-section {
  padding: var(--spacing-md);

  background: var(--gray-light);

  border-radius: 8px;
}

.info-section h3 {
  color: var(--moon-stone-green);

  margin-bottom: var(--spacing-sm);
}

/* ========================================



   Map View



======================================== */

.map-container {
  height: 600px;

  border-radius: 8px;

  overflow: hidden;

  margin: var(--spacing-lg) 0;

  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.map-sidebar {
  position: absolute;

  left: 20px;

  top: 20px;

  background: var(--white);

  padding: var(--spacing-md);

  border-radius: 8px;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);

  max-width: 300px;

  max-height: 500px;

  overflow-y: auto;
}

/* ========================================



   Services Tags



======================================== */

.services-tags {
  display: flex;

  flex-wrap: wrap;

  gap: var(--spacing-xs);

  margin: var(--spacing-sm) 0;
}

.service-tag {
  background: var(--moon-stone-green);

  color: var(--white);

  padding: 4px 12px;

  border-radius: 20px;

  font-size: 0.875rem;
}

/* ========================================



   ACF OpenStreetMap Styles



======================================== */

.acf-osm-map {
  border-radius: 8px;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.single-map-container {
  margin: var(--spacing-lg) 0;

  border-radius: 8px;

  overflow: hidden;
}

.delegation-map-small {
  margin-top: var(--spacing-sm);

  border-radius: 4px;

  overflow: hidden;
}

/* Map Wrapper */

.map-wrapper {
  display: flex;

  gap: var(--spacing-md);

  height: 600px;

  margin: var(--spacing-lg) 0;
}

.map-sidebar {
  width: 350px;

  background: var(--white);

  border-radius: 8px;

  padding: var(--spacing-md);

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  overflow-y: auto;
}

.map-container {
  flex: 1;

  border-radius: 8px;

  overflow: hidden;
}

.organismes-list {
  display: flex;

  flex-direction: column;

  gap: var(--spacing-sm);
}

.map-item {
  padding: var(--spacing-sm);

  background: var(--gray-light);

  border-radius: 4px;

  cursor: pointer;

  transition: background 0.3s ease;
}

.map-item:hover {
  background: var(--moon-stone-green);

  color: var(--white);
}

.map-item h4 {
  font-size: 1rem;

  margin-bottom: 4px;
}

.item-specialite {
  font-size: 0.875rem;

  color: var(--gray-medium);

  margin-bottom: 4px;
}

.item-address {
  font-size: 0.75rem;

  margin-bottom: var(--spacing-xs);
}

.btn-small {
  display: inline-block;

  padding: 4px 12px;

  background: var(--moon-stone-green);

  color: var(--white);

  border-radius: 4px;

  font-size: 0.75rem;

  text-transform: uppercase;
}

.map-item:hover .btn-small {
  background: var(--carrot-orange);
}

/* Map Filters */

.map-filters {
  display: flex;

  gap: var(--spacing-md);

  margin-top: var(--spacing-md);
}

.form-select {
  padding: var(--spacing-xs) var(--spacing-sm);

  border: 1px solid var(--gray-medium);

  border-radius: 4px;

  background: var(--white);

  min-width: 200px;
}

/* Badge styles */

.badge-24h {
  display: inline-block;

  padding: 4px 12px;

  background: var(--carrot-orange);

  color: var(--white);

  border-radius: 20px;

  font-weight: 600;
}

.gouvernorat-badge {
  display: inline-block;

  padding: 2px 8px;

  background: var(--moon-stone-green);

  color: var(--white);

  border-radius: 4px;

  font-size: 0.75rem;

  margin-bottom: var(--spacing-xs);
}

/* Delegation cards grid */

.delegations-grid {
  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

  gap: var(--spacing-md);

  margin-top: var(--spacing-md);
}

.delegation-card {
  background: var(--gray-light);

  padding: var(--spacing-md);

  border-radius: 8px;
}

.delegation-contact {
  margin: var(--spacing-sm) 0;

  font-size: 0.875rem;
}

/* ========================================



   Couleur personnalisée



======================================== */

.type-organisme {
  padding: 4px 12px;

  color: white;

  border-radius: 4px;

  display: inline-block;

  font-size: 0.875rem;
}

.score-circle-large {
  width: 120px;

  height: 120px;

  border-radius: 50%;

  border: 4px solid var(--moon-stone-green);

  display: flex;

  align-items: center;

  justify-content: center;

  margin: 0 auto;
}

.score-value {
  font-size: 2rem;

  font-weight: 700;
}

.scores-display {
  display: flex;

  justify-content: space-around;

  gap: var(--spacing-lg);

  margin: var(--spacing-md) 0;
}

.score-display-item {
  text-align: center;
}

.services-list {
  display: flex;

  flex-wrap: wrap;

  gap: var(--spacing-sm);
}

.service-badge {
  padding: 8px 16px;

  color: white;

  border-radius: 20px;

  display: inline-block;
}

.btn-vert {
  background: var(--carrot-orange) !important;
}

.numero-vert {
  font-size: 1.25rem;

  font-weight: 700;

  color: var(--carrot-orange);
}

/* Map sidebar avec scroll */

.map-sidebar {
  height: 600px;

  overflow-y: auto;
}

#main-map {
  height: 600px;
}

/* ========================================



   Page d'Accueil Full Screen



======================================== */

.home-fullscreen {
  margin: 0;

  padding: 0;

  overflow-x: hidden;
}

.fullscreen-container {
  display: flex;

  height: 100vh;

  width: 100vw;

  position: relative;
}

.half-section {
  flex: 1;

  display: flex;

  align-items: center;

  justify-content: center;

  position: relative;

  overflow: hidden;
}

.half-section.left-section {
  flex: 0 0 35%;
}

/* Section Gauche - Logo */

.left-section {
  background: var(--moon-stone-green);
}

.logo-wrapper {
  position: relative;

  z-index: 2;

  animation: fadeInScale 1s ease-out;
}

.home-logo {
  max-width: 420px;

  height: auto;

  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

.logo-placeholder {
  background: var(--white);

  padding: var(--spacing-xl);

  border-radius: 8px;

  text-align: center;

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.logo-text {
  font-size: 4rem;

  font-weight: 700;

  color: var(--moon-stone-green);

  display: block;
}

.logo-subtext {
  font-size: 1rem;

  color: var(--gray-dark);

  margin-top: var(--spacing-sm);

  display: block;
}

/* Pattern overlay optionnel */

.pattern-overlay {
  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  bottom: 0;

  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 35px,

    rgba(255, 255, 255, 0.05) 35px,

    rgba(255, 255, 255, 0.05) 70px
  );

  pointer-events: none;
}

/* Section Droite - Contenu */

.right-section {
  background: var(--white);
}

.content-wrapper {
  max-width: auto;

  padding: var(--spacing-xl);

  animation: fadeInUp 1s ease-out;
}

.home-title {
  font-size: 3rem;

  font-weight: 400;

  color: var(--gray-dark);

  margin-bottom: var(--spacing-md);

  line-height: 1.2;
}

.home-subtitle {
  font-size: 1.5rem;

  color: var(--moon-stone-green);

  margin-bottom: var(--spacing-lg);
}

.home-description {
  font-size: 1.1rem;

  line-height: 1.8;

  color: var(--gray-dark);

  margin-bottom: var(--spacing-xl);
}

.home-description p {
  margin-bottom: var(--spacing-md);
}

/* Boutons d'action */

.home-actions {
  display: flex;

  gap: var(--spacing-md);

  margin-bottom: var(--spacing-xl);
}

.btn-primary {
  background: var(--carrot-orange);

  color: var(--white);

  padding: 10px;

  border-radius: 0;

  font-weight: 600;

  font-size: 14px;

  text-transform: uppercase;

  text-decoration: none;

  display: inline-block;

  transition: all 0.3s ease;

  box-shadow: 0 4px 15px rgba(111, 154, 147, 0.3);
}

.btn-primary:hover {
  background: var(--moon-stone-green);

  transform: translateY(-2px);

  box-shadow: 0 6px 20px rgba(248, 148, 18, 0.3);

  color: #ffffff;
}

.btn-secondary {
  border: 2px solid var(--moon-stone-green);

  color: var(--moon-stone-green);

  padding: 10px;

  border-radius: 0;

  font-weight: 600;

  text-transform: uppercase;

  text-decoration: none;

  font-size: 16px;

  display: inline-block;

  line-height: 1.6;

  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--carrot-orange);

  color: var(--white);

  border-color: var(--carrot-orange);
}

/* Navigation rapide */

.quick-nav {
  display: flex;

  gap: var(--spacing-lg);
}

.nav-link {
  color: var(--gray-dark);

  text-decoration: none;

  font-size: 0.9rem;

  text-transform: uppercase;

  letter-spacing: 1px;

  transition: color 0.3s ease;

  position: relative;
}

.nav-link::after {
  content: "";

  position: absolute;

  bottom: -5px;

  left: 0;

  width: 0;

  height: 2px;

  background: var(--moon-stone-green);

  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Animations */

@keyframes fadeInScale {
  from {
    opacity: 0;

    transform: scale(0.9);
  }

  to {
    opacity: 1;

    transform: scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;

    transform: translateY(30px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* Social Links */

.social-links {
  display: flex;

  gap: var(--spacing-md);

  margin-top: var(--spacing-xl);
}

.social-link {
  width: 44px;

  height: 44px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: var(--gray-light);

  color: var(--gray-dark);

  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
}

.social-link.facebook:hover {
  background: #1877f2;

  color: white;
}

.social-link.twitter:hover {
  background: #000000;

  color: white;
}

.social-link.linkedin:hover {
  background: #0077b5;

  color: white;
}

.social-link.instagram:hover {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );

  color: white;
}

.social-link.youtube:hover {
  background: #ff0000;

  color: white;
}

/* ========================================



   FORMULAIRE CARTOGRAPHIE - AMÉLIORATIONS



======================================== */

/* Wrapper du formulaire */

.cartographie-page {
  min-height: 100vh;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 20px;
}

.form-container {
  max-width: 850px;

  width: 100%;

  margin: 0 auto;
}

/* Header du formulaire */

.form-header {
  text-align: center;

  margin-bottom: 45px;

  margin-top: 0;
}

.form-header h1 {
  font-weight: 600;
  color: #333;
}

img.logo-asf-violet {
  max-width: 170px;

  margin: 0 auto;
}

.logo-asf {
  font-size: 48px;

  font-weight: 700;

  color: #6366f1;

  line-height: 1;
}

.logo-subtitle {
  font-size: 14px;

  color: #6b7280;
}

/* Container principal du formulaire */

#cartographie-form-wrapper {
  background: white;

  padding: 40px 30px;

  border-radius: 20px;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Progress dots */

.progress-dots {
  display: flex;

  justify-content: center;

  gap: 8px;

  margin-bottom: 40px;
}

.dot {
  width: 8px;

  height: 8px;

  border-radius: 50%;

  background: #d1d5db;

  transition: all 0.3s ease;
}

.dot.active {
  background: #6366f1;

  width: 24px;

  border-radius: 12px;
}

/* Titres des étapes */

.form-step h2 {
  font-size: 28px;

  font-weight: 600;

  text-align: center;

  color: #333;

  margin-bottom: 12px;
}

.subtitle {
  text-align: center;

  color: #9ca3af;

  font-size: 15px;

  margin-bottom: 40px;

  line-height: 1.6;
}

/* ========================================



   CARTES D'IDENTITÉ (STEP 1)



======================================== */

.identity-cards-wrapper {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 16px;

  margin-bottom: 30px;
}

.identity-card {
  position: relative;
}

.identity-card input[type="radio"] {
  position: absolute;

  opacity: 0;

  width: 100%;

  height: 100%;

  cursor: pointer;

  z-index: 3;

  margin: 0;
}

.identity-card label {
  display: block;

  background: #f9fafb;

  border: 2px solid #e5e7eb;

  border-radius: 16px;

  padding: 24px 16px;

  text-align: center;

  cursor: pointer;

  transition: all 0.3s ease;

  position: relative;

  height: 100%;

  min-height: 180px;
}

.identity-card input:checked + label,
.identity-card.selected label {
  background: #eef2ff;

  border-color: #6366f1;

  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.card-icon {
  width: 64px;

  height: 64px;

  background: white;

  border-radius: 12px;

  display: flex;

  align-items: center;

  justify-content: center;

  margin: 0 auto 16px;

  color: #6b7280;

  transition: all 0.3s ease;
}

.identity-card input:checked + label .card-icon,
.identity-card.selected .card-icon {
  background: #e0e7ff;

  color: #6366f1;
}

.identity-card h3 {
  font-size: 16px;

  font-weight: 600;

  color: #333;

  margin-bottom: 6px;
}

.identity-card p {
  font-size: 13px;

  color: #6b7280;

  line-height: 1.4;
}

.card-tags {
  margin-top: 12px;

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 4px;
}

.card-tags span {
  display: inline-block;

  background: white;

  padding: 4px 10px;

  border-radius: 12px;

  font-size: 11px;

  color: #6366f1;

  font-weight: 500;
}

/* ========================================



   CARTES DE SERVICES (STEP 2)



======================================== */

.services-cards-wrapper {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 16px;

  margin-bottom: 30px;
}

.service-card {
  position: relative;
}

.service-card input[type="checkbox"] {
  position: absolute;

  opacity: 0;

  width: 100%;

  height: 100%;

  cursor: pointer;

  z-index: 3;

  margin: 0;
}

.service-card label {
  display: block;

  background: #f9fafb;

  border: 2px solid #e5e7eb;

  border-radius: 16px;

  padding: 20px 16px;

  text-align: center;

  cursor: pointer;

  transition: all 0.3s ease;

  height: 100%;

  min-height: 160px;
}

.service-card input:checked + label,
.service-card.selected label {
  background: #eef2ff;

  border-color: #6366f1;

  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.service-icon {
  width: 56px;

  height: 56px;

  background: white;

  border-radius: 12px;

  display: flex;

  align-items: center;

  justify-content: center;

  margin: 0 auto 12px;

  color: #6b7280;

  transition: all 0.3s ease;
}

.service-card input:checked + label .service-icon,
.service-card.selected .service-icon {
  background: #e0e7ff;

  color: #6366f1;
}

.service-card h3 {
  font-size: 15px;

  font-weight: 600;

  color: #333;

  margin-bottom: 6px;
}

.service-card p {
  font-size: 12px;

  color: #6b7280;

  line-height: 1.4;
}

/* ========================================



   OPTIONS ÂGE & GENRE (STEP 3)



======================================== */

.form-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 16px;

  font-weight: 600;

  color: #333;

  margin-bottom: 16px;

  text-align: left;
}

.age-options .wpcf7-list-item,
.gender-options .wpcf7-list-item {
  display: inline-block;

  margin: 6px;
}

.age-options .wpcf7-list-item-label,
.gender-options .wpcf7-list-item-label {
  display: block;

  padding: 12px 20px;

  background: #f9fafb;

  border: 2px solid #e5e7eb;

  border-radius: 24px;

  cursor: pointer;

  font-size: 14px;

  transition: all 0.3s ease;

  font-weight: 500;

  color: #4b5563;
}

.age-options input:checked + .wpcf7-list-item-label,
.gender-options input:checked + .wpcf7-list-item-label {
  background: #6366f1;

  color: white;

  border-color: #6366f1;
}

/* Cacher les radio/checkbox par défaut CF7 */

.age-options input[type="radio"],
.gender-options input[type="radio"] {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}

/* ========================================



   OPTIONS GOUVERNORAT (STEP 4)



======================================== */

.location-section {
  margin-bottom: 30px;
}

.gov-options {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 10px;
}

.gov-options .wpcf7-list-item {
  display: block;

  margin: 0;
}

.gov-options .wpcf7-list-item-label {
  display: block;

  padding: 12px 8px;

  background: #f9fafb;

  border: 2px solid #e5e7eb;

  border-radius: 10px;

  text-align: center;

  cursor: pointer;

  font-size: 13px;

  transition: all 0.3s ease;

  color: #4b5563;

  font-weight: 500;
}

.gov-options input:checked + .wpcf7-list-item-label {
  background: #6366f1;

  color: white;

  border-color: #6366f1;
}

.gov-options input[type="radio"] {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}

/* Option "National" - mise en avant */

.gov-options .wpcf7-list-item:first-child .wpcf7-list-item-label {
  grid-column: 1 / -1;

  background: #fef3c7;

  border-color: #f59e0b;

  color: #92400e;

  font-weight: 600;
}

.gov-options input:checked + .wpcf7-list-item-label:first-child {
  background: #f59e0b;

  color: white;
}

/* ========================================



   BOUTONS



======================================== */

.btn-confirm,
.btn-search {
  width: 100%;

  padding: 16px;

  background: #6366f1;

  color: white;

  border: none;

  border-radius: 12px;

  font-size: 16px;

  font-weight: 600;

  cursor: pointer;

  transition: all 0.3s ease;

  text-transform: uppercase;

  letter-spacing: 0.5px;
}

.btn-confirm:hover,
.btn-search:hover {
  background: #4f46e5;

  transform: translateY(-2px);

  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.btn-back {
  width: 100%;

  padding: 16px;

  background: transparent;

  color: #6b7280;

  border: 2px solid #e5e7eb;

  border-radius: 12px;

  font-size: 16px;

  font-weight: 600;

  cursor: pointer;

  transition: all 0.3s ease;

  text-transform: uppercase;

  letter-spacing: 0.5px;
}

.btn-back:hover {
  background: #f9fafb;

  border-color: #d1d5db;
}

.navigation-buttons {
  display: flex;

  gap: 12px;

  margin-top: 30px;
}

.navigation-buttons .btn-back {
  flex: 1;
}

.navigation-buttons .btn-confirm,
.navigation-buttons .wpcf7-submit {
  flex: 2;
}

/* ========================================



   GESTION DES ÉTAPES



======================================== */

.form-step {
  display: none;

  animation: slideInRight 0.4s ease;
}

.form-step.active {
  display: block;
}

@keyframes slideInRight {
  from {
    opacity: 0;

    transform: translateX(30px);
  }

  to {
    opacity: 1;

    transform: translateX(0);
  }
}

/* Container principal */

.multi-step-form {
  max-width: 900px;

  margin: 0 auto;

  padding: 0 15px;
}

/* ===========================



   INDICATEUR DE PROGRESSION



=========================== */

.step-indicator {
  display: flex;

  align-items: center;

  justify-content: center;

  margin-bottom: 50px;

  position: relative;
}

.step-number {
  width: 40px;

  height: 40px;

  border-radius: 50%;

  background: #e0e0e0;

  color: #999;

  display: flex;

  align-items: center;

  justify-content: center;

  font-weight: bold;

  position: relative;

  z-index: 2;

  transition: all 0.3s ease;
}

.step-number.active {
  background-color: --soft-lavender;

  color: #fff;

  transform: scale(1.2);

  box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.1);
}

.step-number.completed {
  background: #f89412;

  color: #fff;
}

.step-number.completed::after {
  content: "";

  position: absolute;

  font-size: 20px;
}

.step-line {
  width: 100px;

  height: 2px;

  background: #e0e0e0;

  position: relative;
}

/* ===========================



   ÉTAPES DU FORMULAIRE



=========================== */

.form-step {
  display: none;

  animation: slideIn 0.4s ease;
}

.form-step.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;

    transform: translateX(30px);
  }

  to {
    opacity: 1;

    transform: translateX(0);
  }
}

.form-step h2 {
  text-align: center;

  color: #2d3748;

  margin-bottom: 40px;

  font-size: 42px;
}

/* ===========================



   BOUTONS DE NAVIGATION



=========================== */

.step-buttons p {
  display: flex;

  justify-content: space-between;

  margin-top: 40px;

  gap: 20px;
}

.step-buttons p > * {
  flex: 1;

  /* chaque enfant prend une largeur égale */

  text-align: center;

  /* optionnel : centrer le texte dedans */
}

.btn-next,
.btn-prev,
.btn-submit {
  padding: 14px 30px;

  border: none;

  border-radius: 8px;

  font-size: 16px;

  font-weight: 600;

  cursor: pointer;

  transition: all 0.3s ease;
}

.btn-next,
.btn-submit {
  background: linear-gradient(135deg, #c7b7e2 0%, #764ba2 100%);

  color: #fff;

  flex: 1;
}

.btn-prev {
  background: transparent;

  border: 2px solid #e0e0e0;

  color: #666;

  flex: 0.5;
}

.btn-next:hover:not(:disabled),
.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);

  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-prev:hover {
  background: #f7f7f7;

  border-color: #999;
}

.btn-next:disabled,
.btn-submit:disabled {
  opacity: 0.5;

  cursor: not-allowed;

  background: #ccc;
}

/* ===========================



   STYLES DES CARTES (radio & checkbox)



=========================== */

/* Desktop : 2 colonnes fixes */

.card-radio,
.card-checkbox {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 20px;

  margin: 30px 0;
}

.card-radio input[type="radio"],
.card-checkbox input[type="checkbox"] {
  display: none;
}

.card-radio .wpcf7-list-item,
.card-checkbox .wpcf7-list-item {
  margin: 0 !important;
}

.card-radio .wpcf7-list-item-label,
.card-checkbox .wpcf7-list-item-label {
  display: flex;

  flex-direction: column;

  align-items: center;

  min-height: 160px;

  padding: 25px;

  background: #ffffff;

  border: 2px solid #f5f5f5;

  border-radius: 16px;

  cursor: pointer;

  transition: all 0.3s ease;

  position: relative;
}

.card-icon {
  width: 50px;

  height: 50px;

  background: linear-gradient(135deg, #c7b7e2 0%, #764ba2 100%);

  border-radius: 12px;

  margin-bottom: 15px;

  opacity: 0.8;
}

.card-label-title {
  font-size: 17px;

  font-weight: 600;

  color: #2d3748;

  margin-bottom: 5px;

  text-align: center;
}

.card-label-subtitle {
  font-size: 13px;

  color: #718096;

  text-align: center;
}

/* Hover */

.card-radio .wpcf7-list-item-label:hover,
.card-checkbox .wpcf7-list-item-label:hover {
  transform: translateY(-5px);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

  border-color: #c7b7e2;
}

.card-radio input[type="checkbox"] {
  display: none;
}

/* Sélection */

.card-radio input:checked + .wpcf7-list-item-label,
.card-checkbox input:checked + .wpcf7-list-item-label {
  background: linear-gradient(135deg, #c7b7e2 0%, #764ba2 100%);

  border-color: transparent;

  color: #fff;
}

.card-radio input:checked + .wpcf7-list-item-label .card-label-title,
.card-checkbox input:checked + .wpcf7-list-item-label .card-label-title,
.card-radio input:checked + .wpcf7-list-item-label .card-label-subtitle,
.card-checkbox input:checked + .wpcf7-list-item-label .card-label-subtitle {
  color: #fff;
}

.card-radio input:checked + .wpcf7-list-item-label .card-icon,
.card-checkbox input:checked + .wpcf7-list-item-label .card-icon {
  background: #fff;

  opacity: 0.9;
}

.card-radio input:checked + .wpcf7-list-item-label::after,
.card-checkbox input:checked + .wpcf7-list-item-label::after {
  content: "✓";

  position: absolute;

  top: 10px;

  right: 10px;

  width: 24px;

  height: 24px;

  background: #fff;

  color: #c7b7e2;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-weight: bold;

  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

@keyframes selected-animation {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.selected-animation {
  animation: selected-animation 0.5s ease;
}

/* ===========================



   INPUTS & SELECTS



=========================== */

input[type="text"],
select {
  width: 100%;

  padding: 14px 18px;

  margin: 0;

  font-size: 16px;

  font-weight: 500;

  border: 2px solid #e5e7eb;

  border-radius: 12px;

  background: #fff;

  color: #2d3748;

  transition: all 0.3s ease;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);

  appearance: none;
}

input[type="text"]:hover,
select:hover {
  border-color: #c7b7e2;

  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
}

input[type="text"]:focus,
select:focus {
  outline: none;

  border-color: #764ba2;

  box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.2);
}

input[type="text"]::placeholder {
  color: #a0aec0;

  font-style: italic;
}

select {
  background: #fff
    url("data:image/svg+xml;utf8,<svg fill='%23667eea' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>")
    no-repeat right 14px center/16px 16px;
}

.autre-wrapper,
.autre-genre-wrapper {
  margin-top: 15px;
}

/* ===========================



   SLIDER MOBILE SEULEMENT



   (dots au lieu de flèches)



=========================== */

span.sub-question {
  color: #666;

  font-size: 18px;

  margin-bottom: 30px;

  display: block;

  font-weight: 700;
}

/* Styles génériques des icônes */

.card-radio .wpcf7-list-item-label,
.card-checkbox .wpcf7-list-item-label {
  display: flex;

  align-items: center;

  justify-content: center;

  min-height: 160px;

  padding: 25px 20px;

  background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);

  border: 2px solid #e8ecf8;

  border-radius: 16px;

  cursor: pointer;

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  position: relative;

  text-align: center;
}

/* ========================================



   CORRECTIONS ET AMÉLIORATIONS CSS



   Pour le formulaire multi-étapes ASF



======================================== */

/* ========================================



   CORRECTIONS DES CARTES DE SÉLECTION



======================================== */

/* Reset des styles CF7 par défaut */

.wpcf7-form .wpcf7-list-item {
  margin: 0 !important;

  display: block !important;
}

.wpcf7-form .wpcf7-list-item input {
  display: none !important;

  /* Cache les checkbox/radio natifs */
}

/* Cartes pour checkboxes (étapes 1 et 2) */

.card-checkbox {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 20px;

  margin: 0;
}

.card-checkbox .wpcf7-list-item-label {
  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  min-height: 160px;

  padding: 25px 20px;

  background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);

  border: 2px solid #e8ecf8;

  border-radius: 16px;

  cursor: pointer;

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  position: relative;

  text-align: center;
}

/* Icône de la carte */

.card-icon {
  width: 66px;

  height: 66px;

  background: #f5f5f5;

  border-radius: 14px;

  display: flex;

  align-items: center;

  justify-content: center;

  margin-bottom: 15px;

  font-size: 28px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

  transition: all 0.3s ease;
}

/* Titre et sous-titre */

.card-label-title {
  font-size: 16px;

  font-weight: 600;

  color: #2d3748;

  margin-bottom: 6px;

  line-height: 1.3;
}

.card-label-subtitle {
  font-size: 13px;

  color: #718096;

  line-height: 1.4;

  opacity: 0.9;
}

/* État hover */

.card-checkbox .wpcf7-list-item-label:hover {
  transform: translateY(-4px);

  box-shadow: 0 12px 32px rgba(199, 183, 226, 0.25);

  border-color: #c7b7e2;
}

.card-checkbox .wpcf7-list-item-label:hover .card-icon {
  transform: scale(1.1);

  background: linear-gradient(135deg, #c7b7e2 0%, #764ba2 100%);

  color: white;
}

/* État sélectionné */

.card-checkbox input:checked + .wpcf7-list-item-label {
  background: linear-gradient(135deg, #c7b7e2 0%, #764ba2 100%);

  border-color: transparent;

  transform: scale(1.02);

  box-shadow: 0 12px 32px rgba(118, 75, 162, 0.3);
}

.card-checkbox input:checked + .wpcf7-list-item-label .card-label-title,
.card-checkbox input:checked + .wpcf7-list-item-label .card-label-subtitle {
  color: white;
}

.card-checkbox input:checked + .wpcf7-list-item-label .card-icon {
  background: white;

  color: #764ba2;
}

/* Checkmark pour les éléments sélectionnés */

.card-checkbox input:checked + .wpcf7-list-item-label::after {
  content: "✓";

  position: absolute;

  top: 12px;

  right: 12px;

  width: 28px;

  height: 28px;

  background: white;

  color: #764ba2;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-weight: bold;

  font-size: 16px;

  animation: checkmarkPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkmarkPop {
  0% {
    transform: scale(0) rotate(-45deg);

    opacity: 0;
  }

  50% {
    transform: scale(1.2) rotate(10deg);
  }

  100% {
    transform: scale(1) rotate(0deg);

    opacity: 1;
  }
}

/* ========================================



   STYLES DES SELECTS (ÉTAPE 3)



======================================== */

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;

  font-size: 14px;

  font-weight: 600;

  color: #4a5568;

  margin-bottom: 8px;

  text-transform: uppercase;

  letter-spacing: 0.5px;
}

.form-select {
  width: 100%;

  padding: 14px 18px;

  padding-right: 42px;

  font-size: 16px;

  font-weight: 500;

  border: 2px solid #e5e7eb;

  border-radius: 12px;

  background: white;

  color: #2d3748;

  transition: all 0.3s ease;

  appearance: none;

  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");

  background-repeat: no-repeat;

  background-position: right 14px center;

  background-size: 20px;
}

.form-select:hover {
  border-color: #c7b7e2;

  box-shadow: 0 5px 20px rgba(199, 183, 226, 0.15);
}

.form-select:focus {
  outline: none;

  border-color: #764ba2;

  box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.15);
}

/* Option spéciale pour "National" */

.form-select option[value="national"] {
  font-weight: 600;

  background: #fef3c7;
}

/* ========================================



   AMÉLIORATIONS DES BOUTONS



======================================== */

.btn-next,
.btn-prev,
.btn-submit {
  position: relative;

  overflow: hidden;

  font-family: "Open Sans", sans-serif;

  letter-spacing: 0.5px;
}

.btn-next::before,
.btn-submit::before {
  content: "";

  position: absolute;

  top: 50%;

  left: 50%;

  width: 0;

  height: 0;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.2);

  transform: translate(-50%, -50%);

  transition: width 0.6s, height 0.6s;
}

.btn-next:hover::before,
.btn-submit:hover::before {
  width: 300px;

  height: 300px;
}

/* Amélioration du bouton disabled */

.btn-next:disabled,
.btn-submit:disabled {
  background: #e2e8f0 !important;

  color: #a0aec0 !important;

  cursor: not-allowed !important;

  opacity: 1 !important;
}

/* ========================================



   ANIMATIONS DE TRANSITION



======================================== */

.form-step {
  animation: none;
}

.form-step.slide-in-right {
  animation: slideInRight 0.4s ease-out;
}

.form-step.slide-out-left {
  animation: slideOutLeft 0.4s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;

    transform: translateX(50px);
  }

  to {
    opacity: 1;

    transform: translateX(0);
  }
}

@keyframes slideOutLeft {
  from {
    opacity: 1;

    transform: translateX(0);
  }

  to {
    opacity: 0;

    transform: translateX(-50px);
  }
}

/* ========================================



   MESSAGES D'ERREUR ET VALIDATION



======================================== */

.wpcf7-not-valid-tip {
  background: #fee;

  color: #c33;

  padding: 8px 12px;

  border-radius: 8px;

  margin-top: 8px;

  font-size: 14px;

  animation: shake 0.5s;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-10px);
  }

  75% {
    transform: translateX(10px);
  }
}

.wpcf7-response-output {
  margin: 20px 0 !important;

  padding: 20px !important;

  border-radius: 12px !important;

  text-align: center;

  font-weight: 500;

  animation: slideInUp 0.4s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;

    transform: translateY(20px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

.wpcf7-mail-sent-ok {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;

  color: white !important;

  border: none !important;
}

/* ========================================



   LOADER DE SOUMISSION



======================================== */

.wpcf7-spinner {
  visibility: hidden;

  display: inline-block;

  width: 24px;

  height: 24px;

  border: 3px solid #c7b7e2;

  border-radius: 50%;

  border-top-color: transparent;

  animation: spin 1s linear infinite;

  margin-left: 10px;

  vertical-align: middle;
}

.wpcf7.submitting .wpcf7-spinner {
  visibility: visible;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================



   AMÉLIORATIONS VISUELLES SUPPLÉMENTAIRES



======================================== */

/* Ombre douce pour le conteneur principal */

.multi-step-form {
  padding: 15px;
}

/* Amélioration de l'indicateur de progression */

.step-indicator {
  position: relative;

  padding: 20px 0;

  margin-bottom: 40px;
}

.step-indicator::before {
  content: "";

  position: absolute;

  top: 50%;

  left: 10%;

  right: 10%;

  height: 2px;

  background: #e5e7eb;

  transform: translateY(-50%);

  z-index: 1;
}

.step-number {
  position: relative;

  z-index: 2;

  background: white;

  border: 3px solid #e5e7eb;
}

.step-number.active {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(199, 183, 226, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(199, 183, 226, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(199, 183, 226, 0);
  }
}

/* Question et sous-questions */

.sub-question {
  display: block;

  text-align: center;

  color: #666;

  font-size: 18px;

  margin-bottom: 30px;

  display: block;

  font-weight: 700;

  margin: 4px 0;

  font-style: italic;
}

span.card-icon img {
  max-width: 40px;
}

/* ========================================



   DOTS DE NAVIGATION AMÉLIORÉS



======================================== */

/* Wrapper des dots */

.slider-dots-wrapper {
  margin-top: 20px;

  padding: 15px 0;

  position: relative;
}

/* Container des dots avec scroll si nécessaire */

.slider-dots {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 8px;

  padding: 5px 10px;

  overflow-x: auto;

  scroll-behavior: smooth;

  -webkit-overflow-scrolling: touch;

  max-width: 100%;
}

/* Cache la scrollbar mais garde le scroll */

.slider-dots::-webkit-scrollbar {
  height: 3px;
}

.slider-dots::-webkit-scrollbar-track {
  background: transparent;
}

.slider-dots::-webkit-scrollbar-thumb {
  background: rgba(199, 183, 226, 0.3);

  border-radius: 3px;
}

/* Style des dots */

.slider-dot {
  width: 8px;

  height: 8px;

  border-radius: 50%;

  background: #e5e7eb;

  cursor: pointer;

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  position: relative;

  flex-shrink: 0;
}

/* Dot actif */

.slider-dot.active {
  background: linear-gradient(135deg, #c7b7e2 0%, #764ba2 100%);

  width: 24px;

  border-radius: 12px;

  transform: scale(1.2);

  box-shadow: 0 2px 8px rgba(118, 75, 162, 0.3);
}

/* Dots adjacents */

.slider-dot.prev,
.slider-dot.next {
  background-color: --soft-lavender;

  opacity: 0.6;

  transform: scale(1.1);
}

/* Hover effect */

.slider-dot:not(.active):hover {
  background-color: --soft-lavender;

  transform: scale(1.3);

  box-shadow: 0 0 0 4px rgba(199, 183, 226, 0.2);
}

/* Animation de clic */

.slider-dot.clicked {
  animation: dotClick 0.3s ease;
}

@keyframes dotClick {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.8);
  }

  100% {
    transform: scale(1);
  }
}

/* Barre de progression (optionnel) */

.slider-progress {
  width: 100%;

  height: 2px;

  background: #e5e7eb;

  border-radius: 2px;

  margin-top: 12px;

  overflow: hidden;

  opacity: 0.6;
}

.slider-progress-bar {
  height: 100%;

  background: linear-gradient(90deg, #c7b7e2 0%, #764ba2 100%);

  border-radius: 2px;

  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  box-shadow: 0 0 10px rgba(118, 75, 162, 0.3);
}

/* Numérotation des dots (optionnel) */

.slider-dot::before {
  content: attr(data-index);

  position: absolute;

  top: -20px;

  left: 50%;

  transform: translateX(-50%);

  font-size: 10px;

  color: #9ca3af;

  opacity: 0;

  transition: opacity 0.3s;
}

.slider-dot:hover::before {
  opacity: 1;
}

/* Version avec nombres (alternative) */

.slider-dots.numbered .slider-dot {
  width: 24px;

  height: 24px;

  background: #f3f4f6;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 11px;

  color: #6b7280;

  font-weight: 600;
}

.slider-dots.numbered .slider-dot::after {
  content: attr(data-index);

  display: block;

  position: relative;

  top: auto;

  left: auto;

  transform: none;
}

.slider-dots.numbered .slider-dot.active {
  background: linear-gradient(135deg, #c7b7e2 0%, #764ba2 100%);

  color: white;

  width: 32px;

  height: 32px;

  font-size: 13px;
}

/* Animation d'entrée */

.slider-dots {
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;

    transform: translateY(10px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

.form-step.step-3.active label {
  font-weight: bold;
}

.wpcf7-spinner {
  display: none !important;
}

.wpcf7.submitting .btn-submit {
  position: relative;

  color: transparent;

  /* cache le texte */
}

.wpcf7.submitting .btn-submit::after {
  content: "";

  position: absolute;

  top: 50%;

  left: 50%;

  width: 18px;

  height: 18px;

  border: 3px solid var(--carrot-orange);

  border-radius: 50%;

  border-top-color: transparent;

  transform: translate(-50%, -50%);

  animation: spin 1s linear infinite;
}

.screen {
  max-width: 100%;

  margin-inline: auto;

  padding: 16px 14px 80px;
}

/* Top App Bar */

.app-bar {
  display: grid;

  grid-template-columns: 40px 1fr 40px;

  align-items: center;

  gap: 8px;

  margin-bottom: 14px;
}

.icon-btn {
  appearance: none;

  border: none;

  background: transparent;

  display: grid;

  place-items: center;

  cursor: pointer;

  padding: 6px;

  border-radius: 10px;
}

.icon {
  width: 22px;

  height: 22px;

  stroke: #111;
}

h1.title {
  font-size: 18px;

  line-height: 1.2;

  text-align: center;

  margin: 0;

  font-weight: 700;

  letter-spacing: 0.2px;
}

/* Search */

.search {
  position: relative;

  margin: 6px 0 8px;
}

.search input {
  width: 100%;

  padding: 12px 14px 12px 42px;

  border-radius: 14px;

  border: 1px solid #e7e7ec;

  background: #fff;

  outline: none;

  font-size: 14px;
}

.search svg {
  position: absolute;

  left: 14px;

  top: 50%;

  transform: translateY(-50%);

  width: 18px;

  height: 18px;

  stroke: #9aa0ad;
}

/* Filter tabs row */

.filters {
  display: flex;

  gap: 24px;

  align-items: center;

  padding: 30px 2px 30px;

  color: #7c8190;

  font-weight: 600;

  font-size: 13px;
}

.filters .active {
  color: #5d62f0;
}

/* Card list */

.card {
  background: #fff;

  border-radius: var(--radius-xl);

  box-shadow: var(--shadow);

  padding: 14px;

  position: relative;

  border: 2px solid transparent;
}

.card.is-primary {
  border-color: var(--soft-lavender);
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
  border: 2px solid #e8ecf8;
}

.card.is-warm {
  background: #f6e9dc;
}

.card.is-mint {
  background: #e7f2ec;
}

.card.is-ice {
  background: #e9eff8;
}

.logo {
  width: 56px;

  height: 56px;

  border-radius: 16px;

  background: #fff;

  border: 1.5px solid #ececf6;

  display: grid;

  place-items: center;

  font-weight: 700;

  color: #b6b8c6;
}

.logo img {
  width: 56px;
  height: 56px;
}

.org-name {
  color: #8a8fab;

  font-weight: 700;

  font-size: 18px;

  margin: 2px 0 6px;

  text-align: center;
}

.specialite {
  margin: 0;

  text-align: center;

  font-weight: 700;
}

.tel {
  font-weight: 800;

  letter-spacing: 1px;

  opacity: 0.7;

  margin-top: 4px;
}

.meta {
  display: flex;

  gap: 18px;

  align-items: center;

  color: var(--gray-dark);

  font-size: 13px;

  margin: 10px 0 8px;
}

.meta > span {
  display: inline-flex;

  gap: 6px;

  align-items: center;
}

.meta svg {
  width: 16px;

  height: 16px;

  stroke: #7b8190;
}

.pills {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 6px;
}

.pill {
  background: #fff;

  border: 1px solid #e7e7ef;

  padding: 6px 12px;

  border-radius: 999px;

  font-size: 12px;

  font-weight: 700;

  color: var(--gray-dark);
}

/* Tiny helper for demo */

.sr {
  position: absolute;

  clip: rect(0 0 0 0);

  clip-path: inset(50%);

  width: 1px;

  height: 1px;

  overflow: hidden;

  white-space: nowrap;
}

.logo-form img {
  max-width: 180px;

  margin: 15px auto;
}

.form-container {
  max-width: 900px;

  margin: 0 auto;

  background: white;
}

.form-header {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Indicateur de progression */

.step-indicator {
  display: flex;

  align-items: center;

  justify-content: center;

  margin-bottom: 40px;

  gap: 10px;
}

.step-number {
  width: 40px;

  height: 40px;

  border-radius: 50%;

  background: #e0e0e0;

  color: #999;

  display: flex;

  align-items: center;

  justify-content: center;

  font-weight: bold;

  transition: all 0.3s ease;
}

.step-number.active {
  background-color: --soft-lavender;

  color: white;

  transform: scale(1.1);
}

.step-number.completed {
  background: #48bb78;

  color: white;
}

.step-line {
  flex: 1;

  max-width: 100px;

  height: 2px;

  background: #e0e0e0;
}

/* Étapes du formulaire */

.form-step {
  display: none;

  animation: fadeIn 0.3s ease;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;

    transform: translateY(10px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

.form-step h2 {
  color: #333;

  margin-bottom: 10px;
}

.sub-question {
  color: #666;

  font-size: 18px;

  margin-bottom: 30px;

  display: block;

  font-weight: 700;
}

/* Grid de cartes */

.card-checkbox-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 20px;

  margin-bottom: 0;
}

.card-checkbox {
  position: relative;

  cursor: pointer;

  display: block;
}

.card-checkbox input[type="checkbox"] {
  position: absolute;

  opacity: 0;
}

.card-checkbox .card-content {
  display: flex;

  flex-direction: column;

  align-items: center;

  padding: 20px;

  border-radius: 12px;

  transition: all 0.3s ease;

  min-height: 250px;

  justify-content: center;

  background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);

  border: 2px solid #e8ecf8;
}

.card-checkbox input:checked + .card-content {
  border-color: #c7b7e2;

  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1),
    rgba(118, 75, 162, 0.1)
  );

  transform: scale(1.02);

  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.card-icon {
  font-size: 30px;

  margin-bottom: 10px;
}

.card-label-title {
  font-weight: 600;

  color: #333;

  text-align: center;
}

.card-label-subtitle {
  font-size: 12px;

  color: #666;

  margin-top: 5px;

  text-align: center;

  min-height: 52px;
}

/* Formulaires classiques */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;

  margin-bottom: 8px;

  font-weight: 500;

  color: #333;
}

.form-group select {
  width: 100%;

  padding: 12px;

  border: 2px solid #e0e0e0;

  border-radius: 8px;

  font-size: 16px;

  transition: border-color 0.3s ease;
}

.form-group select:focus {
  outline: none;

  border-color: #c7b7e2;
}

.form-row {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 20px;
}

/* Boutons */

.step-buttons {
  display: flex;

  justify-content: center;

  margin-top: 30px;
}

.step-buttons button {
  max-width: 250px;

  margin: 4px auto;

  min-width: 180px;
}

.btn-prev,
.btn-next,
.btn-submit,
.btn-skip {
  padding: 12px 30px;

  border: none;

  border-radius: 8px;

  font-weight: 600;

  cursor: pointer;

  transition: all 0.3s ease;
}

.btn-prev {
  background: #e0e0e0;

  color: #666;
}

.btn-prev:hover {
  background: #d0d0d0;
}

.btn-next,
.btn-submit {
  background: linear-gradient(135deg, #c7b7e2, #764ba2);

  color: white;

  margin-left: auto;
}

.btn-next:hover:not(:disabled),
.btn-submit:hover {
  transform: translateY(-2px);

  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-next:disabled {
  opacity: 0.5;

  cursor: not-allowed;
}

.btn-ready {
  animation: readyPulse 0.5s ease;
}

@keyframes readyPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);

    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
  }

  100% {
    transform: scale(1);
  }
}

.btn-skip {
  background: transparent;

  border: 2px solid #c7b7e2;

  color: #c7b7e2;
}

/* Message d'erreur */

.form-error {
  background: #fee;

  border: 1px solid #fcc;

  border-radius: 8px;

  padding: 15px;

  margin-bottom: 20px;

  display: none;

  animation: slideDown 0.3s ease;
}

.error-message {
  color: #c33;

  font-weight: 500;

  display: flex;

  align-items: center;

  gap: 10px;
}

@keyframes slideDown {
  from {
    opacity: 0;

    transform: translateY(-10px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* Animation pulse */

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.pulse-animation {
  animation: pulse 0.3s ease;
}

form.filters-form {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 24px;

  align-items: center;
}

.filter-group label {
  font-weight: bold;

  font-style: normal;

  color: #333;
}

.grid {
  display: grid;

  gap: 30px;

  margin-top: 60px;

  grid-template-columns: repeat(2, 1fr);
}

/* ========================================

   STYLES POUR LES CHECKBOXES DE SERVICES

   AVEC SYSTÈME D'ACCORDÉON TOGGLE

   À AJOUTER À LA FIN DU FICHIER style.css

======================================== */

/* Bouton Toggle */

.filter-toggle {
  width: 100%;

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 14px 18px;

  background: linear-gradient(135deg, #c7b7e2 0%, #764ba2 100%);

  color: white;

  border: none;

  border-radius: 12px;

  font-size: 16px;

  font-weight: 600;

  cursor: pointer;

  transition: all 0.3s ease;

  box-shadow: 0 2px 8px rgba(118, 75, 162, 0.2);

  margin-bottom: 0;
}

.filter-toggle:hover {
  transform: translateY(-2px);

  box-shadow: 0 4px 16px rgba(118, 75, 162, 0.3);
}

.filter-toggle:active {
  transform: translateY(0);
}

.filter-toggle span:first-child {
  flex: 1;

  text-align: left;
}

.filter-count {
  background: rgba(255, 255, 255, 0.3);

  padding: 2px 10px;

  border-radius: 12px;

  font-size: 14px;

  margin: 0 8px;

  font-weight: 700;
}

.toggle-icon {
  transition: transform 0.3s ease;

  flex-shrink: 0;
}

.filter-toggle.active .toggle-icon {
  transform: rotate(180deg);
}

/* Groupe de checkboxes (accordéon) */

.checkbox-group {
  display: flex;

  flex-direction: column;

  gap: 12px;

  padding: 10px 0;

  max-height: none;

  overflow: hidden;

  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-group.collapsed {
  max-height: 0 !important;

  padding: 0;

  margin: 0;
}

.checkbox-label {
  display: flex;

  align-items: center;

  gap: 12px;

  padding: 12px 16px;

  background: #f9fafb;

  border: 2px solid #e5e7eb;

  border-radius: 10px;

  cursor: pointer;

  transition: all 0.3s ease;

  position: relative;
}

.checkbox-label:hover {
  background: #f3f4f6;

  border-color: #c7b7e2;

  transform: translateX(4px);
}

.checkbox-label input[type="checkbox"] {
  appearance: none;

  -webkit-appearance: none;

  width: 20px;

  height: 20px;

  border: 2px solid #d1d5db;

  border-radius: 4px;

  background: white;

  cursor: pointer;

  position: relative;

  transition: all 0.3s ease;

  flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:hover {
  border-color: #c7b7e2;
}

.checkbox-label input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #c7b7e2 0%, #764ba2 100%);

  border-color: #764ba2;
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: "✓";

  position: absolute;

  top: 50%;

  left: 50%;

  transform: translate(-50%, -50%);

  color: white;

  font-size: 14px;

  font-weight: bold;
}

.checkbox-label span {
  font-size: 15px;

  color: #333;

  font-weight: 500;

  user-select: none;
}

.checkbox-label input[type="checkbox"]:checked + span {
  color: #764ba2;

  font-weight: 600;
}

/* Animation lors de la sélection */

.checkbox-label input[type="checkbox"]:checked {
  animation: checkboxPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkboxPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* Style pour le select du gouvernorat */

.filter-group.byville .form-select {
  width: 100%;

  padding: 14px 18px;

  font-size: 16px;

  font-weight: 500;

  border: 2px solid #e5e7eb;

  border-radius: 12px;

  background: white;

  color: #2d3748;

  transition: all 0.3s ease;

  appearance: none;

  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");

  background-repeat: no-repeat;

  background-position: right 14px center;

  background-size: 20px;

  cursor: pointer;
}

.filter-group.byville .form-select:hover {
  border-color: #c7b7e2;

  box-shadow: 0 2px 10px rgba(199, 183, 226, 0.15);
}

.filter-group.byville .form-select:focus {
  outline: none;

  border-color: #764ba2;

  box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.15);
}

/* Scrollbar personnalisée pour la liste de checkboxes */

.checkbox-group::-webkit-scrollbar {
  width: 6px;
}

.checkbox-group::-webkit-scrollbar-track {
  background: #f1f1f1;

  border-radius: 10px;
}

.checkbox-group::-webkit-scrollbar-thumb {
  background-color: --soft-lavender;

  border-radius: 10px;
}

.checkbox-group::-webkit-scrollbar-thumb:hover {
  background: #764ba2;
}

/* Animation pour le bouton toggle au clic */

@keyframes toggleBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.filter-toggle:active {
  animation: toggleBounce 0.3s ease;
}

/* Style pour les badges de filtres actifs */

.active-filters-summary {
  margin: 60px 0;

  padding: 15px;

  background: #f9fafb;

  border-radius: 12px;

  border-left: 4px solid #c7b7e2;
}

.filters-info {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  align-items: center;
}

.filter-badge {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 6px 12px;

  background: white;

  border: 2px solid #e5e7eb;

  border-radius: 20px;

  font-size: 14px;

  font-weight: 500;

  color: #333;

  transition: all 0.3s ease;
}

.filter-badge:hover {
  border-color: #c7b7e2;

  transform: translateX(2px);
}

.filter-badge.service {
  border-color: #c7b7e2;

  background: linear-gradient(
    135deg,
    rgba(199, 183, 226, 0.1),
    rgba(118, 75, 162, 0.1)
  );
}

.filter-badge.gouvernorat {
  border-color: #f89412;

  background: rgba(248, 148, 18, 0.1);
}

.filter-badge.nom {
  border-color: #6f9a93;

  background: rgba(111, 154, 147, 0.1);
}

.remove-filter {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 20px;

  height: 20px;

  background: rgba(239, 68, 68, 0.1);

  color: #dc2626;

  border-radius: 50%;

  font-size: 16px;

  font-weight: bold;

  text-decoration: none;

  transition: all 0.3s ease;
}

.remove-filter:hover {
  background: #dc2626;

  color: white;

  transform: rotate(90deg);
}

.no-results {
  text-align: center;
}

.filter-group.byservice {
  position: relative;
}

div#services-checkboxes {
  position: absolute;

  width: 100%;

  z-index: 999;

  background: #fff;
}

.organismes-archive {
  margin: 50px 0 150px 0;
}

/* Annuaire — habillage */

.annuaire-container {
  padding-block: 24px 48px;
}

.annuaire-container .page-header {
  margin-bottom: 16px;
}

.annuaire-container .page-title {
  margin: 0 0 4px;
}

.annuaire-container .page-subtitle {
  color: var(--muted, #6b7280);

  margin: 0 0 16px;
}

.annuaire-toolbar {
  display: flex;

  gap: 12px;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 12px;

  flex-wrap: wrap;
}

.input.input-search {
  width: 320px;

  max-width: 100%;

  border: 1px solid var(--border-soft, #e5e7eb);

  border-radius: 12px;

  padding: 10px 12px;

  font-size: 15px;

  background: #fff;

  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.table-wrapper.card {
  background: #fff;

  border: 1px solid var(--border-soft, #e5e7eb);

  border-radius: 16px;

  padding: 8px;

  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* Table */

.table {
  width: 100%;

  border-collapse: collapse;
}

.table thead th {
  font-weight: 600;

  text-align: left;

  padding: 12px;

  border-bottom: 1px solid var(--border-soft, #e5e7eb);

  background: var(--soft-lavender, #fafafa);
}

.table tbody td {
  padding: 12px;

  border-bottom: 1px solid var(--border-soft, #f1f5f9);
}

.table-hover tbody tr:hover {
  background: rgba(76, 111, 255, 0.04);
}

.link-underline {
  text-decoration: none;

  border-bottom: 1px solid transparent;
}

.link-underline:hover {
  border-color: currentColor;
}

.badge-phone {
  display: inline-block;

  padding: 4px 8px;

  border-radius: 999px;

  background: var(--chip-bg, #f3f4f6);

  border: 1px solid var(--border-soft, #e5e7eb);
}

/* DataTables infos + pagination en pied */

.dt-footer {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  padding: 8px 6px 4px;

  font-size: 14px;

  color: var(--muted, #6b7280);
}

div.dataTables_wrapper div.dataTables_info {
  padding: 0 !important;
}

div.dataTables_wrapper div.dataTables_paginate {
  padding: 0 !important;
}

/* Style spécifique pour le select identité */

.form-group label[for="identite"] {
  color: #6b7280;

  font-style: italic;
}

.form-group #identite {
  background-color: #f9fafb;

  border: 2px dashed #e5e7eb;
}

.form-group #identite:focus {
  background-color: #fff;

  border-style: solid;
}

/* Indicateur de chargement pour les filtres */

.filters-form.is-loading {
  position: relative;

  opacity: 0.6;

  pointer-events: none;
}

.filters-form.is-loading::after {
  content: "";

  position: absolute;

  top: 50%;

  left: 50%;

  width: 40px;

  height: 40px;

  margin: -20px 0 0 -20px;

  border: 4px solid var(--soft-lavender);

  border-radius: 50%;

  border-top-color: transparent;

  animation: spin 0.8s linear infinite;

  z-index: 999;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================

   ANNUAIRE - FILTRE ALPHABÉTIQUE (SELECT)

======================================== */

.annuaire-archive {
  margin: 0 0 150px 0;
}

/* Badge filtre lettre */

.filter-badge.lettre {
  border-color: #8b5cf6;

  background: rgba(139, 92, 246, 0.1);
}

/* ========================================

   FORMULAIRE ANNUAIRE (4 colonnes sur desktop)

======================================== */

@media (min-width: 861px) {
  .annuaire-archive .filters-form {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 24px;

    align-items: stretch;
  }

  .annuaire-archive .filter-actions {
    justify-content: center;
  }
}

/* Mobile : 1 colonne */

@media (max-width: 860px) {
  .annuaire-archive .filters-form {
    display: grid;

    grid-template-columns: 1fr;

    gap: 16px;
  }
}

/* ========================================

   TABLEAU ANNUAIRE SIMPLIFIÉ

======================================== */

.annuaire-table {
  width: 100%;

  border-collapse: collapse;
}

.annuaire-table thead th {
  font-weight: 600;

  text-align: left;

  padding: 16px;

  border-bottom: 2px solid var(--soft-lavender);

  background: #fafafa;

  font-size: 14px;

  text-transform: uppercase;

  letter-spacing: 0.5px;

  color: #4b5563;
}

.annuaire-table tbody tr {
  border-bottom: 1px solid #f1f5f9;

  transition: background 0.2s ease;
}

.annuaire-table tbody tr:hover {
  background: rgba(199, 183, 226, 0.05);
}

.annuaire-table tbody td {
  padding: 16px;

  vertical-align: middle;
}

.annuaire-table .org-link {
  font-weight: 600;

  color: #111;

  text-decoration: none;

  transition: color 0.2s ease;
}

.annuaire-table .org-link:hover {
  color: var(--soft-lavender);
}

.annuaire-table .badge-phone {
  display: inline-block;

  padding: 6px 12px;

  background: var(--soft-lavender);

  color: white;

  border-radius: 20px;

  text-decoration: none;

  font-size: 14px;

  font-weight: 600;

  transition: all 0.3s ease;
}

.annuaire-table .badge-phone:hover {
  background: var(--carrot-orange);

  transform: scale(1.05);
}

/* ========================================



   Responsive



======================================== */

@media (max-width: 1024px) {
  .card-radio,
  .card-checkbox {
    grid-template-columns: repeat(2, 250px);

    /* 3 colonnes de 220px */

    justify-content: center;

    /* centre la grille horizontalement */
  }
}

@media (max-width: 992px) {
  .fullscreen-container {
    flex-direction: column;

    height: auto;
  }

  .half-section {
    flex: none;

    height: 50vh;
  }

  .home-title {
    font-size: 2rem;
  }

  .home-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;

    text-align: center;
  }

  .map-wrapper {
    flex-direction: column;

    height: auto;
  }

  .map-sidebar {
    width: 100%;

    max-height: 300px;
  }

  .map-container {
    height: 500px;
  }
}

@media (max-width: 860px) {
  form.filters-form {
    display: grid;

    grid-template-columns: repeat(1, minmax(0, 1fr));

    margin: 24px 0;

    align-items: stretch;
  }

  .grid {
    display: block;

    gap: 30px;

    margin-top: 60px;

    grid-template-columns: repeat(1, 1fr);
  }

  .filter-actions.filter-group button {
    margin-bottom: 10px;
  }

  .meta {
    flex-direction: column;
  }

  .pills {
    justify-content: center;
  }

  .tel {
    text-align: center;
  }

  .card {
    margin: 20px 0;
  }

  /* le conteneur devient un slider horizontal */

  .form-step.step-1 .card-checkbox-grid,
  .form-step.step-2 .card-checkbox-grid {
    display: flex !important;

    /* écrase la grille existante */

    grid-template-columns: none !important;

    gap: 12px;

    overflow-x: auto;

    padding: 6px 8px 12px;

    scroll-snap-type: x mandatory;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;

    /* Firefox */
  }

  .form-step.step-1 .card-checkbox-grid::-webkit-scrollbar,
  .form-step.step-2 .card-checkbox-grid::-webkit-scrollbar {
    display: none;

    /* WebKit */
  }

  /* chaque carte occupe 50% de la largeur visible => 2 par vue */

  .form-step.step-1 .card-checkbox-grid .card-checkbox,
  .form-step.step-2 .card-checkbox-grid .card-checkbox {
    flex: 0 0 calc(100% - 6px);

    scroll-snap-align: start;
  }

  /* assure une carte “pleine” cliquable et uniforme */

  .form-step.step-1 .card-checkbox-grid .card-content,
  .form-step.step-2 .card-checkbox-grid .card-content {
    height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: center;
  }

  /* petit voile à droite pour suggérer le scroll (optionnel) */

  .form-step.step-1 .card-checkbox-grid::after,
  .form-step.step-2 .card-checkbox-grid::after {
    content: "";

    flex: 0 0 24px;

    /* espace fantôme */
  }

  .slider-dots {
    display: flex;

    justify-content: center;

    gap: 8px;

    margin: 8px 0 4px;
  }

  .slider-dot {
    width: 8px;

    height: 8px;

    border-radius: 999px;

    background: var(--border-soft, #e6e6e6);

    border: 1px solid var(--border-soft, #e6e6e6);

    cursor: pointer;

    transition: transform 0.2s ease, background-color 0.2s ease;
  }

  .slider-dot[aria-selected="true"] {
    background: var(--brand, #c7b7e2);

    border-color: var(--brand, #c7b7e2);

    transform: scale(1.15);
  }

  .annuaire-table {
    font-size: 14px;
  }

  .annuaire-table thead th,
  .annuaire-table tbody td {
    padding: 12px 8px;
  }

  /* Masquer colonne gouvernorat sur mobile */

  .annuaire-table thead th:nth-child(2),
  .annuaire-table tbody td:nth-child(2) {
    display: none;
  }
}

@media (min-width: 861px) {
  .slider-dots {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .card-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 20px;
  }

  .slider-track {
    display: flex !important;

    flex-wrap: nowrap;

    transition: transform 0.35s ease;
  }

  .slider-track .wpcf7-list-item {
    flex: 0 0 100%;

    /* chaque item = 100% du conteneur */

    max-width: 48%;

    /* pas plus */
  }

  .slider-track .wpcf7-list-item-label {
    width: 100%;
  }

  .card-checkbox {
    grid-template-columns: 1fr;

    gap: 15px;
  }

  .card-checkbox .wpcf7-list-item-label {
    padding: 20px 15px;
  }

  .card-icon {
    width: 60px;

    height: 60px;

    font-size: 24px;
  }

  .card-label-title {
    font-size: 15px;

    min-height: 40px;
  }

  .card-checkbox .card-content {
    padding: 5px;
  }

  .card-label-subtitle {
    font-size: 12px;
  }

  /* Amélioration du slider mobile */

  .slider-container {
    touch-action: pan-y;

    -webkit-overflow-scrolling: touch;
  }

  .slider-track {
    scroll-snap-type: x mandatory;
  }

  .slider-track .wpcf7-list-item {
    scroll-snap-align: center;
  }

  .step-buttons p {
    display: flex;

    justify-content: space-between;

    margin-top: 40px;

    gap: 20px;

    flex-direction: column;
  }

  .form-step h2 {
    text-align: center;

    color: #2d3748;

    margin-bottom: 40px;

    font-size: 26px;
  }

  .card-radio,
  .card-checkbox {
    display: block;
  }

  .slider-container {
    position: relative;

    overflow: hidden;
  }

  .slider-track {
    display: flex;

    gap: 15px;

    transition: transform 0.35s ease;

    will-change: transform;
  }

  .slider-track .wpcf7-list-item-label {
    min-width: 85%;

    flex-shrink: 0;
  }

  /* Dots */

  .slider-dots {
    display: flex;

    justify-content: center;

    margin-top: 14px;

    gap: 8px;
  }

  .slider-dot {
    width: 10px;

    height: 10px;

    border-radius: 999px;

    background: #d1d5db;

    cursor: pointer;

    transition: background 0.25s, transform 0.25s;
  }

  .slider-dot.active {
    background-color: --soft-lavender;

    transform: scale(1.15);
  }

  /* Boutons nav du formulaire en colonne */

  .step-buttons {
    flex-direction: column;
  }

  .btn-prev {
    flex: 1;
  }

  #cartographie-form-wrapper {
    padding: 30px 20px;
  }

  .identity-cards-wrapper,
  .services-cards-wrapper {
    grid-template-columns: 1fr;
  }

  .gov-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-step h2 {
    font-size: 24px;
  }

  .subtitle {
    font-size: 14px;
  }

  .navigation-buttons {
    flex-direction: column;
  }

  .navigation-buttons .btn-back,
  .navigation-buttons .btn-confirm {
    flex: none;

    width: 100%;
  }

  .content-wrapper {
    padding: var(--spacing-md);
  }

  .home-logo {
    max-width: 200px;
  }

  .home-title {
    font-size: 1.75rem;
  }

  .home-description {
    font-size: 1rem;
  }

  .quick-nav {
    flex-direction: column;

    gap: var(--spacing-sm);
  }

  .header-inner {
    flex-direction: column;

    gap: var(--spacing-md);
  }

  .main-navigation ul {
    flex-direction: column;

    text-align: center;
  }

  .organismes-grid {
    grid-template-columns: 1fr;
  }

  .checkbox-group {
    max-height: 300px;

    overflow-y: auto;

    padding-right: 8px;
  }

  .checkbox-label {
    padding: 10px 14px;
  }

  .checkbox-label span {
    font-size: 14px;
  }

  .filter-toggle {
    font-size: 14px;

    padding: 12px 16px;
  }

  .toggle-icon {
    width: 18px;

    height: 18px;
  }

  .input.input-search {
    width: 100%;
  }

  .table thead th:nth-child(4),
  .table tbody td:nth-child(4) {
    display: none;
  }
}

@media (max-width: 540px) {
  .slider-dots {
    gap: 6px;
  }

  .slider-dot {
    width: 6px;

    height: 6px;
  }

  .slider-dot.active {
    width: 20px;
  }

  .logo-asf {
    font-size: 40px;
  }

  .identity-card label,
  .service-card label {
    padding: 16px 12px;

    min-height: 150px;
  }

  .card-icon,
  .service-icon {
    width: 50px;

    height: 50px;
  }

  .gov-options {
    grid-template-columns: 1fr;
  }

  .half-section {
    height: auto;

    min-height: 125px;
  }
}

.mymap svg {
  width: auto;

  fill: #fff;

  stroke: #000;
}

/* ——— Badges pointer ——— */

svg .gov-badge {
  pointer-events: none;
}

/* pas cliquable, laisse le clic à la région */

svg .gov-badge-circle {
  fill: #8b5cf6;

  /* couleur du disque */

  stroke: #fff;

  /* anneau blanc fin */

  stroke-width: 1;

  filter: drop-shadow(0 0 1px rgba(16, 24, 40, 0.35));

  /* halo léger */
}

svg .gov-badge-tip {
  fill: #8b5cf6;

  /* même couleur que le disque */

  stroke: #fff;

  /* petit liséré blanc */

  stroke-width: 0.7;

  filter: drop-shadow(0 0 1px rgba(16, 24, 40, 0.25));
}

svg .gov-badge-text {
  font-weight: 100;

  line-height: 1;

  fill: #fff !important;

  fill: none;

  stroke: #fff;
}

.box-icon svg {
  width: 48px;

  height: 48px;

  stroke-width: 0;
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-switcher img {
  width: 18px;
  height: auto;
  vertical-align: middle;
}

.lang-switcher li {
  list-style: none;
  display: inline-flex;
  gap: 0.35rem;
}

.lang-switcher li.current-lang a {
  font-weight: 600;
  text-decoration: underline;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0 2rem;
  padding: 1.5rem 0;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: #333;
  background: #fff;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
  background: #c7b7e2;
  border-color: #c7b7e2;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(199, 183, 226, 0.3);
}

.pagination .page-numbers.current {
  background: #6f9a93;
  border-color: #6f9a93;
  color: #fff;
  cursor: default;
  box-shadow: 0 2px 8px rgba(111, 154, 147, 0.3);
}

.pagination .prev,
.pagination .next {
  background: #f89412;
  border-color: #f89412;
  color: #fff;
  font-weight: 700;
}

.pagination .prev:hover,
.pagination .next:hover {
  background: #e07d00;
  border-color: #e07d00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(248, 148, 18, 0.4);
}

.pagination .dots {
  border: none;
  background: transparent;
  color: #999;
  cursor: default;
  pointer-events: none;
}

.pagination .page-numbers:focus {
  outline: 2px solid #6f9a93;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .pagination {
    gap: 0.35rem;
    margin: 2rem 0 1.5rem;
  }

  .pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
  }
  .form-header {
    flex-direction: column;
  }
  .form-header h1 {
    font-size: 20px;
  }
  .logo-form img {
    max-width: 120px;
  }
}
.form-header h1 {
  color: #333;
}
.heading {
  margin-top: 20px;
}
.heading h1 {
  margin-bottom: 0;
  text-transform: uppercase;
}

span.choix-possible {
  font-size: 22px;
  vertical-align: middle;
}

/* ========================================
   HEADER GLOBAL
======================================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

/* ========================================
   BURGER MENU
======================================== */

/* Bouton Burger */
.burger-menu-btn {
  position: relative;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  z-index: 1001;
}

.burger-menu-btn:hover {
  background: rgba(118, 75, 162, 0.1);
}

.burger-menu-btn span {
  display: block;
  width: 24px;
  height: 3px;
  background: #764ba2;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Overlay Menu */
.burger-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.burger-menu-overlay.active {
  right: 0;
}

.burger-menu-content {
  padding: 2rem;
}

.burger-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #6b7280;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.burger-close:hover {
  background: rgba(118, 75, 162, 0.1);
  color: #764ba2;
}

.burger-menu-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 2rem 0;
  padding-top: 0.5rem;
}

/* Actions Buttons */
.burger-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.burger-btn-primary {
  display: block;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #c7b7e2 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(118, 75, 162, 0.2);
}

.burger-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(118, 75, 162, 0.3);
}

/* Lien Retour Accueil */
.burger-home-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s;
}

.burger-home-link:hover {
  background: #e5e7eb;
  color: #764ba2;
}

.burger-home-link svg {
  flex-shrink: 0;
}

/* Backdrop */
.burger-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.burger-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
  .burger-menu-overlay {
    max-width: 100%;
  }

  .burger-menu-content {
    padding: 1.5rem;
  }

  .site-logo img {
    height: 70px;
  }
}
p.powered-by,
p.page-subtitle {
  font-style: italic;
  font-weight: 500;
}
