/* --- VARIABLES --- */
:root {
    --primary-blue: #1A73E8;
    --primary-dark: #1557b0;
    --secondary-bg: #F0F7FF;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --white: #ffffff;
    --success-green: #10B981;
    --warning-orange: #F59E0B;
    --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --radius-pill: 50px;
    --radius-card: 16px;
    --max-width: 1200px;
}

/* --- RESET & GLOBAL --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FAFAFA;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER FIXED (CORRIGÉ) --- */
header {
    /* On passe en FIXED pour qu'il sorte du flux */
    position: fixed; 
    top: 20px; 
    z-index: 1000;
    
    /* Centrage horizontal parfait en Fixed */
    left: 0;
    right: 0;
    margin: 0 auto;
    
    /* Dimensions */
    width: calc(100% - 32px);
    max-width: 1100px;
    
    /* Style Glassmorphism */
    background: rgba(255, 255, 255, 0.67); /* Un poil plus opaque pour la lisibilité */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding-left: 10px;
    padding-right: 10px;
}

header .container {
    padding: 0 20px;
}

/* ===== LOGO (ROBUSTE WP + FIX MOBILE/DESKTOP) ===== */
/* Mets ce bloc en TOUT DERNIER du CSS */

/* Cible le lien logo quelle que soit la structure WP */
header a.logo,
header .logo,
header a.custom-logo-link,
header .custom-logo-link,
header .site-logo a,
header .navbar-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 100% !important;
    line-height: 0 !important;
    text-decoration: none !important;

    margin: 0 !important;
    margin-left: -20px !important;   /* ← remet le logo à gauche */
    padding: 0 !important;
    transform: translateY(3px);

}


/* Cible l’image logo quelle que soit la structure WP (img / picture) */
header a.logo img,
header .logo img,
header a.custom-logo-link img,
header .custom-logo-link img,
header img.custom-logo,
header picture img {
    height: 74px !important;                /* ✅ MOBILE (augmente ici) */
    width: auto !important;
    max-width: none !important;
    display: block !important;
    object-fit: contain !important;

    position: relative !important;
    top: 2px !important;                    /* ✅ descend léger (0 à 3px) */
}

/* Desktop */
@media (min-width: 1024px){
    header a.logo img,
    header .logo img,
    header a.custom-logo-link img,
    header .custom-logo-link img,
    header img.custom-logo,
    header picture img {
        height: 92px !important;            /* ✅ DESKTOP (augmente ici) */
        top: 2px !important;
    }
}



