/* -----------------------------
   VARIABLES (couleurs)
----------------------------- */
:root{
  --blue:#2f5ea9;
  --orange:#ff7448;
  --white:#ffffff;
  --text:#333333;
}

/* -----------------------------
   BASE
----------------------------- */
body{
  font-family:'Poppins',sans-serif;
  color:var(--text);
  margin:0;
}

h1,h2,h3{font-weight:600;color:var(--blue);}
a{transition:.25s;text-decoration:none}

.text-blue{color:var(--blue) !important;}
.text-orange{color:var(--orange) !important;}
.bg-blue{background:var(--blue) !important;}
.bg-orange{background:var(--orange) !important;}
.section-padding{padding:80px 0}
.section-padding-top{padding-top:80px;}
.section-padding-bottom{padding-bottom:80px;}

/* -----------------------------
   HEADER EXACT MAQUETTE
----------------------------- */
.site-header{position:fixed;inset:0 0 auto 0;z-index:1000}
.topbar{
  height:25px;
  background:var(--white);
}
.menubar{
  height:25px;
  background:var(--orange);
  display:flex;
  align-items:center;
  color:#fff;
}
.mainnav ul{list-style:none;margin:0;padding:0}
.mainnav ul li a{
  color:#fff;
  font-weight:500;
  display:flex;
  align-items:center;
  font-size:12px;
}
.mainnav ul li a:hover{opacity:.85}
.topbar .social a{font-size:1.15rem;}
.topbar .social a:hover{opacity:.7}
.brand-badge{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:0;
  pointer-events:none;
}
.brand-badge-inner{
  background:var(--blue);
  border-radius:0 0 28px 28px;
  padding:16px 28px 18px;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}
.brand-badge img{
  display:block;
  height:100px;
  filter:brightness(0) invert(1);
}
.menu-toggle{border:0;background:transparent}
.mobile-nav{
  display:none;
  background:#fff;
  border-top:3px solid var(--orange);
}
.mobile-nav ul li a{
  display:block;
  padding:12px 18px;
  color:var(--blue);
  font-weight:500;
}
.mobile-nav ul li a:hover{
  background:var(--orange);
  color:#fff;
}
.hero{margin-top:50px;} /* pour compenser header fixe */

/* -----------------------------
   HERO (nouvelle version maquette)
----------------------------- */
.hero{
  display:flex;
  flex-wrap:wrap;
  position:relative;
  color:#fff;
  min-height:800px;
}
.hero-left,
.hero-right{
  flex:1 1 50%;
  min-height:800px;
  background-size:cover;
  background-position:center;
  position:relative;
  display:flex;
  justify-content:center;
}

.hero::before{
  content:'';
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.25);
}
.hero-content{
  position:relative;
  z-index:2;
  max-width:420px;
  margin-top:200px;
}
.hero p{
  color:#fff;
  font-size:0.95rem;
  line-height:1.5;
}
.hero-btn{
  display:inline-block;
  padding:10px 22px;
  font-weight:600;
  border-radius:50px;
  font-size:1rem;
  text-align:center;
  white-space:nowrap;
  font-size: large;
}
.hero-btn.btn-orange{
  background:var(--orange);
  color:#fff;
}
.hero-btn.btn-blue{
  background:var(--blue);
  color:#fff;
}
.hero-btn:hover{
  opacity:0.9;
}

.second-cerfa{
    display:none;
}

/* texte superposé au centre */
.hero-overlay-text{
  position:absolute;
  bottom:40px;
  left:50%;
  transform:translateX(-50%);
  z-index:3;
  text-shadow:0 2px 6px rgba(0,0,0,.4);
  max-width: 90vw;
  width: 100%;
  padding: 0 5vw;
  box-sizing: border-box;
}
html, body {
  overflow-x: hidden;
  width: 100%;
}
.hero-overlay-text h1{
  color:#fff;
  font-size:1.9rem;
  font-weight:600;
  margin-bottom:12px;
}
.scroll-indicator i{
  font-size:1.6rem;
  color:var(--orange);
  animation:bounce 1.6s infinite;
}
@keyframes bounce{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(6px)}
}

