body{
  font-family: 'Inter', sans-serif;
}

/* Titres du hero */
.hero-text h1{
  font-family: 'Nunito', sans-serif;
  font-weight:700;
}

/* Paragraphe du hero */
.hero-text p{
  font-family: 'Inter', sans-serif;
}

/* Titres du formulaire */
.adhesion-form h3{
  font-family: 'Nunito', sans-serif;
  font-weight:600;
}


/* ========================= */
/* LOGO CENTRÉ               */
/* ========================= */
.hero-logo{
  max-width:1100px;
  margin:0 auto;
  padding:0px 40px 32px; /* ⭐ ajoute un espace sous le logo */
  text-align:center;
}


.hero-logo img{
  height:80px;
  display:inline-block;
}


/* ========================= */
/* HERO STYLE ONG / JOTFORM  */
/* ========================= */

.adhesion-hero{
  background:#363637;
  padding:0;
}

/* CONTENEUR : suit l'image mais sans clamp agressif */
.hero-inner{
  max-width:1100px;
  margin:0 auto;
  padding:0 ;

  display:flex;
  align-items:flex-end;
  gap:40px;

  height:auto;
}

/* IMAGE : plus de margin-left négatif, image à gauche propre */
.hero-image{
  flex:1;
  display:flex;
  align-items:flex-end;
  margin-left:0;
}

.hero-image img{
  width:auto;
  max-width:150%;
  height:100%;
  object-fit:contain;
  object-position:bottom;
  display:block;
}

/* TEXTE : aligné sur la base de l'image */
.hero-text{
  flex:1.4;
  color:#fff;
  padding-bottom:10px;
}

.hero-text h1{
  font-family:'Nunito',sans-serif;
  font-size:clamp(1.3rem, 2.9vw, 2.2rem);
  font-weight:700;
  margin-bottom:8px;
}

.hero-text p{
  font-size:clamp(0.85rem, 1.7vw, 1.1rem);
  opacity:0.9;
  font-family:'Inter',sans-serif;
}

/* HERO collé aux bords du formulaire */
.adhesion-form .adhesion-hero{
  margin:-40px -40px 0 -40px;
  border-radius:5px 5px 0 0;
}

/* HERO collé aux bords de la section */
#adhesion .adhesion-hero{
  margin-left:-40px;
  margin-right:-40px;
}








/* ========================= */
/* SECTION FORMULAIRE        */
/* ========================= */

/* HERO collé aux bords du formulaire */
.adhesion-form .adhesion-hero{
  margin: -40px -40px 0 -40px;
  border-radius:5px 5px 0 0;
}

/* HERO collé aux bords de la section */
#adhesion .adhesion-hero{
  margin-left:-40px;
  margin-right:-40px;
}


#adhesion{
  background:#252525;
  padding:30px 0;
  border-radius:5px; /* ⭐ arrondi léger du fond bleu */
  overflow:hidden;    /* ⭐ indispensable pour que l’arrondi soit visible */
}


.wrap{
  max-width:900px;
  margin:0 auto;
  padding:0 40px;
}


/* ========================= */
/* HEAD FORMULAIRE           */
/* ========================= */
.section-head{
  text-align:center;
  margin-bottom:40px;
}

.section-head .tag{
  display:inline-block;
  background:#2563eb;
  color:#fff;
  padding:5px 14px;
  border-radius:5px;
  font-size:0.85rem;
  margin-bottom:12px;
}

.section-head h2{
  font-size:2rem;
  margin-bottom:5px;
  color:#1f2937;
}

.section-head .intro{
  font-size:1rem;
  color:#4b5563;
}


/* ========================= */
/* BOUTON PDF                */
/* ========================= */
.adhesion-download{
  text-align:center;
  margin-bottom:40px;
}

.btn-large{
  background:#1a1b1b;
  color:#fff;
  padding:14px 28px;
  border-radius:5px;
  font-size:1rem;
  font-weight:600;
  border:none;
  cursor:pointer;
  display:inline-block;
}


/* ========================= */
/* FORMULAIRE (carte blanche)*/
/* ========================= */
.adhesion-form{
  background:#fff;
  padding:40px;
  border-radius:5px;

  /* ⭐ contour très subtil */
  border:1px solid rgba(255,255,255,0.18);

  /* ⭐ halo interne ultra léger */
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.18) inset,
    0 3px 14px rgba(0,0,0,0.04),
    0 0 4px rgba(0,0,0,0.02);

  display:flex;
  flex-direction:column;
  gap:22px;
}