.desktop-nav {
    display: none;
    gap: 30px;
    align-items: center;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.desktop-nav a:hover {
    color: var(--primary-blue);
}

.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    display: block;
    padding: 5px;
}

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(180deg, #E6F0FF 0%, #FFFFFF 100%);
    /* IMPORTANT : Puisque le header est "fixed", le hero commence tout en haut (Y=0).
        On ajoute un gros padding-top pour que le TEXTE ne soit pas caché sous le header.
        Calcul : 20px (marge header) + 70px (hauteur header) + 60px (espace aération) = ~150px
    */
    padding: 150px 0 80px 0; 
    overflow: hidden;
    /* Plus besoin de marges négatives bizarres */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    text-align: center;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
    border: 1px solid rgba(26, 115, 232, 0.2);
    margin-bottom: 24px;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.highlight-blue {
    color: var(--primary-blue);
}

.hero-desc {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Boutons */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid #DCEBFF;
}

/* --- VISUALS --- */
.hero-visual {
    display: none;
    position: relative;
}

.hero-card-mockup {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: #DCEBFF;
    border-radius: 50%;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(60px);
}

/* --- VALUES --- */
.values-section {
    padding: 80px 0;
    text-align: center;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.values-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #F3F4F6;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: #DCEBFF;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: #EFF6FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ===== HALO LUMINEUX (cartes confiance) ===== */
.values-section,
.values-section .container,
.values-section .features-grid{
    overflow: visible;
}

.values-section .features-grid{
    margin-top: 24px;
    padding-top: 0;
}

.values-section .feature-card{
    position: relative;
    overflow: visible;
    background: transparent;
}

/* Halo derrière – rendu léger */
.values-section .feature-card::before{
    content: "";
    position: absolute;

    top: -18px;
    left: -34px;
    right: -34px;
    bottom: -30px;

    border-radius: calc(var(--radius-card) + 12px);

    background: radial-gradient(
        ellipse at 50% 48%,
        rgba(26, 115, 232, 0.34),
        rgba(26, 115, 232, 0) 78%
    );

    filter: blur(18px);
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

/* Hover: halo plus large mais plus doux */
.values-section .feature-card:hover::before{
    top: -30px;
    left: -40px;
    right: -40px;
    bottom: -36px;

    background: radial-gradient(
        ellipse at 50% 48%,
        rgba(26, 115, 232, 0.26),
        rgba(26, 115, 232, 0) 82%
    );

    filter: blur(24px);
    opacity: 1;
}

/* Fond blanc au-dessus du halo */
.values-section .feature-card::after{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-card);
    background: var(--white);
    z-index: 1;
}

/* Contenu au-dessus du fond */
.values-section .feature-card > *{
    position: relative;
    z-index: 2;
}

/* --- BOTTOM --- */
.bottom-section {
    background-color: #F8FAFC;
    padding: 80px 0;
    text-align: center;
}

.bottom-cta-box {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    max-width: 900px;
    margin: 0 auto;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #E5E7EB;
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- FOOTER --- */
footer {
    background: #1F2937;
    color: #9CA3AF;
    padding: 40px 0 20px 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    border-left: 5px solid #ccc;
}

.toast.active {
    transform: translateX(0);
}

.toast-success { border-left-color: var(--success-green); }
.toast-success i { color: var(--success-green); }

.toast-info { border-left-color: var(--primary-blue); }
.toast-info i { color: var(--primary-blue); }

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.toast-msg {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* --- MEDIA QUERIES --- */
@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { flex-direction: row; }
}

@media (min-width: 1024px) {
    .mobile-menu-btn { display: none; }
    .desktop-nav { display: flex; }
    /* Ajustement padding hero car le header est fixed */
    .hero-section { text-align: left; padding: 160px 0 100px 0; }
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
    .hero-desc { margin-left: 0; }
    .btn-group { flex-direction: row; }
    .hero-visual { display: block; }
    .features-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-content { flex-direction: row; justify-content: space-between; text-align: left; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Animation de chargement */
.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ===============================
   STEPS SECTION – COMMENT ÇA MARCHE
   =============================== */

.steps-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F6FAFF 100%);
}

.steps-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px auto;
}

.steps-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.steps-header p {
    color: var(--text-gray);
    font-size: 1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.step-item {
    position: relative;
    background: var(--white);
    border-radius: 18px;
    padding: 36px 28px 32px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(26, 115, 232, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(26, 115, 232, 0.12);
}

.step-number {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background: rgba(26, 115, 232, 0.12);
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step-item p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Responsive */
@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* ===============================
   FAQ SECTION – ACCORDION (ULTRA COMPACT)
   =============================== */

.faq-section{
  padding: 48px 0;                 /* ↓↓↓ beaucoup moins haut */
  background: #F8FAFC;
}

.faq-header{
  text-align: center;
  max-width: 680px;
  margin: 0 auto 22px auto;        /* ↓↓↓ */
}

.faq-header h2{
  font-family: 'Poppins', sans-serif;
  font-size: 1.9rem;               /* ↓ */
  line-height: 1.15;
  margin-bottom: 8px;              /* ↓ */
  color: var(--text-dark);
}

.faq-header p{
  color: var(--text-gray);
  font-size: 0.95rem;              /* ↓ */
  line-height: 1.35;               /* ↓ */
}

.faq-list{
  max-width: 720px;                /* ↓ = plus “dense” visuellement */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;                       /* ↓ */
}

.faq-item{
  background: var(--white);
  border-radius: 16px;             /* ↓ */
  border: 1px solid #E5E7EB;
  box-shadow: 0 8px 22px rgba(0,0,0,0.04); /* ↓ */
  overflow: hidden;
}

.faq-question{
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 12px 16px;              /* ↓↓↓ gros gain ici */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;                       /* ↓ */
  text-align: left;
}

.faq-title{
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.98rem;              /* ↓ */
  line-height: 1.25;               /* ↓ */
}

/* Icon + / x (plus petit) */
.faq-icon{
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: rgba(26, 115, 232, 0.10);
  position: relative;
}

.faq-icon::before,
.faq-icon::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;                     /* ↓ */
  height: 2px;
  background: var(--primary-blue);
  transform: translate(-50%, -50%);
  border-radius: 2px;
}

.faq-icon::after{
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Answer */
.faq-answer{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;  /* un poil plus “snappy” */
  padding: 0 16px;
}

.faq-answer p{
  color: var(--text-gray);
  font-size: 0.95rem;              /* ↓ */
  line-height: 1.45;               /* ↓↓↓ */
  margin-top: 6px;                 /* ↓ */
  padding: 0 0 12px 0;             /* ↓↓↓ */
  max-width: 100%;                 /* enlève la contrainte 92% */
}

/* Open state */
.faq-item.is-open{
  border-color: rgba(26, 115, 232, 0.22);
  box-shadow: 0 14px 28px rgba(26, 115, 232, 0.08);
}

.faq-item.is-open .faq-icon{
  background: rgba(26, 115, 232, 0.14);
}

/* Turn + into x */
.faq-item.is-open .faq-icon::after{
  transform: translate(-50%, -50%) rotate(0deg);
}

/* Hover (soft) */
.faq-item:hover{
  border-color: rgba(26, 115, 232, 0.22);
}

/* Responsive */
@media (min-width: 768px){
  .faq-section{ padding: 56px 0; }
  .faq-question{ padding: 12px 18px; }
  .faq-answer{ padding: 0 18px; }
  .faq-answer p{ padding-bottom: 12px; }
}

@media (max-width: 480px){
  .faq-header h2{ font-size: 1.7rem; }
  .faq-title{ font-size: 0.95rem; }
  .faq-icon{ width: 32px; height: 32px; flex: 0 0 32px; }
}

/* =========================================================
   HALO FAQ – plein écran, non coupé
   ========================================================= */

.faq-page{
  position: relative;
  overflow: visible; /* IMPORTANT: ne pas couper le halo */
}

/* Empêche le scroll horizontal si le halo déborde */
html, body{
  overflow-x: hidden;
}

.faq-page::before{
  content:"";
  position:absolute;
  top:-260px;
  left:50%;
  transform:translateX(-50%);
  width:160vw;
  max-width:2400px;
  height:700px;
  background: radial-gradient(ellipse at center,
    rgba(26,115,232,.16) 0%,
    rgba(220,235,255,.12) 35%,
    rgba(255,255,255,0) 72%
  );
  filter: blur(30px);
  z-index:0;
  pointer-events:none;
}

.faq-page > *{
  position:relative;
  z-index:1;
}

/* Ne jamais mettre de fond opaque qui masque le halo */
.faq-page .page-content,
.faq-page .faq-section,
.faq-page .container{
  background: transparent !important;
}

/* ===================== FAQ — CARTES METIERS  ===================== */

.faq-cards-wrap{
  margin: 26px auto 42px;
}

.faq-cards-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Responsive */
@media (max-width: 980px){
  .faq-cards-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .faq-cards-grid{ grid-template-columns: 1fr; }
}

.faq-card{
  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  padding: 28px 28px 26px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  display: flex;
  flex-direction: column;
  min-height: 270px;
}


.faq-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
}

.faq-card{
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}


.faq-card-title{
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.faq-card-links{
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-card-links li{
  margin: 12px 0;
}

/* Enlève l’espace du dernier item pour aligner "Tout afficher" */
.faq-card-links li:last-child{
  margin-bottom: 0;
}


.faq-card-links a{
  display: inline-block;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.78);
  font-size: 15.5px;
  line-height: 1.45;
}

.faq-card-links a:hover{
  color: #0f172a;
  text-decoration: underline;
}

.faq-card-cta{
  margin-top: auto;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding-top: 22px;

  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: #0f172a;
}

.faq-card-cta:hover{
  text-decoration: underline;
}

/* Optionnel mais recommandé : éviter que l’ancre soit cachée par ton header fixed */
.faq-section h2[id]{
  scroll-margin-top: 110px;
}

/* ===================== FAQ — SWITCH (Particulier / Artisan) ===================== */
.faq-tabbar{
  width: 100%;
  max-width: 400px;
  margin: 28px auto 22px;
  padding: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;

  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.faq-tab{
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  border-radius: 999px;

  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: rgba(15, 23, 42, 0.65);
  cursor: pointer;

  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.faq-tab.is-active{
  background: rgba(255,255,255,0.95);
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

/* ===================== FAQ — PANELS ===================== */
.faq-panel{
  display: none;
}

.faq-panel.is-active{
  display: block;
}

/* ===== Cartes FAQ : liens ===== */
.faq-page .faq-card-links a{
  color: rgba(15, 23, 42, 0.78);
  text-decoration: none;
}

.faq-page .faq-card-links a:hover{
  text-decoration: underline;
}

/* ===== "Tout afficher" — STRICTEMENT identique Particulier / Artisan ===== */
.faq-page .faq-card-more,
.faq-page .faq-card-more:visited{
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: auto;     /* même logique que .faq-card-cta */
  padding-top: 22px;    /* CLEF : même espace que Particulier */
}

.faq-page .faq-card-more:hover{
  text-decoration: underline;
}
/* ===================== CONTACT PAGE ===================== */

.contact-container{
  max-width: 1100px;
  margin: 0 auto;
}

/* HERO : reset dur pour éviter la “capsule blanche” du thème */
.contact-hero{
  max-width: 820px;
  margin: 0 auto 60px;
  text-align: center;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  filter: none !important;
  backdrop-filter: none !important;
}

/* Si ton thème met la capsule via pseudo-elements */
.contact-hero::before,
.contact-hero::after{
  content: none !important;
  display: none !important;
}

.contact-hero h1{
  margin: 0 0 10px;
}

.contact-hero p{
  margin: 0 auto;
  max-width: 760px;
  color: #6B7280;
}

/* Grid */
.contact-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: start;
}

/* Cards */
.contact-card{
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.contact-card h2{
  margin: 0 0 10px 0;
  font-size: 1.1rem;
}

.contact-muted{
  color: #6B7280;
  margin: 0 0 14px 0;
  line-height: 1.5;
}

/* Email */
.contact-email{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  margin: 12px 0 16px 0;
}

.contact-email a{
  font-weight: 700;
  text-decoration: none;
}

/* Actions */
.contact-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Listes */
.contact-list{
  margin: 0;
  padding-left: 18px;
  color: #374151;
}

.contact-list li{
  margin: 8px 0;
}

/* Colonne droite sticky */
.contact-note{
  position: sticky;
  top: 110px;
}

.contact-badges{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.contact-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  color: #111827;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px){
  .contact-grid{
    grid-template-columns: 1fr;
  }
  .contact-note{
    position: static;
  }
}

/* ===============================
   CONTACT – MOBILE (CENTER + BOUTONS + ESPACEMENTS)
   =============================== */
@media (max-width: 900px){

.contact-card:not(:last-child){
  margin-bottom: 25px !important;
}


  /* Empêche tout débordement / décalage horizontal */
  html, body{
    overflow-x: hidden !important;
  }

  /* Container principal : recentrage strict */
  .contact-page,
  .contact-section,
  .contact-container{
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  /* Si un parent applique un transform (cause fréquente du décalage) */
  .contact-section *{
    transform: none !important;
  }

  /* Hero : un peu d’air avant les cartes */
  .contact-hero{
    margin-bottom: 32px !important;
  }

  /* Grid : 1 colonne + centrage + espace entre blocs */
  .contact-grid{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    justify-content: center !important;
    justify-items: center !important;
  }

  /* Colonnes */
  .contact-left,
  .contact-right{
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto !important;
  }

  /* Cartes : centrées + respiration interne */
  .contact-card{
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  /* Texte : petite respiration avant les actions */
  .contact-card p{
    margin-bottom: 16px !important;
  }

  /* Zone actions : centrée + espace entre boutons */
  .contact-actions{
    width: 100% !important;
    margin-top: 12px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  /* Boutons : plus petits + centrés */
  .contact-actions a,
  .contact-actions .btn,
  .contact-card .btn{
    margin-left: auto !important;
    margin-right: auto !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 260px !important;
    padding: 10px 16px !important;
    font-size: 15px !important;
    text-align: center !important;
    border-radius: 12px !important;
  }

}

.contact-card:not(:last-child){
  margin-bottom: 30px;
}

/* ===============================
   HALO BLEU – CONTACT (copie FAQ)
   =============================== */
.contact-hero{
    position: relative;
    z-index: 0;
    overflow: visible;
    padding: 40px 0;
}

.contact-hero::before{
    content: "";
    position: absolute;

    top: -60px;
    left: -120px;
    right: -120px;
    bottom: -80px;

    border-radius: 999px;

    background: radial-gradient(
        ellipse at 50% 48%,
        rgba(26, 115, 232, 0.26),
        rgba(26, 115, 232, 0) 78%
    );

    filter: blur(40px);
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

.contact-hero > *{
    position: relative;
    z-index: 1;
}

/* ===============================
   HALO CONTACT – sur le conteneur (sans toucher .contact-hero::before)
   =============================== */
.contact-page{
  position: relative;
  overflow: visible;
}

.contact-page::before{
  content:"";
  position:absolute;
  top:-220px;
  left:50%;
  transform:translateX(-50%);
  width:160vw;
  max-width:2400px;
  height:650px;
  background: radial-gradient(ellipse at center,
    rgba(26,115,232,.16) 0%,
    rgba(220,235,255,.12) 35%,
    rgba(255,255,255,0) 72%
  );
  filter: blur(30px);
  z-index: 0;
  pointer-events:none;
}

.contact-page > *{
  position: relative;
  z-index: 1;
}

/* =========================================================
   CONTACT – BOUTONS PLUS FINS (RÉDUCTION HAUTEUR)
   ========================================================= */

.contact-actions .btn{
  padding: 12px 32px !important;   /* avant : 16px 32px */
  font-size: 0.95rem;              /* optionnel, très léger */
}

/* Hover plus discret pour rester cohérent */
.contact-actions .btn:hover{
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

/* =========================================================
   COMMENT ÇA MARCHE — PAGE (how-page)
   ========================================================= */

.how-page{
  position: relative;
  overflow: visible;
}

/* Halo global (même logique FAQ/Contact) */
.how-page::before{
  content:"";
  position:absolute;
  top:-240px;
  left:50%;
  transform:translateX(-50%);
  width:160vw;
  max-width:2400px;
  height:700px;
  background: radial-gradient(ellipse at center,
    rgba(26,115,232,.16) 0%,
    rgba(220,235,255,.12) 35%,
    rgba(255,255,255,0) 72%
  );
  filter: blur(30px);
  z-index: 0;
  pointer-events:none;
}

.how-page > *{
  position: relative;
  z-index: 1;
}

.how-hero{
  padding: 180px 0 30px; /* tient compte de ton header fixed */
}

.how-hero-inner{
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.how-hero-inner h1{
  margin: 0 0 10px;
}

.how-hero-inner p{
  margin: 0 auto;
  max-width: 760px;
  color: #6B7280;
}

.how-steps{
  padding: 40px 0 80px;
}

.how-steps-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.how-step{
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.how-step-number{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(26,115,232,0.12);
  color: #1A73E8;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.how-step h2{
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.how-step p{
  margin: 0;
  color: #6B7280;
  line-height: 1.55;
}

.how-cta{
  margin-top: 22px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
}

.how-cta h3{
  margin: 0 0 8px;
}

.how-cta p{
  margin: 0 auto 14px;
  max-width: 640px;
  color: #6B7280;
}

.how-cta-actions{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px){
  .how-hero{ padding: 170px 0 20px; }
  .how-steps-grid{ grid-template-columns: 1fr; }
}

/* ===============================
   COMMENT ÇA MARCHE — PAGE
   =============================== */

.how-page{
  max-width: 1100px;
  margin: 0 auto;
  padding: 180px 16px;
}

/* ===================== QUALIFICATION ===================== */
.qualification-page{ padding-top: 20px; }

.qualification-hero{
  padding: 70px 0 60px;
}

.qualification-container{
  max-width: 900px;
}

.qualification-hero h1{
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 10px;
}

.qualification-subtitle{
  color: #6B7280;
  margin-bottom: 26px;
  max-width: 52ch;
}

.qualification-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

.qualification-card{
  display: block;
  text-decoration: none;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.qualification-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
  border-color: rgba(26, 115, 232, 0.20);
}

.qualification-card h2{
  margin: 10px 0 8px;
  color: #111827;
  font-size: 1.1rem;
}

.qualification-card p{
  color: #6B7280;
  margin: 0 0 14px;
  line-height: 1.45;
}

.qualification-card-head{
  display: flex;
  justify-content: flex-start;
}

.qualification-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(26, 115, 232, 0.10);
  color: #1A73E8;
}

.qualification-card.is-urgent .qualification-badge{
  background: rgba(245, 158, 11, 0.14);
  color: #92400E;
}

.qualification-action{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #111827;
}

.qualification-action i{
  opacity: 0.75;
}

.qualification-note{
  margin-top: 16px;
  color: #6B7280;
  font-size: 0.95rem;
}

/* Mobile */
@media (max-width: 768px){
  .qualification-hero{ padding: 56px 0 50px; }
  .qualification-grid{ grid-template-columns: 1fr; }
}

/* ===================== URGENCE — PAGE FORMULAIRE (FINAL) ===================== */
.form-urgence-page{ padding: 34px 0 64px; }

/* ===== HERO (tu gardes 80px) ===== */
.form-urgence-page .form-hero{
  padding-top: 80px;
  padding-bottom: 18px;
}

.form-urgence-page .form-hero-inner{
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.form-urgence-page .form-hero-inner h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 850;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: #0f172a;
}

.form-urgence-page .form-hero-inner p{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(15,23,42,0.80);
}

.form-urgence-page .form-hero-inner p strong{
  display: block;
  margin-top: 10px;
  font-size: 13.2px;
  font-weight: 600;
  color: rgba(15,23,42,0.50);
  letter-spacing: 0.015em;
}

/* ===================== LAYOUT 2 COLONNES ===================== */
.form-urgence-page .urgence-layout{
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 18px;
  align-items: start;
  margin-top: 12px;
}

.form-urgence-page .urgence-main .mal-form{
  margin-top: 0;
  padding: 16px;
}

/* Colonne droite sticky */
.form-urgence-page .urgence-side{
  position: sticky;
  top: 110px; /* reste visible sous le header */
  display: grid;
  gap: 18px;
}

/* ===================== ILLUSTRATION CARD ===================== */
.form-urgence-page .urgence-illu-card{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.80);
  box-shadow: 0 16px 32px rgba(15,23,42,0.06);
  overflow: hidden;
}

.form-urgence-page .urgence-illu{
  padding: 12px 12px 0;
}

.form-urgence-page .urgence-illu svg{
  width: 100%;
  height: auto;
  display: block;
}

.form-urgence-page .urgence-illu-text{
  padding: 10px 14px 14px;
  display: grid;
  gap: 4px;
  line-height: 1.35;
}

.form-urgence-page .urgence-illu-text strong{
  font-weight: 900;
}

.form-urgence-page .urgence-illu-text span{
  font-size: 13px;
  color: rgba(15,23,42,0.70);
}

/* ===================== APPEL RECOMMANDÉ (COLONNE DROITE) — VERSION PREMIUM SOFT ===================== */
.form-urgence-page .urgence-side-call{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.08); 
  background: #ffffff;                 
  padding: 14px;
  box-shadow: 0 16px 32px rgba(15,23,42,0.06);
}

.form-urgence-page .urgence-side-call-h{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.form-urgence-page .urgence-side-call-h .ic{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(37,99,235,0.10);
  flex: 0 0 auto;
}

.form-urgence-page .urgence-side-call-h .sub{
  font-size: 13px;
  color: rgba(15,23,42,0.70);
  margin-top: 2px;
}

.form-urgence-page .urgence-side-phone{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  text-decoration: none;
  text-align: center;

  padding: 10px 14px;
  border-radius: 12px;

  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;

  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;

  box-shadow: 0 8px 18px rgba(37,99,235,0.16);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.form-urgence-page .urgence-side-phone:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37,99,235,0.20);
  filter: brightness(1.02);
}

.form-urgence-page .urgence-side-call{
  text-align: center; /* centre le bouton */
}

.form-urgence-page .urgence-side-phone:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37,99,235,0.20);
  filter: brightness(1.02);
}

/* ===================== MINI NOTE HORS CADRE ===================== */
.form-urgence-page .urgence-side-note{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(15,23,42,0.02);
  padding: 12px 14px 6px; /* réduit le bas */
}

.form-urgence-page .urgence-side-call{
  margin-top: 14px;
}

.form-urgence-page .urgence-side-note strong{
  font-weight: 900;
}

.form-urgence-page .urgence-side-note p{
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(15,23,42,0.72);
}

/* ===================== FORM UI (inchangé, consolidé) ===================== */
.form-urgence-page .mal-form{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(15,23,42,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-urgence-page .mal-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-urgence-page .mal-field{ display:flex; flex-direction:column; gap:8px; }
.form-urgence-page .mal-field-full{ grid-column: 1 / -1; }

.form-urgence-page .mal-field label{ font-weight:800; font-size:14px; }

.form-urgence-page .mal-field input,
.form-urgence-page .mal-field select,
.form-urgence-page .mal-field textarea{
  width:100%;
  border: 1px solid rgba(15,23,42,0.14);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.form-urgence-page .mal-field textarea{ resize: vertical; }

.form-urgence-page .mal-check{ display:flex; gap:10px; align-items:flex-start; }
.form-urgence-page .mal-check input{ margin-top: 3px; }
.form-urgence-page .mal-legal{ margin: 6px 0 0; font-size: 12.5px; opacity: .75; line-height: 1.45; }

/* Alert */
.form-urgence-page .mal-alert{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.10);
  font-size: 13px;
  line-height: 1.45;
}
.form-urgence-page .mal-alert a{ text-decoration: underline; }

/* Wizard */
.form-urgence-page .mal-stepper{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.form-urgence-page .mal-step{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.70);
}

.form-urgence-page .mal-step span{
  width:28px;height:28px;border-radius:999px;
  display:grid;place-items:center;
  font-weight:900;
  background: rgba(15,23,42,0.10);
}

.form-urgence-page .mal-step em{ font-style:normal; font-size:13px; font-weight:800; opacity:.85; }

.form-urgence-page .mal-step.is-active{
  border-color: rgba(37,99,235,0.30);
  box-shadow: 0 10px 18px rgba(37,99,235,0.10);
}
.form-urgence-page .mal-step.is-active span{ background:#2563eb; color:#fff; }

.form-urgence-page .mal-panel{ display:none; }
.form-urgence-page .mal-panel.is-active{ display:block; }

.form-urgence-page .mal-panel-title{
  margin: 2px 0 12px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.form-urgence-page .mal-wiz-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.form-urgence-page .mal-wiz-actions .btn{ min-width: 180px; justify-content:center; }

/* Errors */
.form-urgence-page .mal-field.is-error input,
.form-urgence-page .mal-field.is-error select,
.form-urgence-page .mal-field.is-error textarea{
  border-color: rgba(220,38,38,0.55);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}

/* ===================== PÉRIMÈTRE (en bas) ===================== */
.form-urgence-page .urgence-scope{ margin-top: 14px; }
.form-urgence-page .urgence-scope-card{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.75);
  box-shadow: 0 16px 32px rgba(15,23,42,0.06);
  padding: 14px 16px 16px;
}

.form-urgence-page .urgence-scope-card h2{ margin:0 0 6px; font-size: 16px; font-weight: 950; }
.form-urgence-page .urgence-scope-card p{ margin:0; opacity:.85; line-height:1.55; }

.form-urgence-page .urgence-scope-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}
.form-urgence-page .urgence-scope-col h3{ margin:0 0 8px; font-size:14px; font-weight:900; opacity:.9; }
.form-urgence-page .urgence-scope-col ul{ margin:0; padding-left:18px; }
.form-urgence-page .urgence-scope-col li{ margin:6px 0; line-height:1.5; }
.form-urgence-page .urgence-scope-note{ margin-top: 10px; font-size: 13px; opacity: .85; }
.form-urgence-page .urgence-scope-note a{ text-decoration: underline; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px){
  .form-urgence-page .urgence-layout{ grid-template-columns: 1fr; }
  .form-urgence-page .urgence-side{ position: static; }
}

@media (max-width: 860px){
  .form-urgence-page .mal-grid{ grid-template-columns: 1fr; }
  .form-urgence-page .mal-stepper{ grid-template-columns: 1fr; }
  .form-urgence-page .urgence-scope-grid{ grid-template-columns: 1fr; }
}

/* ===== URGENCE — FINITIONS HERO + HARMONISATION ===== */
.form-urgence-page .form-hero{
  padding-top: 80px;           /* tu gardes */
  padding-bottom: 22px;        /* un peu plus d’air sous le hero */
}

.form-urgence-page .form-hero-inner p{
  max-width: 700px;
  margin: 0 auto;
}

/* On force le strong à rester "dans" le paragraphe, pas comme une 2e phrase trop pauvre */
.form-urgence-page .form-hero-inner p strong{
  display: inline;             /* au lieu de block */
  margin-top: 0;
  font-size: inherit;
  font-weight: 800;
  color: rgba(15,23,42,0.85);
  letter-spacing: 0;
}

/* ===== FORM — rendre les selects plus propres sur Safari sans tout casser ===== */
.form-urgence-page .mal-field select{
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(15,23,42,0.55) 50%),
    linear-gradient(135deg, rgba(15,23,42,0.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

/* ===================== URGENCE — BOUTONS (plus petits) ===================== */
.form-urgence-page .mal-wiz-actions .btn{
  min-width: 140px;     /* au lieu de 180 */
  padding: 10px 16px;   /* plus compact */
  font-size: 14px;
  border-radius: 999px;
}

.form-urgence-page .mal-wiz-actions{
  gap: 8px;
}

/* Sur mobile : boutons full width (plus clean) */
@media (max-width: 560px){
  .form-urgence-page .mal-wiz-actions .btn{
    width: 100%;
    min-width: 0;
  }
}

/* ===================== URGENCE — UPLOAD PHOTOS ===================== */
.form-urgence-page .mal-upload{
  border: 1px dashed rgba(15,23,42,0.18);
  background: rgba(15,23,42,0.02);
  border-radius: 14px;
  padding: 12px;
}

.form-urgence-page .mal-upload input[type="file"]{
  width: 100%;
  border: 0;
  background: transparent;
  padding: 6px 0;
}

.form-urgence-page .mal-upload-help{
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(15,23,42,0.70);
}

.form-urgence-page .mal-upload-preview{
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 860px){
  .form-urgence-page .mal-upload-preview{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px){
  .form-urgence-page .mal-upload-preview{
    grid-template-columns: 1fr;
  }
}

.form-urgence-page .mal-thumb{
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,0.10);
  background: #fff;
}

.form-urgence-page .mal-thumb img{
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.form-urgence-page .mal-thumb span{
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  color: rgba(15,23,42,0.65);
}

.form-urgence-page .mal-upload-error{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(220,38,38,0.25);
  background: rgba(220,38,38,0.08);
  font-size: 13px;
  line-height: 1.45;
}

/* ===================== BOUTONS WIZARD — PLUS PETITS ===================== */
.form-urgence-page .mal-wiz-actions{
  gap: 10px;
  justify-content: flex-start;
}

.form-urgence-page .mal-wiz-actions .btn{
  min-width: 130px;      /* plus petit */
  padding: 10px 16px;    /* plus compact */
  font-size: 14px;
  border-radius: 999px;
}

/* Bouton primaire légèrement moins “gros” */
.form-urgence-page .mal-wiz-actions .btn.btn-primary{
  padding: 10px 18px;
}

/* ===================== UPLOAD — DROP ZONE (FINAL, SANS DOUBLONS) ===================== */

/* Header "Photos + recommandé" (doit être HORS de la zone cliquable) */
.form-urgence-page .mal-upload-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top: 18px;
  margin-bottom: 10px; /* + d’air avant la zone */
}

.form-urgence-page .mal-upload-title{
  font-weight: 900;
  font-size: 14px;
  color: rgba(15,23,42,0.88);
}

.form-urgence-page .mal-upload-tag{
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37,99,235,0.10);
  color: #2563eb;
}

/* Input file caché (qu’il soit dans le DOM, pas forcément dans la dropzone) */
.form-urgence-page .mal-file{
  position: absolute;
  left: -9999px;
}

/* Zone cliquable = seulement la dropzone (label) */
.form-urgence-page .mal-drop{
  cursor: pointer;
  display:block;
  border: 1px dashed rgba(15,23,42,0.18);
  background: rgba(15,23,42,0.02);
  border-radius: 16px;
  padding: 14px;
}

/* Layout interne */
.form-urgence-page .mal-drop-ui{
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px 14px;
  align-items: start;    
}

.form-urgence-page .mal-drop-ic{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  background: rgba(37,99,235,0.10);
  color: #2563eb;
}

.form-urgence-page .mal-drop-txt{
  display:flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.form-urgence-page .mal-drop-txt strong{
  display:block;
  font-size: 14px;
  font-weight: 900;
  color: rgba(15,23,42,0.88);
}

.form-urgence-page .mal-drop-txt span{
  display:block;
  font-size: 13px;
  color: rgba(15,23,42,0.65);
  line-height: 1.35;
}

.form-urgence-page .mal-drop-sub{
  margin-top: 6px;
  color: rgba(15,23,42,0.55);
}

/* Bouton "Choisir des photos" */
.form-urgence-page .mal-drop-btn{
  border-radius: 999px;
  padding: 10px 14px;
  white-space: nowrap;
}

/* Preview */
.form-urgence-page .mal-upload-preview{
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.form-urgence-page .mal-thumb{
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,0.10);
  background: #fff;
}

.form-urgence-page .mal-thumb img{
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.form-urgence-page .mal-thumb span{
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  color: rgba(15,23,42,0.62);
}

/* Responsive */
@media (max-width: 860px){
  .form-urgence-page .mal-upload-preview{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px){
  .form-urgence-page .mal-drop-ui{
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .form-urgence-page .mal-drop-btn{ width: 100%; }
  .form-urgence-page .mal-upload-preview{ grid-template-columns: 1fr; }
}

/* ===================== INFOS PRATIQUES — ACCORDÉON (FINAL CLEAN) ===================== */

.urgence-infos{
  margin-top: 16px;
}

.urgence-details{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 16px 32px rgba(15,23,42,0.06);
  overflow: hidden;
}

.urgence-details summary{
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  user-select: none;
  position: relative;
  padding-right: 46px; /* place pour le chevron */
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.urgence-details summary::-webkit-details-marker{
  display: none;
}

.urgence-details-title{
  font-weight: 900;
  font-size: 15px;
}

.urgence-details-sub{
  font-size: 13px;
  opacity: .65;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Hover = “cliquable” */
.urgence-details summary:hover{
  background: rgba(15,23,42,0.02);
}

/* Chevron */
.urgence-details summary::after{
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(15,23,42,0.55);
  border-bottom: 2px solid rgba(15,23,42,0.55);
  transform: translateY(-50%) rotate(45deg);
  transition: transform .18s ease, border-color .18s ease;
}

/* Ouvert = chevron vers le haut */
.urgence-details[open] summary::after{
  transform: translateY(-50%) rotate(-135deg);
  border-color: rgba(37,99,235,0.85);
}

/* Petit feedback quand c’est ouvert */
.urgence-details[open]{
  border-color: rgba(37,99,235,0.18);
  box-shadow: 0 16px 32px rgba(37,99,235,0.08);
}

/* Contenu interne */
.urgence-scope--compact .urgence-scope-card{
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0 16px 16px;
}

/* ===================== URGENCE — TABLEAU COMPARATIF FINAL (même design) ===================== */

/* Colonnes : aspect tableau */
.form-urgence-page .urgence-scope--compact ul{
  padding: 10px;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  margin: 0;
  list-style: none;
}

/* Items : lignes de tableau */
.form-urgence-page .urgence-scope--compact li{
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 12px 10px;
  line-height: 1.45;
}

/* séparateur entre lignes */
.form-urgence-page .urgence-scope--compact li + li{
  margin-top: 0;
  border-top: 1px solid rgba(15,23,42,0.08);
}

/* Titre métier */
.form-urgence-page .urgence-scope--compact li strong{
  display: block;
  margin: 0 0 4px 0;
  font-weight: 800;
}

/* Description */
.form-urgence-page .urgence-scope--compact li p{
  margin: 0;
  font-size: 14px;
  color: #334155;
}

/* Header "Inclusion / Exclusion" */
.form-urgence-page .urgence-scope--compact h3,
.form-urgence-page .urgence-scope--compact h4{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 900;
}

.form-urgence-page .urgence-scope--compact h3::after,
.form-urgence-page .urgence-scope--compact h4::after{
  content: "";
  display: inline-block;
  height: 1px;
  width: 40px;
  background: rgba(15,23,42,0.14);
}

/* ===================== ICÔNES (✓ vert uniquement côté Inclus) ===================== */

/* Reset total */
.form-urgence-page .urgence-scope--compact li::before{
  content: none !important;
}

/* INCLUS : ✓ vert */
.form-urgence-page .urgence-scope--compact ul:nth-of-type(1) li{
  position: relative;
  padding-left: 34px;
}

.form-urgence-page .urgence-scope--compact ul:nth-of-type(1) li::before{
  content: "✓";
  position: absolute;
  left: 10px;
  top: 12px;
  font-weight: 900;
  font-size: 14px;
  color: #16a34a;
}

/* EXCLUS : aucune icône + pas d’espace réservé */
.form-urgence-page .urgence-scope--compact ul:nth-of-type(2) li{
  padding-left: 10px;
}

/* Responsive */
@media (max-width: 820px){
  .form-urgence-page .urgence-scope--compact li{
    padding: 12px 10px;
  }
  .form-urgence-page .urgence-scope--compact ul:nth-of-type(1) li{
    padding-left: 34px;
  }
}

/* ===================== URGENCE — PATCH ALIGNEMENT BOUTON DROPZONE ===================== */

/* 1) Assure un centrage vertical fiable dans la ligne */
.form-urgence-page .mal-drop-ui{
  align-items: center !important;
}

/* 2) Le "bouton" est un <span> : on le passe en inline-flex pour centrer son contenu */
.form-urgence-page .mal-drop .mal-drop-btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;   /* évite l'effet "trop haut" du line-height des .btn */
}

/* 3) Micro-ajustement optique (si encore 1–2px trop haut) */
.form-urgence-page .mal-drop .mal-drop-btn{
  transform: translateY(2px) !important; /* mets 1px ou 3px selon ton oeil */
}

/* ===================== PATCH — DROPZONE : SUPPRIMER LE VIDE SOUS LE CONTENU ===================== */

/* Quand aucune photo n'est ajoutée, on supprime le bloc preview (sinon il crée du vide en bas) */
.form-urgence-page .mal-upload-preview:empty{
  display: none;
  margin-top: 0;
}


.form-urgence-page .mal-note{
  margin: 12px 0 6px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(15,23,42,0.72);
}

/* ===================== ÉTAPE 3 — CONSENTEMENT (FINAL UNIQUE) ===================== */

/* Le bloc consentement prend la pleine largeur comme un champ */
.form-urgence-page .mal-consent{
  margin-top: 18px;
  margin-bottom: 22px; /* espace avant les boutons */
}

/* On place la checkbox DANS le rectangle, centrée verticalement */
.form-urgence-page .mal-consent .mal-check{
  position: relative;
  display: block;
  cursor: pointer;
}

.form-urgence-page .mal-consent .mal-check span{
  display: block;
  width: 100%;
  padding: 12px 14px 12px 46px; /* réserve à gauche pour la checkbox */
  background: rgba(37,99,235,0.04);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 12px;
  line-height: 1.5;
}

.form-urgence-page .mal-consent .mal-check input[type="checkbox"]{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

/* Rouge UNIQUEMENT après tentative d’envoi (quand ton JS met is-validated) */
.form-urgence-page #form-urgence.is-validated .mal-consent.is-error .mal-check span{
  border-color: rgba(220,38,38,0.55);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}

/* ===================== ESPACEMENTS BAS DU FORM (TOUTES ÉTAPES) ===================== */

/* Espace après le contenu (photos/adresse/etc.) avant les boutons */
.form-urgence-page .mal-wiz-actions{
  margin-top: 18px;
  justify-content: flex-start;
}

/* Espace entre boutons et les 2 phrases du dessous */
.form-urgence-page .mal-legal{
  margin-top: 22px;
}

.form-urgence-page .mal-note{
  margin-top: 10px;
}

.mal-thumb-wrap{
  position:relative;
}

.mal-thumb-remove{
  position:absolute;
  top:6px;
  right:6px;
  width:22px;
  height:22px;
  border-radius:50%;
  border:none;
  background:rgba(0,0,0,0.65);
  color:#fff;
  font-size:14px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.mal-thumb-remove:hover{
  background:#dc2626;
}

/* ===================== TRAVAUX — PAGE FORMULAIRE TRAVAUX PROGRAMMÉS ===================== */
.form-travaux-page{ padding: 34px 0 64px; }

/* ===== HERO (tu gardes 80px) ===== */
.form-travaux-page .form-hero{
  padding-top: 80px;
  padding-bottom: 18px;
}

.form-travaux-page .form-hero-inner{
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.form-travaux-page .form-hero-inner h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 850;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: #0f172a;
}

.form-travaux-page .form-hero-inner p{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(15,23,42,0.80);
}

.form-travaux-page .form-hero-inner p strong{
  display: block;
  margin-top: 10px;
  font-size: 13.2px;
  font-weight: 600;
  color: rgba(15,23,42,0.50);
  letter-spacing: 0.015em;
}

/* ===================== LAYOUT 2 COLONNES ===================== */
.form-travaux-page .urgence-layout{
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 18px;
  align-items: start;
  margin-top: 12px;
}

.form-travaux-page .urgence-main .mal-form{
  margin-top: 0;
  padding: 16px;
}

/* Colonne droite sticky */
.form-travaux-page .urgence-side{
  position: sticky;
  top: 110px; /* reste visible sous le header */
  display: grid;
  gap: 12px;
}

/* ===================== ILLUSTRATION CARD ===================== */
.form-travaux-page .urgence-illu-card{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.80);
  box-shadow: 0 16px 32px rgba(15,23,42,0.06);
  overflow: hidden;
}

.form-travaux-page .urgence-illu{
  padding: 12px 12px 0;
}

.form-travaux-page .urgence-illu svg{
  width: 100%;
  height: auto;
  display: block;
}

.form-travaux-page .urgence-illu-text{
  padding: 10px 14px 14px;
  display: grid;
  gap: 4px;
  line-height: 1.35;
}

.form-travaux-page .urgence-illu-text strong{
  font-weight: 900;
}

.form-travaux-page .urgence-illu-text span{
  font-size: 13px;
  color: rgba(15,23,42,0.70);
}

/* ===================== APPEL RECOMMANDÉ (COLONNE DROITE) — VERSION PREMIUM SOFT ===================== */
.form-travaux-page .urgence-side-call{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.08); 
  background: #ffffff;                 
  padding: 14px;
  box-shadow: 0 16px 32px rgba(15,23,42,0.06);
}

.form-travaux-page .urgence-side-call-h{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.form-travaux-page .urgence-side-call-h .ic{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(37,99,235,0.10);
  flex: 0 0 auto;
}

.form-travaux-page .urgence-side-call-h .sub{
  font-size: 13px;
  color: rgba(15,23,42,0.70);
  margin-top: 2px;
}

.form-travaux-page .urgence-side-phone{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  text-decoration: none;
  text-align: center;

  padding: 10px 14px;
  border-radius: 12px;

  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;

  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;

  box-shadow: 0 8px 18px rgba(37,99,235,0.16);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.form-travaux-page .urgence-side-phone:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37,99,235,0.20);
  filter: brightness(1.02);
}

.form-travaux-page .urgence-side-call{
  text-align: center; /* centre le bouton */
}

/* ===================== MINI NOTE HORS CADRE ===================== */
.form-travaux-page .urgence-side-note{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(15,23,42,0.02);
  padding: 12px 14px;
}

.form-travaux-page .urgence-side-note strong{
  font-weight: 900;
}

.form-travaux-page .urgence-side-note p{
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(15,23,42,0.72);
}

/* ===================== FORM UI (inchangé, consolidé) ===================== */
.form-travaux-page .mal-form{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(15,23,42,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-travaux-page .mal-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-travaux-page .mal-field{ display:flex; flex-direction:column; gap:8px; }
.form-travaux-page .mal-field-full{ grid-column: 1 / -1; }

.form-travaux-page .mal-field label{ font-weight:800; font-size:14px; }

.form-travaux-page .mal-field input,
.form-travaux-page .mal-field select,
.form-travaux-page .mal-field textarea{
  width:100%;
  border: 1px solid rgba(15,23,42,0.14);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.form-travaux-page .mal-field textarea{ resize: vertical; }

.form-travaux-page .mal-check{ display:flex; gap:10px; align-items:flex-start; }
.form-travaux-page .mal-check input{ margin-top: 3px; }
.form-travaux-page .mal-legal{ margin: 6px 0 0; font-size: 12.5px; opacity: .75; line-height: 1.45; }

/* Alert */
.form-travaux-page .mal-alert{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.10);
  font-size: 13px;
  line-height: 1.45;
}
.form-travaux-page .mal-alert a{ text-decoration: underline; }

/* Wizard */
.form-travaux-page .mal-stepper{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.form-travaux-page .mal-step{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.70);
}

.form-travaux-page .mal-step span{
  width:28px;height:28px;border-radius:999px;
  display:grid;place-items:center;
  font-weight:900;
  background: rgba(15,23,42,0.10);
}

.form-travaux-page .mal-step em{ font-style:normal; font-size:13px; font-weight:800; opacity:.85; }

.form-travaux-page .mal-step.is-active{
  border-color: rgba(37,99,235,0.30);
  box-shadow: 0 10px 18px rgba(37,99,235,0.10);
}
.form-travaux-page .mal-step.is-active span{ background:#2563eb; color:#fff; }

.form-travaux-page .mal-panel{ display:none; }
.form-travaux-page .mal-panel.is-active{ display:block; }

.form-travaux-page .mal-panel-title{
  margin: 2px 0 12px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.form-travaux-page .mal-wiz-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.form-travaux-page .mal-wiz-actions .btn{ min-width: 180px; justify-content:center; }

/* Errors */
.form-travaux-page .mal-field.is-error input,
.form-travaux-page .mal-field.is-error select,
.form-travaux-page .mal-field.is-error textarea{
  border-color: rgba(220,38,38,0.55);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}

/* ===================== PÉRIMÈTRE (en bas) ===================== */
.form-travaux-page .urgence-scope{ margin-top: 14px; }
.form-travaux-page .urgence-scope-card{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.75);
  box-shadow: 0 16px 32px rgba(15,23,42,0.06);
  padding: 14px 16px 16px;
}

.form-travaux-page .urgence-scope-card h2{ margin:0 0 6px; font-size: 16px; font-weight: 950; }
.form-travaux-page .urgence-scope-card p{ margin:0; opacity:.85; line-height:1.55; }

.form-travaux-page .urgence-scope-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}
.form-travaux-page .urgence-scope-col h3{ margin:0 0 8px; font-size:14px; font-weight:900; opacity:.9; }
.form-travaux-page .urgence-scope-col ul{ margin:0; padding-left:18px; }
.form-travaux-page .urgence-scope-col li{ margin:6px 0; line-height:1.5; }
.form-travaux-page .urgence-scope-note{ margin-top: 10px; font-size: 13px; opacity: .85; }
.form-travaux-page .urgence-scope-note a{ text-decoration: underline; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px){
  .form-travaux-page .urgence-layout{ grid-template-columns: 1fr; }
  .form-travaux-page .urgence-side{ position: static; }
}

@media (max-width: 860px){
  .form-travaux-page .mal-grid{ grid-template-columns: 1fr; }
  .form-travaux-page .mal-stepper{ grid-template-columns: 1fr; }
  .form-travaux-page .urgence-scope-grid{ grid-template-columns: 1fr; }
}

/* ===== TRAVAUX — FINITIONS HERO + HARMONISATION ===== */
.form-travaux-page .form-hero{
  padding-top: 80px;           /* tu gardes */
  padding-bottom: 22px;        /* un peu plus d’air sous le hero */
}

.form-travaux-page .form-hero-inner p{
  max-width: 700px;
  margin: 0 auto;
}

/* On force le strong à rester "dans" le paragraphe, pas comme une 2e phrase trop pauvre */
.form-travaux-page .form-hero-inner p strong{
  display: inline;             /* au lieu de block */
  margin-top: 0;
  font-size: inherit;
  font-weight: 800;
  color: rgba(15,23,42,0.85);
  letter-spacing: 0;
}

/* ===== FORM — rendre les selects plus propres sur Safari sans tout casser ===== */
.form-travaux-page .mal-field select{
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(15,23,42,0.55) 50%),
    linear-gradient(135deg, rgba(15,23,42,0.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

/* ===================== TRAVAUX — BOUTONS (plus petits) ===================== */
.form-travaux-page .mal-wiz-actions .btn{
  min-width: 140px;     /* au lieu de 180 */
  padding: 10px 16px;   /* plus compact */
  font-size: 14px;
  border-radius: 999px;
}

.form-travaux-page .mal-wiz-actions{
  gap: 8px;
}

/* Sur mobile : boutons full width (plus clean) */
@media (max-width: 560px){
  .form-travaux-page .mal-wiz-actions .btn{
    width: 100%;
    min-width: 0;
  }
}

/* ===================== TRAVAUX — UPLOAD PHOTOS ===================== */
.form-travaux-page .mal-upload{
  border: 1px dashed rgba(15,23,42,0.18);
  background: rgba(15,23,42,0.02);
  border-radius: 14px;
  padding: 12px;
}

.form-travaux-page .mal-upload input[type="file"]{
  width: 100%;
  border: 0;
  background: transparent;
  padding: 6px 0;
}

.form-travaux-page .mal-upload-help{
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(15,23,42,0.70);
}

.form-travaux-page .mal-upload-preview{
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 860px){
  .form-travaux-page .mal-upload-preview{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px){
  .form-travaux-page .mal-upload-preview{
    grid-template-columns: 1fr;
  }
}

.form-travaux-page .mal-thumb{
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,0.10);
  background: #fff;
}

.form-travaux-page .mal-thumb img{
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.form-travaux-page .mal-thumb span{
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  color: rgba(15,23,42,0.65);
}

.form-travaux-page .mal-upload-error{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(220,38,38,0.25);
  background: rgba(220,38,38,0.08);
  font-size: 13px;
  line-height: 1.45;
}

/* ===================== BOUTONS WIZARD — PLUS PETITS ===================== */
.form-travaux-page .mal-wiz-actions{
  gap: 10px;
  justify-content: flex-start;
}

.form-travaux-page .mal-wiz-actions .btn{
  min-width: 130px;      /* plus petit */
  padding: 10px 16px;    /* plus compact */
  font-size: 14px;
  border-radius: 999px;
}

/* Bouton primaire légèrement moins “gros” */
.form-travaux-page .mal-wiz-actions .btn.btn-primary{
  padding: 10px 18px;
}

/* ===================== UPLOAD — DROP ZONE (FINAL, SANS DOUBLONS) ===================== */

/* Header "Photos + recommandé" (doit être HORS de la zone cliquable) */
.form-travaux-page .mal-upload-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top: 18px;
  margin-bottom: 10px; /* + d’air avant la zone */
}

.form-travaux-page .mal-upload-title{
  font-weight: 900;
  font-size: 14px;
  color: rgba(15,23,42,0.88);
}

.form-travaux-page .mal-upload-tag{
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37,99,235,0.10);
  color: #2563eb;
}

/* Input file caché (qu’il soit dans le DOM, pas forcément dans la dropzone) */
.form-travaux-page .mal-file{
  position: absolute;
  left: -9999px;
}

/* Zone cliquable = seulement la dropzone (label) */
.form-travaux-page .mal-drop{
  cursor: pointer;
  display:block;
  border: 1px dashed rgba(15,23,42,0.18);
  background: rgba(15,23,42,0.02);
  border-radius: 16px;
  padding: 14px;
}

/* Layout interne */
.form-travaux-page .mal-drop-ui{
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px 14px;
  align-items: start;    
}

.form-travaux-page .mal-drop-ic{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  background: rgba(37,99,235,0.10);
  color: #2563eb;
}

.form-travaux-page .mal-drop-txt{
  display:flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.form-travaux-page .mal-drop-txt strong{
  display:block;
  font-size: 14px;
  font-weight: 900;
  color: rgba(15,23,42,0.88);
}

.form-travaux-page .mal-drop-txt span{
  display:block;
  font-size: 13px;
  color: rgba(15,23,42,0.65);
  line-height: 1.35;
}

.form-travaux-page .mal-drop-sub{
  margin-top: 6px;
  color: rgba(15,23,42,0.55);
}

/* Bouton "Choisir des photos" */
.form-travaux-page .mal-drop-btn{
  border-radius: 999px;
  padding: 10px 14px;
  white-space: nowrap;
}

/* Preview */
.form-travaux-page .mal-upload-preview{
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.form-travaux-page .mal-thumb{
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,0.10);
  background: #fff;
}

.form-travaux-page .mal-thumb img{
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.form-travaux-page .mal-thumb span{
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  color: rgba(15,23,42,0.62);
}

/* Responsive */
@media (max-width: 860px){
  .form-travaux-page .mal-upload-preview{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px){
  .form-travaux-page .mal-drop-ui{
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .form-travaux-page .mal-drop-btn{ width: 100%; }
  .form-travaux-page .mal-upload-preview{ grid-template-columns: 1fr; }
}

/* ===================== INFOS PRATIQUES — ACCORDÉON (FINAL CLEAN) ===================== */
.form-travaux-page .urgence-infos{
  margin-top: 16px;
}

.form-travaux-page .urgence-details{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 16px 32px rgba(15,23,42,0.06);
  overflow: hidden;
}

.form-travaux-page .urgence-details summary{
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  user-select: none;
  position: relative;
  padding-right: 46px; /* place pour le chevron */
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.form-travaux-page .urgence-details summary::-webkit-details-marker{
  display: none;
}

.form-travaux-page .urgence-details-title{
  font-weight: 900;
  font-size: 15px;
}

.form-travaux-page .urgence-details-sub{
  font-size: 13px;
  opacity: .65;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Hover = “cliquable” */
.form-travaux-page .urgence-details summary:hover{
  background: rgba(15,23,42,0.02);
}

/* Chevron */
.form-travaux-page .urgence-details summary::after{
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(15,23,42,0.55);
  border-bottom: 2px solid rgba(15,23,42,0.55);
  transform: translateY(-50%) rotate(45deg);
  transition: transform .18s ease, border-color .18s ease;
}

/* Ouvert = chevron vers le haut */
.form-travaux-page .urgence-details[open] summary::after{
  transform: translateY(-50%) rotate(-135deg);
  border-color: rgba(37,99,235,0.85);
}

/* Petit feedback quand c’est ouvert */
.form-travaux-page .urgence-details[open]{
  border-color: rgba(37,99,235,0.18);
  box-shadow: 0 16px 32px rgba(37,99,235,0.08);
}

/* Contenu interne */
.form-travaux-page .urgence-scope--compact .urgence-scope-card{
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0 16px 16px;
}

/* ===================== TRAVAUX — TABLEAU COMPARATIF FINAL (même design) ===================== */

/* Colonnes : aspect tableau */
.form-travaux-page .urgence-scope--compact ul{
  padding: 10px;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  margin: 0;
  list-style: none;
}

/* Items : lignes de tableau */
.form-travaux-page .urgence-scope--compact li{
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 12px 10px;
  line-height: 1.45;
}

/* séparateur entre lignes */
.form-travaux-page .urgence-scope--compact li + li{
  margin-top: 0;
  border-top: 1px solid rgba(15,23,42,0.08);
}

/* Titre métier */
.form-travaux-page .urgence-scope--compact li strong{
  display: block;
  margin: 0 0 4px 0;
  font-weight: 800;
}

/* Description */
.form-travaux-page .urgence-scope--compact li p{
  margin: 0;
  font-size: 14px;
  color: #334155;
}

/* Header "Inclusion / Exclusion" */
.form-travaux-page .urgence-scope--compact h3,
.form-travaux-page .urgence-scope--compact h4{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 900;
}

.form-travaux-page .urgence-scope--compact h3::after,
.form-travaux-page .urgence-scope--compact h4::after{
  content: "";
  display: inline-block;
  height: 1px;
  width: 40px;
  background: rgba(15,23,42,0.14);
}

/* ===================== ICÔNES (✓ vert uniquement côté Inclus) ===================== */

/* Reset total */
.form-travaux-page .urgence-scope--compact li::before{
  content: none !important;
}

/* INCLUS : ✓ vert */
.form-travaux-page .urgence-scope--compact ul:nth-of-type(1) li{
  position: relative;
  padding-left: 34px;
}

.form-travaux-page .urgence-scope--compact ul:nth-of-type(1) li::before{
  content: "✓";
  position: absolute;
  left: 10px;
  top: 12px;
  font-weight: 900;
  font-size: 14px;
  color: #16a34a;
}

/* EXCLUS : aucune icône + pas d’espace réservé */
.form-travaux-page .urgence-scope--compact ul:nth-of-type(2) li{
  padding-left: 10px;
}

/* Responsive */
@media (max-width: 820px){
  .form-travaux-page .urgence-scope--compact li{
    padding: 12px 10px;
  }
  .form-travaux-page .urgence-scope--compact ul:nth-of-type(1) li{
    padding-left: 34px;
  }
}

/* ===================== TRAVAUX — PATCH ALIGNEMENT BOUTON DROPZONE ===================== */

/* 1) Assure un centrage vertical fiable dans la ligne */
.form-travaux-page .mal-drop-ui{
  align-items: center !important;
}

/* 2) Le "bouton" est un <span> : on le passe en inline-flex pour centrer son contenu */
.form-travaux-page .mal-drop .mal-drop-btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;   /* évite l'effet "trop haut" du line-height des .btn */
}

/* 3) Micro-ajustement optique (si encore 1–2px trop haut) */
.form-travaux-page .mal-drop .mal-drop-btn{
  transform: translateY(2px) !important; /* mets 1px ou 3px selon ton oeil */
}

/* ===================== PATCH — DROPZONE : SUPPRIMER LE VIDE SOUS LE CONTENU ===================== */
.form-travaux-page .mal-upload-preview:empty{
  display: none;
  margin-top: 0;
}

.form-travaux-page .mal-note{
  margin: 12px 0 6px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(15,23,42,0.72);
}

/* ===================== ÉTAPE 3 — CONSENTEMENT (FINAL UNIQUE) ===================== */
.form-travaux-page .mal-consent{
  margin-top: 18px;
  margin-bottom: 22px; /* espace avant les boutons */
}

.form-travaux-page .mal-consent .mal-check{
  position: relative;
  display: block;
  cursor: pointer;
}

.form-travaux-page .mal-consent .mal-check span{
  display: block;
  width: 100%;
  padding: 12px 14px 12px 46px; /* réserve à gauche pour la checkbox */
  background: rgba(37,99,235,0.04);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 12px;
  line-height: 1.5;
}

.form-travaux-page .mal-consent .mal-check input[type="checkbox"]{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

/* Rouge UNIQUEMENT après tentative d’envoi (quand ton JS met is-validated) */
.form-travaux-page #form-travaux.is-validated .mal-consent.is-error .mal-check span{
  border-color: rgba(220,38,38,0.55);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}

/* ===================== ESPACEMENTS BAS DU FORM (TOUTES ÉTAPES) ===================== */
.form-travaux-page .mal-wiz-actions{
  margin-top: 18px;
  justify-content: flex-start;
}

.form-travaux-page .mal-legal{
  margin-top: 22px;
}

.form-travaux-page .mal-note{
  margin-top: 10px;
}

/* ===================== THUMB REMOVE (SCOPÉ TRAVAUX) ===================== */
.form-travaux-page .mal-thumb-wrap{
  position:relative;
}

.form-travaux-page .mal-thumb-remove{
  position:absolute;
  top:6px;
  right:6px;
  width:22px;
  height:22px;
  border-radius:50%;
  border:none;
  background:rgba(0,0,0,0.65);
  color:#fff;
  font-size:14px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.form-travaux-page .mal-thumb-remove:hover{
  background:#dc2626;
}

.form-hero-benefits{
  margin:20px auto 10px;
  padding:0;
  max-width:640px;
  list-style:none;
  text-align:left;
}

.form-hero-benefits li{
  margin:8px 0;
  padding-left:22px;
  position:relative;
  font-size:15px;
  line-height:1.5;
}

.form-hero-benefits li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:#2563eb;
  font-weight:700;
}

/* mise en évidence de l’avantage clé */
.form-hero-benefits li.is-highlight{
  font-weight:600;
  color:#0f172a;
}

.urgence-scope-warning{
margin-top:12px;
font-size:14px;
color:#475569;
line-height:1.5;
}

/* Liste bénéfices (bloc droite) */
.side-benefits{
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.side-benefits li{
  padding: 12px 0;
  border-top: 1px solid rgba(15,23,42,0.08);
  line-height: 1.45;
}

.side-benefits li:first-child{
  border-top: 0;
}

/* Warning discret mais visible */
.side-warning{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.08);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(15,23,42,0.75);
}

.side-benefits li{
  padding: 12px 0;
  /* ajoute ça */
  padding-left: 2px;
}

.form-urgence-page .urgence-side-call{
  margin-top: 12px;
}

/* ===== PATCH : détacher la carte "Besoin d’échanger ?" du bloc au-dessus ===== */

/* ===================== PATCH — SUPPRIMER LE "BLANC" ENTRE LES 2 BLOCS ===================== */

/* On garde l'espace entre les cartes via le gap */
.form-urgence-page .urgence-side{
  gap: 12px;
}

/* Le "blanc" vient des marges par défaut du ul/p dans la note */
.form-urgence-page .urgence-side-note p{
  margin: 8px 0;
}

.form-urgence-page .urgence-side-note ul{
  margin: 10px 0;     /* IMPORTANT : retire le gros margin par défaut */
  padding-left: 0;    /* si tu veux zéro décalage à gauche */
}

/* Le warning (ton encadré jaune) ne doit pas rajouter du vide */
.form-urgence-page .urgence-side-note .side-warning{
  margin: 12px 0 0;   /* pas de marge en bas */
}

/* Sécurité : aucun espace inutile en bas de la carte */
.form-urgence-page .urgence-side-note > :last-child{
  margin-bottom: 0;
}

/* ===================== PATCH — ESPACE ENTRE "POURQUOI" ET "BESOIN D'ÉCHANGER" ===================== */

/* 1) Gap entre les 2 cartes (la vraie séparation) */
.form-urgence-page .urgence-side,
.form-travaux-page .urgence-side{
  gap: 12px; /* ajuste à 10px si tu veux plus serré */
}

/* 2) Le "blanc" perçu vient des margins par défaut dans la carte "Pourquoi" */
.form-urgence-page .urgence-side-note p,
.form-travaux-page .urgence-side-note p{
  margin: 8px 0;
}

.form-urgence-page .urgence-side-note ul,
.form-travaux-page .urgence-side-note ul{
  margin: 10px 0;
  padding-left: 0;
}

/* 3) Ton encadré "Important" : pas de marge en bas (sinon ça donne un vide avant la carte suivante) */
.form-urgence-page .urgence-side-note .side-warning,
.form-travaux-page .urgence-side-note .side-warning{
  margin: 12px 0 0;
}

/* 4) Sécurité : dernier élément dans la carte = zéro marge basse */
.form-urgence-page .urgence-side-note > :last-child,
.form-travaux-page .urgence-side-note > :last-child{
  margin-bottom: 0 !important;
}

/* ===== PATCH FORCE — ESPACE ENTRE "Pourquoi" et "Besoin d’échanger" ===== */

/* 1) On force la colonne droite à être un layout propre */
.urgence-side{
  display: grid !important;
  gap: 12px !important; /* espace entre les blocs */
  align-content: start !important;
}

/* 3) On neutralise les marges internes (p/ul) qui gonflent la carte */
.urgence-side-note p,
.urgence-side-note ul{
  margin: 8px 0 !important;
}

.urgence-side-note > :last-child{
  margin-bottom: 0 !important;
}

/* 4) Ton encadré Important : pas de marge en bas */
.urgence-side-note .side-warning,
.urgence-side-note .urgence-scope-warning{
  margin: 12px 0 0 !important;
}

/* Intro */
.side-intro{
  margin: 8px 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(15,23,42,0.75);
}

/* Liste bénéfices */
.side-benefits{
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-benefits li{
  position: relative;
  padding: 12px 0 12px 26px;
  border-top: 1px solid rgba(15,23,42,0.08);
  line-height: 1.45;
}

.side-benefits li:first-child{
  border-top: 0;
}

/* suppression des icônes */
.side-benefits li::before{
  content: none;
}

/* avantage clé */
.side-benefits li.is-highlight{
  background: rgba(37,99,235,0.05);
  border-radius: 10px;
  padding: 12px 12px 12px 30px;
  border: 1px solid rgba(37,99,235,0.15);
}

.side-intro{
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(15,23,42,0.72);
}

.side-points{
  margin-top: 10px;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.side-point{
  padding: 12px 12px;
  border-top: 1px solid rgba(15,23,42,0.08);
  display: grid;
  gap: 4px;
}

.side-point:first-child{
  border-top: 0;
}

.side-point strong{
  font-weight: 900;
  color: #0f172a;
}

.side-point span{
  font-size: 13px;
  line-height: 1.45;
  color: rgba(15,23,42,0.70);
}

.side-point.is-highlight{
  background: rgba(37,99,235,0.06);
}

/* ===== Carte droite : titre + intro ===== */
.form-travaux-page .urgence-side-note h3{
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.form-travaux-page .side-intro{
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(15,23,42,0.72);
}

/* ===== Liste simple (rendu “photo 2”, mais plus clean) ===== */
.form-travaux-page .side-benefits{
  margin: 0;
  padding: 0;
  list-style: none;
}

.form-travaux-page .side-benefits li{
  padding: 10px 0;
  border-top: 1px solid rgba(15,23,42,0.08);
  line-height: 1.35;
}

.form-travaux-page .side-benefits li:first-child{
  border-top: 0;
}

.form-travaux-page .side-benefits li strong{
  display: block;
  font-size: 13.5px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 2px;
}

.form-travaux-page .side-benefits li span{
  display: block;
  font-size: 13px;
  color: rgba(15,23,42,0.68);
}

/* Highlight PJ : discret, pas “gros bloc lourd” */
.form-travaux-page .side-benefits li.is-highlight{
  margin-top: 6px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(37,99,235,0.18);
  background: rgba(37,99,235,0.05);
}

/* Warning (encadré important) */
.form-travaux-page .side-warning{
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.08);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(15,23,42,0.75);
}

/* FIX: empêcher la colonne droite (grid) d'étirer les lignes -> supprime le grand blanc */
.form-travaux-page .urgence-side{
  align-content: start !important;     /* au lieu de stretch */
  grid-auto-rows: max-content !important;
}

/* FIX: forcer un vrai petit espace entre les 2 cartes (et seulement celui-là) */
.form-travaux-page .urgence-side-note{ margin-bottom: 0 !important; }
.form-travaux-page .urgence-side-call{ margin-top: 0 !important; }

.form-travaux-page .urgence-side-note{
margin-bottom:0;
}

.form-travaux-page .urgence-side-call{
margin-top:0;
}

.form-travaux-page .urgence-side{
    display:flex;
    flex-direction:column;
    gap:0;
}

/* iOS Safari: empêche le zoom automatique sur focus */
@media (max-width: 860px){
  .form-page input,
  .form-page select,
  .form-page textarea{
    font-size: 16px !important;
  }
}

/* évite le déplacement horizontal sur mobile */
html, body{
  overflow-x: hidden;
}

.form-page{
  overflow-x: hidden;
}

.mal-rgpd{
  font-size:13px;
  color:#6b7280;
  margin-top:10px;
  line-height:1.5;
  max-width:560px;
}

.mal-rgpd a{
  text-decoration:underline;
}

/* RGPD en pleine largeur même si placé dans .mal-grid */
.mal-grid .mal-rgpd{
  grid-column: 1 / -1;
  width: 100%;
}

.mal-grid .mal-rgpd{
  grid-column:1 / -1;
  max-width:100%;
}

.mal-check span{
  font-weight:400;
}

.mal-rgpd{
  font-size:13px;
  color:#6b7280;
  line-height:1.5;
  margin:6px 0 18px 0;
}

.mal-rgpd a{
  text-decoration:underline;
}

.mal-opt{
  font-weight: 400;
  color: #6b7280;
  font-size: 12px;
  margin-left: 6px;
}

.merci-demande-page .merci-box {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.merci-demande-page .merci-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 800;
}

.merci-demande-page .merci-text {
  margin: 0 0 18px;
  color: #475569;
  font-size: 16px;
  line-height: 1.7;
}

.merci-demande-page .merci-actions {
  margin-top: 22px;
}

.merci-demande-page .merci-redirect-note {
  margin-top: 18px;
  color: #64748b;
  font-size: 14px;
}

.suivi-demande-page .mal-table-wrap{
  width:100%;
  overflow-x:auto;
}

.suivi-demande-page .mal-table{
  width:100%;
  border-collapse:collapse;
  margin-top:12px;
}

.suivi-demande-page .mal-table th,
.suivi-demande-page .mal-table td{
  text-align:left;
  padding:12px 10px;
  border-bottom:1px solid #e5e7eb;
  vertical-align:middle;
}

.suivi-demande-page .mal-table th{
  font-weight:700;
  color:#0f172a;
}

.suivi-demande-page .urgence-scope + .urgence-scope{
  margin-top:22px;
}

@media (max-width: 767px){
  .suivi-demande-page .mal-table th,
  .suivi-demande-page .mal-table td{
    padding:10px 8px;
    font-size:14px;
  }
}

.suivi-files{
  margin-top:24px;
}

.suivi-files h3{
  margin:0 0 14px;
  font-size:18px;
  font-weight:800;
  color:#0f172a;
}

.suivi-files-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.suivi-file-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fff;
}

.suivi-file-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.suivi-file-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:12px;
  background:#eff6ff;
  font-size:18px;
}

.suivi-file-meta{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.suivi-file-meta strong{
  font-size:15px;
  font-weight:700;
  color:#0f172a;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.suivi-file-meta span{
  font-size:13px;
  color:#64748b;
}

.suivi-file-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  background:#2563eb;
  color:#fff;
  text-decoration:none;
  font-weight:700;
  white-space:nowrap;
}

.suivi-file-link:hover{
  opacity:.92;
}

@media (max-width: 767px){
  .suivi-file-item{
    flex-direction:column;
    align-items:flex-start;
  }

  .suivi-file-link{
    width:100%;
  }
}

/* =========================================================
   PAGE CRÉER ESPACE CLIENT
========================================================= */

.form-creer-espace-client-page{
  padding: 34px 0 64px;
}

.form-creer-espace-client-page .form-hero{
  padding-top: 80px;
  padding-bottom: 18px;
}

.form-creer-espace-client-page .form-hero-inner{
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.form-creer-espace-client-page .form-hero-inner h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 850;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: #0f172a;
}

.form-creer-espace-client-page .form-hero-sub{
  max-width: 680px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(15,23,42,0.80);
}

/* Layout */
.form-creer-espace-client-page .urgence-layout{
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 18px;
  align-items: start;
  margin-top: 12px;
}

.form-creer-espace-client-page .urgence-main{
  min-width: 0;
}

.form-creer-espace-client-page .urgence-side{
  position: sticky;
  top: 110px;
  display: grid;
  gap: 14px;
  align-content: start;
}

/* Carte formulaire */
.form-creer-espace-client-page .compte-form-wrap{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(15,23,42,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 22px;
}

.form-creer-espace-client-page .compte-form-head{
  margin-bottom: 18px;
}

.form-creer-espace-client-page .compte-form-kicker{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37,99,235,0.10);
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 12px;
}

.form-creer-espace-client-page .compte-form-head h2{
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #0f172a;
}

.form-creer-espace-client-page .compte-form-head p{
  margin: 0;
  color: rgba(15,23,42,0.78);
  line-height: 1.6;
}

.form-creer-espace-client-page .compte-form-alert{
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.form-creer-espace-client-page .compte-form-alert.is-error{
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.22);
  color: #b91c1c;
}

/* Form */
.form-creer-espace-client-page .compte-client-form{
  margin-top: 0;
}

.form-creer-espace-client-page .compte-client-form .mal-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-creer-espace-client-page .compte-client-form .mal-field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-creer-espace-client-page .compte-client-form .mal-field-full{
  grid-column: 1 / -1;
}

.form-creer-espace-client-page .compte-client-form .mal-field label{
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
}

.form-creer-espace-client-page .compte-client-form input{
  width: 100%;
  border: 1px solid rgba(15,23,42,0.14);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.form-creer-espace-client-page .compte-client-form input:focus{
  border-color: rgba(37,99,235,0.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.10);
}

.form-creer-espace-client-page .compte-form-note{
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15,23,42,0.03);
  border: 1px solid rgba(15,23,42,0.08);
  color: rgba(15,23,42,0.72);
  line-height: 1.55;
  font-size: 14px;
}

.form-creer-espace-client-page .compte-form-actions{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.form-creer-espace-client-page .compte-form-actions .btn{
  min-width: 190px;
  justify-content: center;
}

.form-creer-espace-client-page .compte-login-link{
  font-weight: 800;
  color: #2563eb;
  text-decoration: none;
}

.form-creer-espace-client-page .compte-login-link:hover{
  text-decoration: underline;
}

/* Colonne droite */
.form-creer-espace-client-page .compte-illu-card{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.80);
  box-shadow: 0 16px 32px rgba(15,23,42,0.06);
  overflow: hidden;
}

.form-creer-espace-client-page .urgence-illu{
  padding: 0;
}

.form-creer-espace-client-page .compte-client-photo{
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.form-creer-espace-client-page .compte-benefits-card{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 16px 32px rgba(15,23,42,0.06);
  padding: 16px;
}

.form-creer-espace-client-page .compte-benefits-card h3{
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 950;
  color: #0f172a;
}

.form-creer-espace-client-page .compte-benefits-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.form-creer-espace-client-page .compte-benefits-list li{
  padding: 10px 0;
  border-top: 1px solid rgba(15,23,42,0.08);
  line-height: 1.35;
}

.form-creer-espace-client-page .compte-benefits-list li:first-child{
  border-top: 0;
}

.form-creer-espace-client-page .compte-benefits-list strong{
  display: block;
  font-size: 13.5px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 2px;
}

.form-creer-espace-client-page .compte-benefits-list span{
  display: block;
  font-size: 13px;
  color: rgba(15,23,42,0.68);
}

.form-creer-espace-client-page .compte-benefits-note{
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.08);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(15,23,42,0.75);
}

.form-creer-espace-client-page .compte-help-card{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.08);
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 16px 32px rgba(15,23,42,0.06);
}

.form-creer-espace-client-page .urgence-side-call-h{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.form-creer-espace-client-page .urgence-side-call-h .ic{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(37,99,235,0.10);
  flex: 0 0 auto;
}

.form-creer-espace-client-page .urgence-side-call-h .sub{
  font-size: 13px;
  color: rgba(15,23,42,0.70);
  margin-top: 2px;
}

.form-creer-espace-client-page .urgence-side-phone{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  text-align: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 18px rgba(37,99,235,0.16);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.form-creer-espace-client-page .urgence-side-phone:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37,99,235,0.20);
  filter: brightness(1.02);
}

/* Responsive */
@media (max-width: 980px){
  .form-creer-espace-client-page .urgence-layout{
    grid-template-columns: 1fr;
  }

  .form-creer-espace-client-page .urgence-side{
    position: static;
  }
}

@media (max-width: 860px){
  .form-creer-espace-client-page .compte-client-form .mal-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px){
  .form-creer-espace-client-page .compte-form-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .form-creer-espace-client-page .compte-form-actions .btn{
    width: 100%;
    min-width: 0;
  }

  .form-creer-espace-client-page .compte-login-link{
    text-align: center;
  }
}

/* Image dans carte bénéfices */

.form-creer-espace-client-page .compte-benefits-image{
  margin-bottom:14px;
  border-radius:14px;
  overflow:hidden;
}

.form-creer-espace-client-page .compte-benefits-image img{
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
}

.mal-form-inline-error{
  margin-top: 12px;
  margin-bottom: 2px;
  font-size: 13px;
  line-height: 1.45;
  color: #b91c1c;
}

.form-creer-espace-client-page .mal-field.is-error input{
  border-color: rgba(220,38,38,0.55);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}

/* ===============================
   MON ESPACE CLIENT
   =============================== */

.account-page{
  padding-top: 150px;
  padding-bottom: 60px;
}

.account-hero{
  padding-bottom: 24px;
}

.account-hero .container,
.account-body .container{
  max-width: 1100px;
}

.account-hero h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  font-weight: 850;
  color: #0f172a;
}

.account-hero p{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(15,23,42,0.80);
}

.account-body{
  padding-bottom: 30px;
}

.account-welcome-card{
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
  margin-bottom: 22px;
}

.account-kicker{
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #2563eb;
}

.account-welcome-card h2{
  margin: 0 0 6px;
  font-size: 28px;
  color: #0f172a;
}

.account-email{
  margin: 0;
  color: #64748b;
}

.account-section-head{
  margin-bottom: 14px;
}

.account-section-head h2{
  margin: 0;
  font-size: 24px;
  color: #0f172a;
}

.account-demandes-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-demande-card{
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}

.account-demande-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.account-demande-badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37,99,235,0.10);
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.account-demande-date{
  font-size: 13px;
  color: #64748b;
}

.account-demande-card h3{
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.2;
  color: #0f172a;
}

.account-demande-meta{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.account-demande-meta li{
  color: #334155;
  line-height: 1.5;
}

.account-demande-actions{
  margin-top: 18px;
}

.account-empty-card{
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}

.account-empty-card h3{
  margin: 0 0 10px;
  color: #0f172a;
}

.account-empty-card p{
  margin: 0 0 16px;
  color: #64748b;
}

@media (max-width: 900px){
  .account-demandes-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  .account-page{
    padding-top: 130px;
  }

  .account-welcome-card,
  .account-demande-card,
  .account-empty-card{
    padding: 18px;
  }
}

/* ===============================
   CONNEXION CLIENT — VERSION PROPRE
   =============================== */

.account-login-page{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 150px;
  padding-bottom: 60px;
}

.account-login-page .account-hero{
  padding-bottom: 22px;
}

.account-login-page .account-hero .container,
.account-login-page .account-body .container{
  max-width: 1100px;
}

.account-login-page .account-hero h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  font-weight: 850;
  color: #0f172a;
}

.account-login-page .account-hero p{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(15,23,42,0.78);
}

.account-login-page .account-body{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 40px;
}

.account-login-page .account-login-card{
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 22px;
  padding: 30px 30px 28px;
  box-shadow: 0 18px 45px rgba(15,23,42,0.08);
}

.account-login-page .compte-client-form{
  margin: 0;
}

.account-login-page .compte-client-form .mal-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.account-login-page .compte-client-form .mal-field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-login-page .compte-client-form .mal-field label{
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
}

.account-login-page .compte-client-form .mal-field input{
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(15,23,42,0.14);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.account-login-page .compte-client-form .mal-field input:focus{
  border-color: rgba(37,99,235,0.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.10);
}

.account-login-page .compte-form-alert{
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.account-login-page .compte-form-alert.is-error{
  border: 1px solid rgba(220,38,38,0.22);
  background: rgba(220,38,38,0.08);
  color: #b91c1c;
}

.account-login-page .compte-form-actions{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.account-login-page .compte-form-actions .btn{
  min-width: 180px;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
}

.account-login-page .compte-login-link{
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

.account-login-page .compte-login-link:hover{
  text-decoration: underline;
}

@media (max-width: 768px){
  .account-login-page{
    padding-top: 130px;
    padding-bottom: 40px;
  }

  .account-login-page .account-body{
    align-items: flex-start;
    padding: 6px 0 28px;
  }

  .account-login-page .account-login-card{
    padding: 22px 18px 20px;
    border-radius: 18px;
  }

  .account-login-page .compte-form-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .account-login-page .compte-form-actions .btn{
    width: 100%;
    min-width: 0;
  }

  .account-login-page .compte-login-link{
    text-align: center;
  }
}

/* intro */
.account-login-intro{
  margin-bottom:20px;
  color:#64748b;
  font-size:14px;
  line-height:1.6;
}

/* lien mdp oublié */
.compte-password-link{
  font-weight:600;
  color:#2563eb;
  text-decoration:none;
}

.compte-password-link:hover{
  text-decoration:underline;
}

/* bloc création compte */
.compte-register-box{
  margin-top:26px;
  padding-top:22px;
  border-top:1px solid rgba(15,23,42,0.08);
  text-align:center;
}

.compte-register-box p{
  margin-bottom:14px;
  font-size:14px;
  color:#475569;
}

.compte-register-box .btn-secondary{
  background:#f1f5f9;
  color:#0f172a;
  border-radius:999px;
  padding:10px 18px;
  font-weight:700;
}

.compte-register-box .btn-secondary:hover{
  background:#e2e8f0;
}

.account-login-intro{
  margin: 0 0 20px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.compte-password-link{
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

.compte-password-link:hover{
  text-decoration: underline;
}

/* ===============================
   ESPACE CLIENT — DASHBOARD
   =============================== */

.account-dashboard-page{
  padding-top: 135px;
  padding-bottom: 60px;
}

.account-dashboard-page .account-hero{
  padding-bottom: 20px;
}

.account-dashboard-page .account-hero-inner{
  max-width: 780px;
}

.account-dashboard-page .account-hero h1{
  margin: 0 0 10px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.1;
  font-weight: 850;
  color: #0f172a;
}

.account-dashboard-page .account-hero p{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(15,23,42,0.74);
}

.account-dashboard-page .account-body .container{
  display: grid;
  gap: 24px;
}

.account-dashboard-top{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: stretch;
}

.account-welcome-card{
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 16px 38px rgba(15,23,42,0.06);
}

.account-kicker{
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2563eb;
}

.account-welcome-card h2{
  margin: 0 0 8px;
  font-size: clamp(26px, 2.2vw, 38px);
  line-height: 1.1;
  color: #0f172a;
}

.account-email{
  margin: 0;
  font-size: 15px;
  color: #64748b;
}

.account-side-actions{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 210px;
}

.account-side-actions .btn{
  justify-content: center;
}

.account-logout-link{
  text-align: center;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

.account-logout-link:hover{
  text-decoration: underline;
}

.account-section-head{
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.account-section-head h2{
  margin: 0 0 6px;
  font-size: 22px;
  color: #0f172a;
}

.account-section-sub{
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.account-empty-card{
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 22px;
  padding: 26px 24px;
  box-shadow: 0 16px 38px rgba(15,23,42,0.06);
}

.account-empty-card h3{
  margin: 0 0 10px;
  font-size: 24px;
  color: #0f172a;
}

.account-empty-card p{
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.account-empty-actions{
  margin-top: 18px;
}

.account-demandes-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-demande-card{
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 22px;
  padding: 22px 22px 20px;
  box-shadow: 0 16px 38px rgba(15,23,42,0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-demande-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.account-demande-badge{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37,99,235,0.10);
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.account-demande-date{
  font-size: 14px;
  color: #64748b;
}

.account-demande-card h3{
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  color: #0f172a;
}

.account-demande-meta{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.account-demande-meta li{
  color: #334155;
  line-height: 1.5;
}

.account-demande-actions{
  margin-top: auto;
  padding-top: 6px;
}

.account-demande-actions .btn{
  min-width: 160px;
  justify-content: center;
}

@media (max-width: 980px){
  .account-dashboard-top{
    grid-template-columns: 1fr;
  }

  .account-side-actions{
    min-width: 0;
    align-items: flex-start;
  }

  .account-demandes-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .account-dashboard-page{
    padding-top: 118px;
    padding-bottom: 40px;
  }

  .account-welcome-card,
  .account-empty-card,
  .account-demande-card{
    padding: 18px 16px;
    border-radius: 18px;
  }

  .account-demande-top{
    flex-direction: column;
    align-items: flex-start;
  }

  .account-side-actions{
    width: 100%;
  }

  .account-side-actions .btn{
    width: 100%;
  }

  .account-demande-actions .btn{
    width: 100%;
    min-width: 0;
  }
}

/* ===============================
   ESPACE CLIENT STRUCTURÉ
   =============================== */

.account-space-page{
  padding-top: 130px;
  padding-bottom: 60px;
}

.account-space-wrap .container{
  max-width: 1240px;
}

.account-layout{
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.account-sidebar{
  position: sticky;
  top: 110px;
  display: grid;
  gap: 16px;
}

.account-sidebar-user{
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 22px;
  padding: 20px 18px;
  box-shadow: 0 16px 38px rgba(15,23,42,0.06);
}

.account-sidebar-kicker{
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563eb;
}

.account-sidebar-user strong{
  display: block;
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.2;
  color: #0f172a;
}

.account-sidebar-user span{
  display: block;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  word-break: break-word;
}

.account-nav{
  display: grid;
  gap: 10px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 16px 38px rgba(15,23,42,0.06);
}

.account-nav-link{
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  color: #0f172a;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.account-nav-link:hover{
  background: rgba(37,99,235,0.06);
  color: #2563eb;
}

.account-nav-link.is-active{
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37,99,235,0.20);
}

.account-nav-link.is-logout{
  color: #dc2626;
}

.account-nav-link.is-logout:hover{
  background: rgba(220,38,38,0.06);
  color: #dc2626;
}

.account-content{
  display: grid;
  gap: 20px;
}

.account-content-head{
  margin-bottom: 2px;
}

.account-content-head h1{
  margin: 0 0 8px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.1;
  font-weight: 850;
  color: #0f172a;
}

.account-content-head p{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(15,23,42,0.74);
}

.account-stats-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.account-stat-card{
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: 0 16px 38px rgba(15,23,42,0.06);
}

.account-stat-label{
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.account-stat-card strong{
  font-size: 34px;
  line-height: 1;
  color: #0f172a;
}

.account-dashboard-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.account-panel{
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 22px;
  padding: 22px 22px 20px;
  box-shadow: 0 16px 38px rgba(15,23,42,0.06);
}

.account-panel-head{
  margin-bottom: 14px;
}

.account-panel-head h2{
  margin: 0;
  font-size: 22px;
  color: #0f172a;
}

.account-profile-summary{
  display: grid;
  gap: 10px;
}

.account-profile-summary p{
  margin: 0;
  color: #334155;
  line-height: 1.6;
}

.account-last-demande h3{
  margin: 12px 0 8px;
  font-size: 24px;
  color: #0f172a;
}

.account-muted{
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

.account-empty-inline p{
  margin: 0 0 14px;
  color: #64748b;
}

.account-demandes-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-demande-card{
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 22px;
  padding: 22px 22px 20px;
  box-shadow: 0 16px 38px rgba(15,23,42,0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-demande-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.account-demande-badge{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37,99,235,0.10);
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.account-demande-date{
  font-size: 14px;
  color: #64748b;
}

.account-demande-card h3,
.account-list-card h3{
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  color: #0f172a;
}

.account-demande-meta{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.account-demande-meta li{
  color: #334155;
  line-height: 1.5;
}

.account-card-actions{
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.account-list{
  display: grid;
  gap: 16px;
}

.account-list-card{
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: 0 16px 38px rgba(15,23,42,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.account-list-main{
  display: grid;
  gap: 10px;
}

.account-list-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.account-doc-type{
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(37,99,235,0.10);
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-empty-card h3{
  margin: 0 0 8px;
  font-size: 24px;
  color: #0f172a;
}

.account-empty-card p{
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

@media (max-width: 1080px){
  .account-layout{
    grid-template-columns: 1fr;
  }

  .account-sidebar{
    position: static;
  }

  .account-dashboard-grid{
    grid-template-columns: 1fr;
  }

  .account-demandes-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px){
  .account-space-page{
    padding-top: 110px;
    padding-bottom: 40px;
  }

  .account-stats-grid{
    grid-template-columns: 1fr;
  }

  .account-list-card{
    flex-direction: column;
    align-items: flex-start;
  }

  .account-list-actions{
    width: 100%;
  }

  .account-list-actions .btn{
    width: 100%;
    justify-content: center;
  }

  .account-demande-top{
    flex-direction: column;
    align-items: flex-start;
  }

  .account-content-head h1{
    font-size: 34px;
  }
}

.account-content-card{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 16px 32px rgba(15,23,42,0.06);
}

.compte-form-alert{
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.compte-form-alert.is-error{
  color: #b91c1c;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.18);
}

.compte-form-alert.is-success{
  color: #166534;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.20);
}

/* ===============================
   ESPACE CLIENT — FORMULAIRE PROFIL
   =============================== */

.account-page .compte-client-form{
  margin-top: 0;
}

.account-page .compte-client-form .mal-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.account-page .compte-client-form .mal-field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-page .compte-client-form .mal-field-full{
  grid-column: 1 / -1;
}

.account-page .compte-client-form .mal-field label{
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.account-page .compte-client-form .mal-field input{
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
  color: #0f172a;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
  box-sizing: border-box;
}

.account-page .compte-client-form .mal-field input:focus{
  border-color: rgba(37,99,235,0.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.10);
}

.account-page .compte-client-form .mal-field input::placeholder{
  color: #94a3b8;
}

.account-page .compte-form-actions{
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.account-page .compte-form-alert{
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.account-page .compte-form-alert.is-error{
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.18);
  color: #b91c1c;
}

.account-page .compte-form-alert.is-success{
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.18);
  color: #15803d;
}

@media (max-width: 860px){
  .account-page .compte-client-form .mal-grid{
    grid-template-columns: 1fr;
  }

  .account-page .compte-form-actions .btn{
    width: 100%;
  }
}

/* Réduction bouton profil */

.account-page .compte-form-actions .btn{
  width: auto;
  padding: 12px 22px;
  min-width: 220px;
}

.account-page .compte-form-actions{
  margin-top: 26px;
}

/* Sections formulaire espace client */

.account-form-section{
  margin-bottom: 26px;
}

.account-form-title{
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #0f172a;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  padding-bottom: 10px;
}

/* =========================
SUIVI DEMANDE
========================= */

.follow-page{
  padding:40px 0 80px;
}

/* HERO */

.follow-hero{
  text-align:center;
  margin-bottom:32px;
}

.follow-hero h1{
  margin:0 0 10px;
  font-size:clamp(34px,4vw,56px);
  line-height:1.05;
}

.follow-hero p{
  margin:0;
  color:#5b6b85;
  font-size:18px;
}

.follow-ref{
  margin-top:8px;
  color:#2f3b52;
  font-weight:700;
}

/* LAYOUT */

.follow-layout{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(380px,1fr);
  gap:32px;
  align-items:start;
}

.follow-main{
  display:grid;
  gap:22px;
  min-width:0;
}

.follow-side{
  display:flex;
  flex-direction:column;
  gap:22px;
  min-width:0;
}

/* CARDS */

.follow-card,
.follow-side-card{
  background:#fff;
  border:1px solid #e7ecf3;
  border-radius:24px;
  box-shadow:0 10px 30px rgba(15,23,42,0.04);
}

.follow-card{
  padding:26px;
}

.follow-side-card{
  padding:24px;
  position:sticky;
  top:120px;
}

.follow-card-head{
  margin-bottom:18px;
}

.follow-card-head h2,
.follow-side-card h2{
  margin:0;
  font-size:28px;
  line-height:1.15;
}
/* RÉSUMÉ DOSSIER */

.follow-summary-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 22px;
  color:#2f3b52;
}

.follow-summary-grid .is-full{
  grid-column:1 / -1;
}

/* TIMELINE */

.follow-timeline{
  display:grid;
  gap:14px;
}

.follow-step{
  display:flex;
  align-items:center;
  gap:12px;
  color:#7a879b;
  font-weight:700;
}

.follow-step-dot{
  width:14px;
  height:14px;
  border-radius:999px;
  background:#d8e0ee;
  flex:0 0 auto;
}

.follow-step.is-done .follow-step-dot{
  background:#2563eb;
}

.follow-step.is-current .follow-step-dot{
  box-shadow:0 0 0 6px rgba(37,99,235,0.14);
}

.follow-step.is-done,
.follow-step.is-current{
  color:#0f172a;
}

/* ARTISAN RETENU */

.follow-artisan-retained p{
  margin:0 0 10px;
  color:#2f3b52;
}

.follow-artisan-retained p:last-child{
  margin-bottom:0;
}

/* PROPOSITIONS */

.follow-propositions-list{
  display:grid;
  gap:16px;
}

.follow-proposition-card{
  border:1px solid #e7ecf3;
  border-radius:20px;
  padding:18px 18px 16px;
}

.follow-proposition-card p{
  margin:0 0 10px;
  color:#2f3b52;
}

.follow-proposition-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

/* DOCUMENTS */

.follow-documents-list{
  display:grid;
  gap:16px;
}

.follow-document-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  border:1px solid #e7ecf3;
  border-radius:18px;
  padding:16px 18px;
}

.follow-document-meta{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.follow-document-meta strong{
  color:#0f172a;
}

.follow-document-meta span{
  color:#6b778c;
}

/* ARTISANS CONTACTÉS */

.follow-artisans-list{
  display:grid;
  gap:14px;
}

.follow-artisan-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  border:1px solid #e7ecf3;
  border-radius:18px;
  padding:16px 18px;
}

.follow-artisan-item strong{
  color:#0f172a;
}

.follow-artisan-item span{
  color:#6b778c;
}

/* SIDE PANEL */

.follow-side-intro{
  margin:10px 0 20px;
  color:#5b6b85;
}

.follow-side-stats{
  display:grid;
  gap:16px;
}

.follow-side-stat{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.follow-side-stat strong{
  color:#2f3b52;
}

.follow-side-stat span{
  font-weight:700;
  color:#0f172a;
}

/* EMPTY */

.follow-empty{
  color:#7a879b;
}

/* RESPONSIVE */

@media (max-width:1100px){

  .follow-layout{
    grid-template-columns:1fr;
  }

  .follow-side-card{
    position:static;
  }

}

@media (max-width:640px){

  .follow-summary-grid{
    grid-template-columns:1fr;
  }

}

/* TIMELINE */

.follow-timeline{
  position:relative;
  padding-left:28px;
}

/* ligne verticale */

.follow-timeline::before{
  content:"";
  position:absolute;
  left:8px;
  top:10px;
  bottom:10px;
  width:2px;
  background:#dbe3ee;
}

/* progression */

.follow-timeline::after{
  content:"";
  position:absolute;
  left:8px;
  top:10px;
  height:var(--progress);
  width:2px;
  background:#2563eb;
}

/* étape */

.follow-step{
  position:relative;
  padding:12px 0 12px 18px;
  font-size:15px;
  color:#64748b;
}

/* point */

.follow-step-dot{
  position:absolute;
  left:-20px;
  top:50%;
  transform:translateY(-50%);
  width:10px;
  height:10px;
  border-radius:50%;
  background:#cbd5e1;
}

/* étape passée */

.follow-step.is-done .follow-step-dot{
  background:#2563eb;
}

/* étape actuelle */

.follow-step.is-current .follow-step-dot{
  background:#2563eb;
  box-shadow:0 0 0 6px rgba(37,99,235,0.15);
}

/* texte actif */

.follow-step.is-current{
  color:#0f172a;
  font-weight:600;
}

/* =========================
   COULEURS STATUTS — PRIORITAIRES
   ========================= */

.follow-side-stat .status-badge,
.follow-artisan-retained .status-badge,
.follow-proposition-card .status-badge{
  font-weight: 700;
}

.follow-side-stat .status-devis_valide,
.follow-artisan-retained .status-devis_valide,
.follow-proposition-card .status-devis_valide,
.follow-side-stat .status-acceptee,
.follow-artisan-retained .status-acceptee,
.follow-proposition-card .status-acceptee,
.follow-side-stat .status-accepte,
.follow-artisan-retained .status-accepte,
.follow-proposition-card .status-accepte{
  color: #2563eb;
}

.follow-side-stat .status-proposition_envoyee,
.follow-artisan-retained .status-proposition_envoyee,
.follow-proposition-card .status-proposition_envoyee,
.follow-side-stat .status-attente,
.follow-artisan-retained .status-attente,
.follow-proposition-card .status-attente{
  color: #64748b;
}

.follow-side-stat .status-travaux_termines,
.follow-artisan-retained .status-travaux_termines,
.follow-proposition-card .status-travaux_termines{
  color: #16a34a;
}

.follow-side-stat .status-travaux_en_cours,
.follow-artisan-retained .status-travaux_en_cours,
.follow-proposition-card .status-travaux_en_cours{
  color: #ea580c;
}

/* =========================================================
   PATCH FINAL — RETOUR AU BON RENDU SUIVI DEMANDE
   À COLLER TOUT EN BAS DU CSS
   ========================================================= */

/* ===== HERO : remettre le H1 sous le header correctement ===== */
.follow-page{
  padding: 0 0 80px;
}

.follow-page .follow-hero{
  padding-top: 100px;
  padding-bottom: 40px;
  text-align: center;
  margin-bottom: 0;
}

.follow-page .follow-hero h1{
  margin: 0 0 10px;
  font-size: clamp(34px,4vw,56px);
  line-height: 1.05;
}

.follow-page .follow-hero p{
  margin: 0;
  color: #5b6b85;
  font-size: 18px;
}

.follow-page .follow-ref{
  margin-top: 8px;
  color: #2f3b52;
  font-weight: 700;
}

/* ===== LAYOUT : revenir au rendu validé ===== */
.follow-layout{
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(380px,1fr);
  gap: 28px;
  align-items: start;
}

.follow-main{
  display: grid;
  gap: 22px;
  min-width: 0;
}

.follow-side{
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.follow-side-card{
  position: sticky;
  top: 120px;
}

/* ===== TIMELINE : version qui marchait ===== */
.follow-timeline{
  --dot-size: 14px;
  --line-width: 3px;
  --dot-left: 6px;
  --label-offset: 38px;
  --step-gap: 18px;
  --row-height: 34px;

  position: relative;
  display: grid;
  gap: var(--step-gap);
  padding-left: 0;
}

.follow-timeline::before{
  content: "";
  position: absolute;
  left: calc(var(--dot-left) + (var(--dot-size) / 2) - (var(--line-width) / 2));
  top: calc((var(--row-height) / 2));
  bottom: calc((var(--row-height) / 2));
  width: var(--line-width);
  background: #dbe4f0;
  border-radius: 999px;
}

.follow-timeline::after{
  content: "";
  position: absolute;
  left: calc(var(--dot-left) + (var(--dot-size) / 2) - (var(--line-width) / 2));
  top: calc((var(--row-height) / 2));
  width: var(--line-width);
  height: var(--progress, 0%);
  background: linear-gradient(180deg, #2563eb 0%, #60a5fa 100%);
  border-radius: 999px;
  transition: height .35s ease;
}

.follow-step{
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--row-height);
  padding-left: var(--label-offset);
  margin: 0;
  color: #94a3b8;
  font-weight: 600;
}

.follow-step-label{
  display: block;
  line-height: 1.35;
  margin: 0;
}

.follow-step-dot{
  position: absolute;
  left: var(--dot-left);
  top: 50%;
  transform: translateY(-50%);
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  box-shadow: none;
  z-index: 2;
}

.follow-step.is-done{
  color: #0f172a;
}

.follow-step.is-done .follow-step-dot{
  background: #2563eb;
  box-shadow: none;
}

.follow-step.is-current{
  color: #0f172a;
  font-weight: 700;
}

.follow-step.is-current .follow-step-dot{
  background: #2563eb;
  box-shadow: 0 0 0 6px rgba(37,99,235,0.16);
}

/* ===== COULEURS STATUTS sans casser le reste ===== */
.follow-side-stat .status-badge,
.follow-artisan-retained .status-badge,
.follow-proposition-card .status-badge{
  font-weight: 700;
}

.follow-side-stat .status-devis_valide,
.follow-artisan-retained .status-devis_valide,
.follow-proposition-card .status-devis_valide,
.follow-side-stat .status-acceptee,
.follow-artisan-retained .status-acceptee,
.follow-proposition-card .status-acceptee,
.follow-side-stat .status-accepte,
.follow-artisan-retained .status-accepte,
.follow-proposition-card .status-accepte{
  color: #2563eb;
}

.follow-side-stat .status-proposition_envoyee,
.follow-artisan-retained .status-proposition_envoyee,
.follow-proposition-card .status-proposition_envoyee,
.follow-side-stat .status-attente,
.follow-artisan-retained .status-attente,
.follow-proposition-card .status-attente{
  color: #64748b;
}

.follow-side-stat .status-travaux_termines,
.follow-artisan-retained .status-travaux_termines,
.follow-proposition-card .status-travaux_termines{
  color: #16a34a;
}

.follow-side-stat .status-travaux_en_cours,
.follow-artisan-retained .status-travaux_en_cours,
.follow-proposition-card .status-travaux_en_cours{
  color: #ea580c;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px){
  .follow-layout{
    grid-template-columns: 1fr;
  }

  .follow-side-card{
    position: static;
  }
}

@media (max-width: 640px){
  .follow-summary-grid{
    grid-template-columns: 1fr;
  }

  .follow-page .follow-hero{
    padding-top: 145px;
  }
}

/* =========================
   SUIVI DEMANDE — BOUTONS PLUS PETITS
   ========================= */

.follow-page .btn,
.follow-page a.btn,
.follow-page .btn.btn-primary,
.follow-page .btn.btn-secondary,
.follow-page .follow-proposition-actions .btn,
.follow-page .follow-document-item .btn{
  padding: 8px 14px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  border-radius: 12px !important;
  min-width: 0 !important;
  width: auto !important;
}

/* bouton "Ouvrir" dans documents */
.follow-page .follow-document-item .btn{
  padding: 7px 14px !important;
  min-width: 96px !important;
}

/* boutons dans les propositions */
.follow-page .follow-proposition-actions .btn{
  padding: 8px 14px !important;
}

/* bouton principal plus compact */
.follow-page .follow-proposition-actions .btn.btn-primary,
.follow-page .follow-document-item .btn.btn-primary{
  box-shadow: 0 6px 16px rgba(37,99,235,0.16) !important;
}

.follow-conversation{
margin-bottom:28px;
padding-bottom:20px;
border-bottom:1px solid #eef2f7;
}

.follow-conversation-title{
font-size:18px;
margin-bottom:16px;
}

.follow-messages-thread{
display:flex;
flex-direction:column;
gap:12px;
}

.follow-message{
max-width:70%;
padding:12px 16px;
border-radius:12px;
background:#f1f5f9;
}

.follow-message.client{
align-self:flex-end;
background:#2563eb;
color:white;
}

.follow-message.artisan{
align-self:flex-start;
background:#f1f5f9;
}

/* ===============================
   MESSAGERIE CLIENT / SUIVI
   =============================== */

.follow-messages,
.account-messages-card{
  background:#fff;
  border:1px solid #e7ecf3;
  border-radius:24px;
  box-shadow:0 10px 30px rgba(15,23,42,0.04);
}

.follow-messages{
  padding:26px;
}

.follow-messages-list{
  display:grid;
  gap:18px;
}

.follow-conversation{
  border:1px solid #e9eef5;
  border-radius:20px;
  padding:18px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
}

.follow-conversation-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.follow-conversation-title{
  margin:0;
  font-size:18px;
  line-height:1.2;
  color:#0f172a;
}

.follow-conversation-meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.follow-conversation-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(37,99,235,0.10);
  color:#2563eb;
  font-size:12px;
  font-weight:800;
  line-height:1;
}

.follow-conversation-count{
  font-size:13px;
  color:#64748b;
  font-weight:600;
}

.follow-messages-thread{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.follow-message{
  display:flex;
}

.follow-message.artisan{
  justify-content:flex-start;
}

.follow-message.client{
  justify-content:flex-end;
}

.follow-message-bubble{
  max-width:min(720px,78%);
  padding:14px 16px;
  border-radius:18px;
  font-size:15px;
  line-height:1.55;
  box-shadow:0 6px 18px rgba(15,23,42,0.04);
}

.follow-message.artisan .follow-message-bubble{
  background:#f1f5f9;
  color:#0f172a;
  border-top-left-radius:8px;
}

.follow-message.client .follow-message-bubble{
  background:#2563eb;
  color:#fff;
  border-top-right-radius:8px;
}

.follow-message-bubble p{
  margin:0;
}

.follow-message-date{
  margin-top:6px;
  font-size:12px;
  opacity:.70;
}

.follow-message-empty{
  color:#64748b;
  font-size:14px;
}

/* ===== DASHBOARD - bloc messagerie ===== */

.account-messages-card{
  padding:22px 22px 20px;
}

.account-messages-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}

.account-messages-head h2{
  margin:0 0 6px;
  font-size:22px;
  color:#0f172a;
}

.account-messages-head p{
  margin:0;
  font-size:14px;
  color:#64748b;
  line-height:1.5;
}

.account-messages-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  background:#eff6ff;
  color:#2563eb;
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  white-space:nowrap;
}

.account-messages-list{
  display:grid;
  gap:12px;
}

.account-message-preview{
  border:1px solid #e7ecf3;
  border-radius:18px;
  padding:14px 16px;
  background:#fff;
}

.account-message-preview-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.account-message-preview-top strong{
  color:#0f172a;
  font-size:15px;
}

.account-message-preview-top span{
  color:#64748b;
  font-size:12px;
  font-weight:700;
}

.account-message-preview p{
  margin:0;
  color:#475569;
  font-size:14px;
  line-height:1.5;
}

.account-message-preview.is-unread{
  border-color:rgba(37,99,235,0.24);
  background:#f8fbff;
  box-shadow:0 10px 22px rgba(37,99,235,0.06);
}

.account-message-empty{
  color:#64748b;
  font-size:14px;
  line-height:1.6;
}

/* ===== PAGE MESSAGERIE ESPACE CLIENT ===== */

.account-conversations-list{
  display:grid;
  gap:16px;
}

.account-conversation-card{
  background:#fff;
  border:1px solid #e7ecf3;
  border-radius:22px;
  padding:20px;
  box-shadow:0 10px 30px rgba(15,23,42,0.04);
}

.account-conversation-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.account-conversation-card-head h3{
  margin:0;
  font-size:20px;
  color:#0f172a;
}

.account-conversation-card-meta{
  font-size:13px;
  color:#64748b;
  font-weight:700;
}

@media (max-width:768px){

  .follow-conversation-head,
  .account-conversation-card-head,
  .account-messages-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .follow-message-bubble{
    max-width:100%;
  }
}

.account-messages-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.account-section-header h2 {
  margin: 0 0 8px;
}

.account-section-header p {
  margin: 0;
  color: #6b7280;
}

.mal-messages-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mal-message-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.mal-message-card-main {
  flex: 1;
  min-width: 0;
}

.mal-message-card-top {
  margin-bottom: 10px;
}

.mal-message-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
}

.mal-message-card-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.mal-message-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14px;
  color: #4b5563;
}

.mal-message-card-action {
  flex-shrink: 0;
}

.mal-empty-state {
  padding: 28px;
  border: 1px dashed #d1d5db;
  border-radius: 16px;
  background: #f9fafb;
}

.mal-empty-state h3 {
  margin: 0 0 8px;
}

.mal-empty-state p {
  margin: 0;
  color: #6b7280;
}

.mal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

.mal-btn-primary {
  background: #0f172a;
  color: #fff;
}

.mal-btn-primary:hover {
  opacity: 0.92;
}

@media (max-width: 768px) {
  .mal-message-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .mal-message-card-action {
    width: 100%;
  }

  .mal-message-card-action .mal-btn {
    width: 100%;
  }
}

.account-conversation-panel {
  padding: 28px;
}

.account-conversation-head {
  margin-bottom: 24px;
}

.account-back-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.account-back-link:hover {
  text-decoration: underline;
}

.mal-conversation-thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mal-thread-message {
  max-width: 780px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.mal-thread-message.is-client {
  align-self: flex-end;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.mal-thread-message.is-artisan {
  align-self: flex-start;
  background: #f8fafc;
}

.mal-thread-message.is-system {
  align-self: center;
  max-width: 860px;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.mal-thread-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #64748b;
}

.mal-thread-message-meta strong {
  color: #0f172a;
}

.mal-thread-message-content {
  color: #0f172a;
  line-height: 1.65;
}

.mal-thread-message-content p {
  margin: 0 0 12px;
}

.mal-thread-message-content p:last-child {
  margin-bottom: 0;
}

.mal-chat-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
}

.mal-chat-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 18px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mal-chat-header {
  padding: 14px 18px 12px;
  border-bottom: 1px solid #edf2f7;
  background: #fff;
}

.mal-chat-header-top {
  margin-bottom: 8px;
}

.mal-chat-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mal-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f59e0b;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.mal-chat-contact-info h2 {
  margin: 0 0 2px;
  font-size: 16px;
  line-height: 1.2;
  color: #0f172a;
}

.mal-chat-contact-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #64748b;
  font-size: 13px;
}

.mal-chat-thread {
  height: 500px;
  overflow-y: auto;
  padding: 18px 18px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mal-chat-empty {
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px dashed #cbd5e1;
}

.mal-chat-empty h3 {
  margin: 0 0 8px;
}

.mal-chat-empty p {
  margin: 0;
  color: #64748b;
}

.mal-chat-message-row {
  display: flex;
}

.mal-chat-message-row.is-system {
  justify-content: flex-start;
}

.mal-chat-message-row.is-artisan {
  justify-content: flex-start;
}

.mal-chat-message-row.is-client {
  justify-content: flex-end;
}

.mal-chat-bubble {
  max-width: 72%;
  padding: 16px 18px 12px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #dbe3ee;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.mal-chat-message-row.is-client .mal-chat-bubble {
  background: #fef1ea;
  border-color: #f5d1bf;
}

.mal-chat-message-row.is-artisan .mal-chat-bubble {
  background: #fff;
  border-color: #dbe3ee;
}

.mal-chat-message-row.is-system .mal-chat-bubble {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.mal-chat-bubble-content {
  color: #0f172a;
  line-height: 1.6;
  word-break: break-word;
}

.mal-chat-bubble-content p {
  margin: 0 0 8px;
}

.mal-chat-bubble-content p:last-child {
  margin-bottom: 0;
}

.mal-chat-bubble-meta {
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
  text-align: right;
}

.mal-chat-composer-wrap {
  padding: 14px 18px 16px;
  border-top: 1px solid #e4ebf3;
  background: #fff;
  flex-shrink: 0;
}

.mal-chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.mal-chat-file-input {
  display: none;
}

.mal-chat-composer textarea {
  flex: 1;
  height: 42px;
  min-height: 42px;
  max-height: 140px;
  resize: none;
  overflow-y: auto;
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  padding: 11px 14px;
  font: inherit;
  line-height: 1.4;
  color: #0f172a;
  background: #fff;
  outline: none;
}

.mal-chat-composer textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
}

.mal-chat-attach-btn:hover {
  background: #eff6ff;
}

.mal-chat-composer textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
}

.mal-chat-composer-help {
  margin: 10px 4px 0;
  font-size: 13px;
  color: #64748b;
}

.mal-chat-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mal-chat-side-card {
  padding: 22px 20px;
  border: 1px solid #dbe3ee;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.mal-chat-side-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.2;
  color: #0f172a;
}

.mal-chat-side-card p {
  margin: 0 0 10px;
  color: #475569;
  line-height: 1.6;
}

.mal-chat-side-card p:last-child {
  margin-bottom: 0;
}

.mal-chat-side-warning {
  border-color: #fecaca;
  background: #fff7f7;
}

.mal-chat-side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #475569;
}

.mal-chat-side-list li {
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .mal-chat-shell {
    grid-template-columns: 1fr;
  }

  .mal-chat-side {
    order: 2;
  }
}

@media (max-width: 768px) {
  .mal-chat-thread {
    height: 420px;
    padding: 18px 16px;
  }

  .mal-chat-header {
    padding: 18px 16px;
  }

  .mal-chat-contact {
    align-items: flex-start;
  }

  .mal-chat-bubble {
    max-width: 88%;
  }

  .mal-chat-composer-wrap {
    padding: 14px 16px 16px;
  }

  .mal-chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
}

.mal-chat-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mal-chat-preview-file {
  width: 100%;
  height: 100%;
  padding: 10px 8px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: #f8fafc;
  color: #0f172a;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
}

.mal-chat-preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.mal-chat-preview-remove:hover {
  background: #dc2626;
}

.mal-chat-composer-wrap {
  padding: 14px 18px 16px;
  border-top: 1px solid #edf2f7;
  background: #fff;
  flex-shrink: 0;
}

.mal-chat-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 14px;
}

.mal-chat-preview-item {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe3ee;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.account-page.account-space-page .account-content {
  min-width: 0;
}

.mal-chat-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
}

.mal-chat-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 720px;
  border: 1.5px solid #cfd8e3;
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.mal-chat-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 720px;
}

.mal-chat-composer-wrap {
  padding: 14px 18px 16px;
  border-top: 1px solid #e4ebf3;
  background: #fff;
  flex-shrink: 0;
}

.mal-chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.mal-chat-attach-btn {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: #64748b;
  background: #f1f5f9;
  cursor: pointer;
  flex-shrink: 0;
}

.mal-chat-composer textarea {
  flex: 1;
  height: 46px;
  min-height: 46px;
  max-height: 140px;
  resize: none;
  overflow-y: auto;
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  padding: 12px 16px;
  font: inherit;
  line-height: 1.4;
  color: #0f172a;
  background: #fff;
  outline: none;
}

.mal-chat-send-btn {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border: none;
  border-radius: 14px;
  background: #2563eb;
  color: #fff;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  opacity: .35;
  transition: opacity .15s ease, transform .15s ease;
}

.mal-chat-send-btn.is-active {
  opacity: 1;
}

.mal-chat-send-btn:hover {
  transform: scale(1.05);
}

.mal-chat-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 14px;
}

.mal-chat-preview-item {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe3ee;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

@media (max-width: 1100px) {
  .mal-chat-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .mal-chat-main,
  .mal-chat-side {
    height: auto;
  }

  .mal-chat-side {
    order: 2;
  }
}

@media (max-width: 768px) {
  .mal-chat-thread {
    height: 420px;
    padding: 18px 16px;
  }

  .mal-chat-header {
    padding: 18px 16px;
  }

  .mal-chat-contact {
    align-items: flex-start;
  }

  .mal-chat-bubble {
    max-width: 88%;
  }

  .mal-chat-composer-wrap {
    padding: 14px 16px 16px;
  }

  .mal-chat-composer {
    gap: 10px;
  }

  .mal-chat-attach-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 24px;
  }

  .mal-chat-send-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    font-size: 16px;
  }

  .mal-chat-composer textarea {
    height: 44px;
    min-height: 44px;
    padding: 11px 14px;
  }
}

.mal-chat-bubble {
  padding: 8px 10px;
  border-radius: 10px;
  max-width: 62%;
  box-shadow: none;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.mal-chat-message-row.is-client .mal-chat-bubble,
.mal-chat-message-row.is-artisan .mal-chat-bubble,
.mal-chat-message-row.is-system .mal-chat-bubble {
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.mal-chat-bubble-attachments {
  margin-bottom: 6px;
}

.mal-chat-attachment-image-link {
  display: inline-block;
  max-width: 190px;
  border-radius: 8px;
  overflow: hidden;
}

.mal-chat-attachment-image-link img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.mal-chat-bubble-content {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.35;
}

.mal-chat-bubble-content p {
  margin: 0;
}

.mal-chat-bubble-meta {
  margin-top: 6px;
  font-size: 12px;
}

.account-space-page + footer {
  display: none;
}

.mal-chat-composer textarea {
  resize: none;
  overflow-y: hidden;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* ancien Edge / IE */
}

.mal-chat-composer textarea::-webkit-scrollbar {
  display: none;              /* Chrome / Safari / Edge */
}

.mal-chat-back {
  color: #2563eb !important;
}

.mal-chat-message-row.is-system {
  display: flex;
  align-items: flex-start;
  gap: 2px; /* réduit l’espace entre logo et bulle */
}

.mal-chat-system-logo {
  width: auto;
  min-width: auto;
  margin: 6px 0 0 0;
  padding: 0;
}

.mal-chat-system-logo img {
  width: 72px;
  height: auto;
  display: block;
}

.mal-chat-message-row.is-system .mal-chat-bubble {
  padding: 10px 12px;
}

.mal-chat-message-row.is-system {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-left: -18px;
}

.mal-message-card-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mal-conversation-delete {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #dc2626;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.mal-conversation-delete:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  transform: scale(1.05);
}

.mal-archive-modal[hidden] {
  display: none;
}

.mal-archive-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.mal-archive-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.mal-archive-modal-dialog {
  position: relative;
  width: min(92vw, 460px);
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
}

.mal-archive-modal-dialog h3 {
  margin: 0 0 12px;
  font-size: 22px;
  color: #0f172a;
}

.mal-archive-modal-dialog p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.mal-archive-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.mal-archive-cancel,
.mal-archive-confirm {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
}

.mal-archive-cancel {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  color: #0f172a;
}

.mal-archive-confirm {
  background: #dc2626;
  border: 1px solid #dc2626;
  color: #fff;
}

.account-list-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.mal-conversation-delete {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid #fecaca;
  color: #dc2626;
  cursor: pointer;
  transition: all .18s ease;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.06);
  padding: 0;
}

.mal-conversation-delete .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 18px;
}

.mal-conversation-delete:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.12);
}

.mal-conversation-delete:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.10);
}

.mal-conversation-restore {
  min-width: 120px;
  justify-content: center;
  border-color: #bbf7d0;
  color: #15803d;
}

.mal-conversation-restore:hover {
  background: #f0fdf4;
}

.mal-messages-footer-tabs {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.mal-messages-footer-tab {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  color: #0f172a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all .15s ease;
}

.mal-messages-footer-tab:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.mal-messages-footer-tab-archive {
  color: #7c3aed;
  border-color: #ddd6fe;
  background: #f5f3ff;
}

.mal-messages-footer-tab-archive:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #6d28d9;
}

.mal-messages-footer-tab-back {
  color: #334155;
}

.mal-message-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  margin-top: 10px;
}

.account-message-preview-bottom {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-message-preview-link {
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.account-message-preview-link:hover {
  text-decoration: underline;
}

.account-dashboard-grid {
  align-items: start;
}

.account-dashboard-grid > .account-panel,
.account-dashboard-grid > .account-messages-card {
  align-self: start;
}

/* =========================================================
   PAGE CRÉER ESPACE ARTISAN
========================================================= */

.form-creer-espace-artisan-page{
  padding: 34px 0 64px;
}

.form-creer-espace-artisan-page .form-hero{
  padding-top: 80px;
  padding-bottom: 18px;
}

.form-creer-espace-artisan-page .form-hero-inner{
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.form-creer-espace-artisan-page .form-hero-inner h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 850;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: #0f172a;
}

.form-creer-espace-artisan-page .form-hero-sub{
  max-width: 680px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(15,23,42,0.80);
}

/* Layout */
.form-creer-espace-artisan-page .urgence-layout{
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 18px;
  align-items: start;
  margin-top: 12px;
}

.form-creer-espace-artisan-page .urgence-main{
  min-width: 0;
}

.form-creer-espace-artisan-page .urgence-side{
  position: sticky;
  top: 110px;
  display: grid;
  gap: 14px;
  align-content: start;
}

/* Carte formulaire */
.form-creer-espace-artisan-page .compte-form-wrap{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(15,23,42,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 22px;
}

.form-creer-espace-artisan-page .compte-form-head{
  margin-bottom: 18px;
}

.form-creer-espace-artisan-page .compte-form-kicker{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37,99,235,0.10);
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 12px;
}

.form-creer-espace-artisan-page .compte-form-head h2{
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #0f172a;
}

.form-creer-espace-artisan-page .compte-form-head p{
  margin: 0;
  color: rgba(15,23,42,0.78);
  line-height: 1.6;
}

.form-creer-espace-artisan-page .compte-form-alert{
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.form-creer-espace-artisan-page .compte-form-alert.is-error{
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.22);
  color: #b91c1c;
}

/* Form */
.form-creer-espace-artisan-page .compte-client-form{
  margin-top: 0;
}

.form-creer-espace-artisan-page .compte-client-form .mal-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-creer-espace-artisan-page .compte-client-form .mal-field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-creer-espace-artisan-page .compte-client-form .mal-field-full{
  grid-column: 1 / -1;
}

.form-creer-espace-artisan-page .compte-client-form .mal-field label{
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
}

.form-creer-espace-artisan-page .compte-client-form input{
  width: 100%;
  border: 1px solid rgba(15,23,42,0.14);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.form-creer-espace-artisan-page .compte-client-form input:focus{
  border-color: rgba(37,99,235,0.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.10);
}

.form-creer-espace-artisan-page .compte-form-note{
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15,23,42,0.03);
  border: 1px solid rgba(15,23,42,0.08);
  color: rgba(15,23,42,0.72);
  line-height: 1.55;
  font-size: 14px;
}

.form-creer-espace-artisan-page .compte-form-actions{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.form-creer-espace-artisan-page .compte-form-actions .btn{
  min-width: 190px;
  justify-content: center;
}

.form-creer-espace-artisan-page .compte-login-link{
  font-weight: 800;
  color: #2563eb;
  text-decoration: none;
}

.form-creer-espace-artisan-page .compte-login-link:hover{
  text-decoration: underline;
}

/* Colonne droite */
.form-creer-espace-artisan-page .compte-benefits-card{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 16px 32px rgba(15,23,42,0.06);
  padding: 16px;
}

.form-creer-espace-artisan-page .compte-benefits-card h3{
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 950;
  color: #0f172a;
}

.form-creer-espace-artisan-page .compte-benefits-image{
  margin-bottom: 14px;
  border-radius: 14px;
  overflow: hidden;
}

.form-creer-espace-artisan-page .compte-benefits-image img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.form-creer-espace-artisan-page .compte-benefits-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.form-creer-espace-artisan-page .compte-benefits-list li{
  padding: 10px 0;
  border-top: 1px solid rgba(15,23,42,0.08);
  line-height: 1.35;
}

.form-creer-espace-artisan-page .compte-benefits-list li:first-child{
  border-top: 0;
}

.form-creer-espace-artisan-page .compte-benefits-list strong{
  display: block;
  font-size: 13.5px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 2px;
}

.form-creer-espace-artisan-page .compte-benefits-list span{
  display: block;
  font-size: 13px;
  color: rgba(15,23,42,0.68);
}

.form-creer-espace-artisan-page .compte-benefits-note{
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.08);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(15,23,42,0.75);
}

.form-creer-espace-artisan-page .compte-help-card{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.08);
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 16px 32px rgba(15,23,42,0.06);
}

.form-creer-espace-artisan-page .urgence-side-call-h{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.form-creer-espace-artisan-page .urgence-side-call-h .ic{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(37,99,235,0.10);
  flex: 0 0 auto;
}

.form-creer-espace-artisan-page .urgence-side-call-h .sub{
  font-size: 13px;
  color: rgba(15,23,42,0.70);
  margin-top: 2px;
}

.form-creer-espace-artisan-page .urgence-side-phone{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  text-align: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 18px rgba(37,99,235,0.16);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.form-creer-espace-artisan-page .urgence-side-phone:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37,99,235,0.20);
  filter: brightness(1.02);
}

.form-creer-espace-artisan-page .mal-form-inline-error{
  margin-top: 12px;
  margin-bottom: 2px;
  font-size: 13px;
  line-height: 1.45;
  color: #b91c1c;
}

.form-creer-espace-artisan-page .mal-field.is-error input{
  border-color: rgba(220,38,38,0.55);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}

/* Responsive */
@media (max-width: 980px){
  .form-creer-espace-artisan-page .urgence-layout{
    grid-template-columns: 1fr;
  }

  .form-creer-espace-artisan-page .urgence-side{
    position: static;
  }
}

@media (max-width: 860px){
  .form-creer-espace-artisan-page .compte-client-form .mal-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px){
  .form-creer-espace-artisan-page .compte-form-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .form-creer-espace-artisan-page .compte-form-actions .btn{
    width: 100%;
    min-width: 0;
  }

  .form-creer-espace-artisan-page .compte-login-link{
    text-align: center;
  }
}

.account-page .compte-client-form textarea{
  width: 100%;
  min-height: 140px;
  padding: 14px 16px;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
  color: #0f172a;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
  box-sizing: border-box;
  resize: vertical;
}

.account-page .compte-client-form textarea:focus{
  border-color: rgba(37,99,235,0.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.10);
}

.mal-checkbox-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 4px;
}

.mal-checkbox-item{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #0f172a;
}

.mal-checkbox-item input{
  width: auto !important;
  min-height: auto !important;
}

.mal-checkbox-inline{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.mal-checkbox-inline input{
  width: auto !important;
  min-height: auto !important;
}

.account-file-current{
  margin: 0 0 10px;
  font-size: 14px;
  color: #475569;
}

.account-file-current a{
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.account-file-current a:hover{
  text-decoration: underline;
}

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

.reset-password-page .compte-form-actions {
  margin-top: 20px;
}

.reset-password-page .btn.btn-primary {
  min-width: 280px;
}

.reset-password-page .compte-register-box {
  margin-top: 24px;
}

.reset-password-page .compte-register-box .btn {
  min-width: 160px;
}

@media (max-width: 767px) {
  .reset-password-page .btn.btn-primary {
    width: 100%;
    min-width: 0;
  }

  .reset-password-page .compte-register-box div {
    flex-direction: column;
  }

  .reset-password-page .compte-register-box .btn {
    width: 100%;
  }
}