.scroll-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  margin: 0 auto;
  animation: bounce 1.6s infinite;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  cursor: pointer;
}
.scroll-indicator i {
  font-size: 1.3rem;
  line-height: 1;
  font-weight: bold;
    color:#FFF;
}

/* -----------------------------
   BOUTONS
----------------------------- */
.btn-orange{background:var(--orange);color:#fff;border:none}
.btn-orange:hover{background:#e66533;color:#fff}
.btn-blue{background:var(--blue);color:#fff;border:none}
.btn-blue:hover{background:#224a87;color:#fff}

/* -----------------------------
   FORMULAIRE (maquette)
----------------------------- */
.form-intro h2 {
  font-size: 1.9rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.form-intro p {
  font-size: 1rem;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}
.divider-top,
.divider-bottom {
  width: 80%;
  max-width: 500px;
  height: 1px;
  background: var(--blue);
  border: none;
  margin: 0.75rem auto;
}

.form-card {
  max-width: 700px;
}

.form-container{
    background-color:#f8fafc;
}

.formulaire label {font-weight:500}
.formulaire .btn{border-radius:30px;padding:10px 30px}
.form-control:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 .2rem rgba(47,94,169,.25);
}

.formulaire .form-control {
  border: 1.5px solid var(--blue);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--text);
}

.form-control::placeholder {
  color: var(--blue);
  opacity: 1; /* pour éviter la transparence par défaut sur certains navigateurs */
}

.formulaire .form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(47,94,169,0.15);
}

.formulaire textarea.form-control {
  resize: vertical;
}

/* amélioration esthétique au survol (optionnel) */
.formulaire .form-control {
  border-color: #224a87;
}

/* case à cocher */
.form-check-input:checked {
  background-color: var(--blue);
  border-color: var(--blue);
}
.form-check-label {
  font-size: 0.9rem;
  color: var(--text);
}

/* -----------------------------
   SELECT communes (avec recherche)
----------------------------- */
.bootstrap-select .dropdown-toggle {
  border: 1.5px solid var(--blue);
  border-radius: 8px;
  color: var(--blue);
  padding: 10px 14px;
  background-color: #fff;
}

.bootstrap-select .dropdown-toggle:focus,
.bootstrap-select .dropdown-toggle:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.2rem rgba(47,94,169,0.15);
}

.bootstrap-select .dropdown-menu {
  border: 1px solid var(--blue);
  border-radius: 8px;
}

.bootstrap-select .dropdown-menu .inner .text {
  color: var(--blue);
}

.bootstrap-select .bs-searchbox input {
  border: 1px solid var(--blue);
  color: var(--blue);
}

.bootstrap-select>.dropdown-toggle.bs-placeholder,
.bootstrap-select>.dropdown-toggle.bs-placeholder:focus,
.bootstrap-select>.dropdown-toggle.bs-placeholder:hover {
  color: var(--blue) !important;
  opacity: 1; /* supprime l'effet gris clair */
}

.active{
    background-color: #f9f9f9 !important;
}

/* -----------------------------
   INFORMATIONS PRATIQUES (nouvelle maquette)
----------------------------- */
#infos h2 span {
  display: inline-block;
  border-bottom: 3px solid var(--blue);
  padding-bottom: 4px;
}

.info-step {
  margin-bottom: 60px;
}

.step-title{
  display:flex; align-items:center;
  gap:.6rem;
  color:var(--orange);
  font-weight:700;
  font-size:1.25rem;
}
.step-badge{
  width:28px; height:28px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--orange); color:#fff; font-weight:700; line-height:1;
}

.info-lead{ margin-bottom:14px; }

.info-box {
  border-radius: 10px;
}

.info-box.bg-orange a,
.info-box.bg-blue a {
  border-radius: 50px;
  padding: 10px 22px;
  color: var(--blue);
}

