/*

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, .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: var(--spacing-md) 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: 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;

}



/* 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: 700px;

    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: var(--spacing-sm) var(--spacing-lg);

    border-radius: 0;

    font-weight: 600;

    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: var(--spacing-sm) var(--spacing-lg);

    border-radius: 0;

    font-weight: 600;

    text-transform: uppercase;

    text-decoration: none;

    display: inline-block;

    transition: all 0.3s ease;

}



.btn-secondary:hover {

    background: var(--carrot-orangen);

    color: var(--white);

}



/* 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-fullscreen {

    width: 100%;

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

}



.form-container {

    max-width: 850px;

    width: 100%;

    margin: 0 auto;

}



/* Header du formulaire */

.form-header {

    text-align: center;

    margin-bottom: 40px;

}



.form-header h1 {

    font-size: 28px;

    font-weight: 600;

    color: #333;

    margin-top: 10px;

    margin-bottom: 35px;

}



img.logo-asf-violet {

    max-width: 170px;

    margin: 0 auto;

}



.logo-form {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 4px;

}



.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: #C7B7E2;

    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: 12px 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 {

    display: block;

    text-align: center;

    margin: 0;

    color: #ccc !important;

    font-size: 18px;

}









/* 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;

    text-transform: capitalize;

}







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

   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: 30px 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;

    text-transform: capitalize;

}



/* 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: #a0aec0;

    font-size: 14px;

    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: #C7B7E2;

    opacity: 0.6;

    transform: scale(1.1);

}



/* Hover effect */

.slider-dot:not(.active):hover {

    background: #C7B7E2;

    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: .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 */
.list {
    display: grid;
    gap: 30px;
    margin-top: 6px;
    grid-template-columns: repeat(2, 1fr);
}

.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)
}

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

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

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

.row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: start
}

.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
}

.org-name {
    color: #8a8fab;
    font-weight: 700;
    font-size: 13px;
    margin: 2px 0 6px;
    text-align: center;
}

.specialite {
    margin: 0;
    text-align: center;
    font-weight: 700
}

.tel {
    font-weight: 800;
    letter-spacing: 1px;
    opacity: .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
}





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

   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: 768px) {


    .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;

    }



    .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: #C7B7E2;

        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;

    }

}





@media (max-width: 540px) {


    .slider-dots {

        gap: 6px;

    }



    .slider-dot {

        width: 6px;

        height: 6px;

    }



    .slider-dot.active {

        width: 20px;

    }

    .form-header h1 {

        font-size: 24px;

    }



    .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;
    }


    .list {
        display: grid;
        gap: 30px;
        margin-top: 6px;
        grid-template-columns: repeat(1, 1fr);
    }

    .row {
        display: flex;
        flex-direction: column;
        gap: 12px;
        justify-content: center;
        align-items: center;
    }
}