/* Titres du formulaire */
.adhesion-form h3{
  font-family: 'Nunito', sans-serif;
  font-weight:600;
  font-size:1.3rem;
  margin-bottom:10px;
  color:#1f2937;
}


/* ========================= */
/* CHAMPS                    */
/* ========================= */
.adhesion-form label{
  font-size:0.9rem;
  font-weight:600;
  color:#374151;
  margin-bottom:6px;
}

.adhesion-form input[type="text"],
.adhesion-form input[type="email"],
.adhesion-form input[type="date"]{
  width:100%;
  padding:12px 8px;
  border:1px solid #d1d5db;
  border-radius:5px; /* arrondi identique au modèle */
  font-size:1rem;
  background:#fff;
}


/* ========================= */
/* RADIOS / CHECKBOXES       */
/* ========================= */
.radio,
.check{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:0.95rem;
  color:#374151;
}

.radio input,
.check input{
  width:18px;
  height:18px;
}


/* ========================= */
/* CHAMP "AUTRE"             */
/* ========================= */
.hidden{
  display:none;
}


/* ========================= */
/* BOUTON ENVOYER            */
/* ========================= */
.adhesion-submit{
  text-align:center;
  margin-top:20px;
}

.adhesion-submit .btn-large{
  width:100%;
  max-width:260px;
}

.signature-wrapper {
  margin-top: 20px;
}

#signature-canvas {
  border: 2px solid #0b2f5f;
  border-radius: 8px;
  background: #fff;
  width: 100%;
  max-width: 500px;
  height: 200px;
  display: block;
}

.signature-actions {
  margin-top: 10px;
}

#signature-canvas{
  touch-action:none;        /* ⭐ empêche le scroll / pan / zoom */
  -ms-touch-action:none;    /* IE/Edge legacy */
}

/* ============================
   MODALE CONFIRMATION
   ============================ */
.confirm-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.confirm-box{
  background:#fff;
  color:#111;
  max-width:420px;
  width:90%;
  padding:24px;
  border-radius:8px;
  box-shadow:0 12px 40px rgba(0,0,0,0.25);
  font-size:0.95rem;
}

.confirm-actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top:20px;
}

.details-link{
  font-size:0.85rem;
  color:#af2015;
  text-decoration:underline;
}




@media (max-width:480px){

  /* SECTION & WRAP */
  #adhesion{
    padding:20px 0;
  }

  .wrap{
    padding:0 16px;
  }

  /* LOGO */
  .hero-logo{
    padding:0 0 20px;
  }

  .hero-logo img{
    height:60px;
  }

  /* HERO */
  .adhesion-form{
    padding:0;        /* le hero colle aux bords internes */
    gap:12px;
  }

  .adhesion-form .adhesion-hero{
    margin:0 !important;              /* ⭐ écrase TOUTES les marges desktop */
    border-radius:5px 5px 0 0;
    min-height:240px;
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .hero-inner{
    width:100%;
    padding:16px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:16px;
  }

  .hero-image{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .hero-image img{
    height:100%;
    width:auto;
    object-fit:contain;
  }

  .hero-text{
    text-align:center;
    padding-bottom:0;
  }

  /* FORMULAIRE — padding latéral propre */
  .adhesion-form > *:not(.adhesion-hero){
    padding:0 16px;
  }

  .adhesion-form h3{
    font-size:1.15rem;
    margin-bottom:6px;
    padding:0 16px;
  }

  .adhesion-form label{
    font-size:0.9rem;
    margin-bottom:4px;
    padding:0 16px;
  }

  .adhesion-form input[type="text"],
  .adhesion-form input[type="email"],
  .adhesion-form input[type="date"]{
    margin:0 16px;      /* ⭐ marge latérale externe */
    width:calc(100% - 32px); /* ⭐ évite débordement */
    box-sizing:border-box;
  }

  .radio,
  .check{
    font-size:0.9rem;
    gap:8px;
    padding:0 16px;
  }

  #statut-autre-field{
    margin-top:4px;
  }

  /* SIGNATURE */
  #signature-canvas{
    max-width:100%;
    height:150px !important;
  }

  .signature-actions{
    text-align:center;
  }

  /* BOUTONS */
  .adhesion-submit .btn-large,
  .adhesion-download .btn-large{
    width:100%;
    max-width:none;
    padding:12px;
    font-size:1rem;
  }

  .adhesion-download{
    margin-bottom:20px;
  }
}