.list-head{
  margin-top:6px; margin-bottom:8px;
  font-weight:600; color:var(--blue);
}
.list-two{
  list-style:none; padding-left:0; margin:0 0 4px 0;
}
.list-two li{
  position:relative; padding-left:42px; margin-bottom:14px; line-height:1.55;
}
.list-two li::before{
  content:"";
  position:absolute; left:0; top:2px;
  width:22px; height:22px;
  background: no-repeat center / contain;
  /* petit pictogramme orange façon flèche/bristol */
  background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g transform="rotate(135 32 32)"><path fill="%23ff7448" d="M10 2l40 30-20 4 6 20-8 2-6-20-12 10z"/></g></svg>');



}

.list-check {
  list-style: none;
  padding-left: 0;
}
.list-check li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-weight: bold;
}

.alert-danger {
  background: #ffeaea;
  color: #b30000;
  border: 1px solid #ffb3b3;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.final-steps .info-box {
  transition: 0.3s ease;
}
.final-steps .info-box:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

/* -----------------------------
   RESPONSIVE
----------------------------- */
@media (max-width: 768px) {
  .info-step { margin-bottom: 40px; }
  .final-steps .info-box { text-align: center; }
  .step-circle { margin: 0 auto 10px auto; }
}

/* -----------------------------
   FAQ
----------------------------- */
.accordion-button{font-weight:500;color:var(--blue)}
.accordion-button:not(.collapsed){color:#fff;background:var(--blue)}

/* -----------------------------
   CONTACT
----------------------------- */
.contact .btn-light{background:#fff;color:var(--blue);border:none}
.contact .btn-light:hover{background:#f1f1f1}

/* -----------------------------
   FOOTER
----------------------------- */
footer{font-size:.9rem}

/* -----------------------------
   RESPONSIVE
----------------------------- */
@media (max-width: 992px){
  .mainnav{display:none !important}
  .brand-badge-inner{padding:14px 22px 16px}
  .brand-badge img{height:75px}
  .hero-overlay-text{
    max-width: 600px;
    width:600px;
  }
}
@media (max-width: 817px){
  .second-cerfa{
    display:block;
  }
  .first-cerfa{
    display:none;
  }
  .hero-overlay-text{
    top:60%;
  }
}
@media (max-width: 768px){
  .hero{
    flex-direction:column;
  }
  .hero-left,.hero-right{
    flex:1 1 100%;
    text-align:center;
  }
  .hero-content{text-align:center !important;padding:0 20px;}
  .hero-overlay-text{bottom:20px;}
  .hero-overlay-text h1{font-size:1.4rem;}
  .hero-overlay-text{
    max-width: 400px;
    width:400px;
  }
}
@media (max-width: 576px){
  .brand-badge img{height:46px}
  .section-padding{padding:60px 0}
  .section-padding-top{padding-top:60px;}
  .section-padding-bottom{padding-bottom:60px;}
  footer{font-size:.82rem}
}

.conseils-section {
  background-color: #fff;
  font-family: 'Poppins', sans-serif;
}

.conseil-card {
  background-color: #0057B8;
  color: #fff;
  border-radius: 15px;
  padding: 2rem 1.5rem;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center; /* centre verticalement le contenu */
}

.warning-icon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conseil-card h3 {
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

.conseil-card p {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  .conseil-card {
    text-align: center;
  }

  .warning-icon {
    top: -10px;
  }
}

.h45{
    height:45%;
}

.mb5p{
    margin-bottom: 10%;
}

.faq-item {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  background-color: #eaf1fa;
}

.accordion-button {
  background-color: #eaf1fa;
  color: #1a4b8c;
  font-weight: 500;
  border-radius: 20px;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background-color: #eaf1fa;
  color: #1a4b8c;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-body {
  color: #1a4b8c;
  background-color: #eaf1fa;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ff5e00' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.accordion-button.collapsed::after {
  transform: rotate(0deg);
}

.accordion-item {
  border-radius: 20px !important;
  overflow: hidden;
  border: none;
}

.cerfaimg{
    max-width: 450px;
}

@media (max-width: 769px) {
  .cerfaimg{
    max-width: 300px;
}
}
