/* Relooking page formation - à charger APRÈS css/style.css
   Ajuster les 4 couleurs ci-dessous pour les caler sur la charte CFORPRO */
.largeurpage{
  --c-bleu:#1f4e79;
  --c-bleu-clair:#eaf1f8;
  --c-orange:#f08a24;
  --c-texte:#2b3440;
  --c-bord:#d9e2ec;
}

/* Titres */
.largeurpage .contenuformation h1{
  color:var(--c-bleu);
  font-size:2rem;
  line-height:1.2;
  margin:0 0 20px;
  padding-bottom:12px;
  border-bottom:3px solid var(--c-orange);
}
.largeurpage .contenuformation h2{
  color:var(--c-bleu);
  font-size:1.35rem;
  margin:34px 0 12px;
  display:flex;
  align-items:center;
  gap:8px;
}
.largeurpage .contenuformation h3{
  color:var(--c-bleu);
  font-size:1.05rem;
  margin:20px 0 6px;
}
.largeurpage .contenuformation p,
.largeurpage .contenuformation li{
  color:var(--c-texte);
  line-height:1.65;
}
.largeurpage .contenuformation ul{
  padding-left:20px;
}
.largeurpage .contenuformation li{
  margin-bottom:6px;
}

/* Badge TOSA */
.largeurpage .badge-tosa{
  max-width:160px;
  height:auto;
  margin:0 0 10px 20px;
}

/* Bloc résumé */
.largeurpage .contenuformation .resume{
  background:var(--c-bleu-clair);
  border-left:5px solid var(--c-orange);
  border-radius:6px;
  padding:20px 24px;
  line-height:1.9;
  overflow:hidden;
}
.largeurpage .contenuformation .resume span{
  color:var(--c-bleu);
  font-weight:700;
}
.largeurpage .contenuformation .resume img{
  border-radius:6px;
  max-width:100%;
  height:auto;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
}

/* Boutons d'action (CPF, programme, calendrier, inscription) */
.largeurpage .clics{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin:24px 0;
}
.largeurpage .clics > div{
  flex:1 1 130px;
  text-align:center;
  background:#fff;
  border:1px solid var(--c-bord);
  border-radius:8px;
  padding:14px 8px 6px;
  float:none;
  margin:0;
  transition:border-color .2s, box-shadow .2s;
}
.largeurpage .clics > div:hover{
  border-color:var(--c-orange);
  box-shadow:0 3px 10px rgba(0,0,0,.1);
}
.largeurpage .clics img{
  height:45px;
  width:auto;
}
.largeurpage .clics p{
  margin:8px 0 6px;
  font-weight:600;
}
.largeurpage .clics a{
  text-decoration:none;
  color:var(--c-bleu);
}

/* Bandeaux "Demande de devis" et "CPF Infos" */
.largeurpage h3.horaires.fdbleu{
  background:var(--c-bleu);
  border-radius:6px;
  padding:12px 18px;
  margin:20px 0;
}
.largeurpage h3.horaires.fdbleu a{
  color:#fff;
  text-decoration:none;
  font-weight:700;
}
.largeurpage h3.horaires.fdbleu a:hover{
  text-decoration:underline;
}

/* Encadrés bleus (test, attestation, certification) */
.largeurpage .cadrebleu{
  background:var(--c-bleu-clair);
  border:1px solid var(--c-bleu);
  border-radius:6px;
  padding:10px 16px;
  font-weight:700;
  color:var(--c-bleu);
}

/* Formulaire de devis */
.largeurpage #ancreform{
  border-radius:8px;
  padding:20px 24px;
}
.largeurpage #ancreform h4{
  line-height:1.4;
}

/* Témoignages */
.largeurpage #temoignages h4{
  color:var(--c-bleu);
  font-size:1.2rem;
  margin:28px 0 12px;
}
.largeurpage .temoignage{
  background:#fff;
  border:1px solid var(--c-bord);
  border-left:4px solid var(--c-orange);
  border-radius:6px;
  padding:14px 18px;
  margin-bottom:14px;
}
.largeurpage .temoignage .citation{
  font-style:italic;
  margin:0 0 8px;
}
.largeurpage .temoignage .temoin{
  font-weight:700;
  color:var(--c-bleu);
  margin:0;
}

/* Mobile */
@media (max-width:640px){
  .largeurpage .contenuformation h1{font-size:1.5rem}
  .largeurpage .badge-tosa{float:none;display:block;margin:0 0 12px}
  .largeurpage .clics > div{flex:1 1 45%}
}

/* Pleine largeur : encadrés bleus, bandeaux et boutons */
.largeurpage .cadrebleu,
.largeurpage h3.horaires.fdbleu,
.largeurpage .clics{
  width:100% !important;
  max-width:none !important;
  box-sizing:border-box;
  float:none !important;
  clear:both;
}
.largeurpage .clics{
  display:flex !important;
}
.largeurpage .clics > div{
  flex:1 1 0 !important;
  min-width:120px;
  width:auto !important;
}
@media (max-width:640px){
  .largeurpage .clics > div{flex:1 1 45% !important}
}

/* ==========================================================================
   BANDEAU DROIT (devis, CPF Infos, témoignages) - refonte 25/11/2026
   Ordinateur et tablette uniquement (>= 681px) : le mobile reste inchangé.
   CSS seul : aucune modification des pages ni du formulaire.
   ========================================================================== */
@media (min-width:681px){

  /* Colonne : formulaire en premier, puis CPF Infos, puis témoignages */
  .largeurpage .formulaireformation{
    display:inline-flex;
    flex-direction:column;
    gap:18px;
    vertical-align:top;
    font-size:15px;
  }
  .largeurpage .formulaireformation #ancreform{order:1}
  .largeurpage .formulaireformation h3.horaires.fdbleu{order:2}
  .largeurpage .formulaireformation #temoignages{order:3}

  /* ---- Carte "Demande de devis" ---- */
  .largeurpage .formulaireformation #ancreform{
    background:#eef4fb;
    border:1px solid #d6e2f0;
    border-top:4px solid #f47700;
    border-radius:12px;
    padding:0 22px 18px;
    box-shadow:0 10px 30px rgba(11,61,122,.08);
    overflow:hidden;
    scroll-margin-top:16px;
  }
  .largeurpage .formulaireformation #ancreform h4{
    position:relative;
    margin:0 -22px 16px;
    padding:18px 16px 18px 66px;
    background:linear-gradient(135deg,#0b3d7a 0%,#1f4e79 100%);
    color:#fff;
    font-size:16px;
    line-height:1.45;
    font-weight:700;
    text-align:left;
  }
  .largeurpage .formulaireformation #ancreform h4::before{
    content:"";
    position:absolute;
    left:18px;
    top:50%;
    width:36px;
    height:36px;
    margin-top:-18px;
    border-radius:50%;
    background:rgba(255,255,255,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") no-repeat center/17px 17px;
  }
  .largeurpage .formulaireformation #ancreform > p{
    margin:0 0 14px;
    font-size:13.5px;
    line-height:1.5;
    color:#5b6b7e;
    text-align:left;
  }

  /* Champs */
  .largeurpage .formulaireformation #ancreform fieldset:not(.hp-fieldset){
    display:flex;
    flex-wrap:wrap;
    column-gap:8px;
    margin:0;
  }
  .largeurpage .formulaireformation #ancreform fieldset:not(.hp-fieldset) > *{
    flex:1 1 100%;
    min-width:0;
  }
  .largeurpage .formulaireformation #ancreform fieldset > label:not(.cache){
    margin:2px 0 5px;
    font-size:12.5px;
    font-weight:700;
    color:#1f4e79;
    text-align:left;
  }
  .largeurpage .formulaireformation #ancreform .form-control{
    box-sizing:border-box;
    width:100%;
    height:42px;
    margin:0 0 9px;
    padding:0 12px;
    border:1px solid #cfd9e5;
    border-radius:8px;
    background-color:#fff;
    color:#1e293b;
    font-family:inherit;
    font-size:15px;
    transition:border-color .15s, box-shadow .15s;
  }
  .largeurpage .formulaireformation #ancreform .form-control::placeholder{color:#8a97a8}
  .largeurpage .formulaireformation #ancreform .form-control:focus{
    outline:none;
    border-color:#1f4e79;
    box-shadow:0 0 0 3px rgba(31,78,121,.15);
  }
  .largeurpage .formulaireformation #ancreform select.form-control{
    -webkit-appearance:none;
    -moz-appearance:none;
    appearance:none;
    padding-right:34px;
    cursor:pointer;
    background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f4e79' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center/12px 8px;
  }
  .largeurpage .formulaireformation #ancreform textarea.form-control{
    height:auto;
    min-height:90px;
    padding:10px 12px;
    line-height:1.45;
    resize:vertical;
  }
  /* Code postal + ville sur la même ligne */
  .largeurpage .formulaireformation #ancreform input[name="codepostal"]{flex:0 0 38%;margin-right:0}
  .largeurpage .formulaireformation #ancreform input[name="ville"]{flex:1 1 0}
  .largeurpage .formulaireformation #ancreform input[name="nom"]{margin-right:0}

  .largeurpage .formulaireformation #ancreform .infoplus{
    margin:2px 0 0;
    font-size:12px;
    font-style:normal;
    color:#7a8797;
  }
  /* Bouton d'envoi */
  .largeurpage .formulaireformation #ancreform input[type="submit"]{
    width:100%;
    height:48px;
    margin:14px 0 14px;
    border:0;
    border-radius:8px;
    background:#f47700;
    color:#fff;
    font-family:inherit;
    font-size:16px;
    font-weight:700;
    letter-spacing:.2px;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(244,119,0,.28);
    transition:background .15s, box-shadow .15s;
  }
  .largeurpage .formulaireformation #ancreform input[type="submit"]:hover{
    background:#d96600;
    box-shadow:0 6px 16px rgba(217,102,0,.32);
  }
  .largeurpage .formulaireformation #ancreform .infoplusbigger{
    margin:0 0 6px;
    font-size:11px;
    font-style:normal;
    line-height:1.45;
    color:#8592a3;
  }

  /* ---- Lien "CPF Infos" ---- */
  .largeurpage .formulaireformation h3.horaires.fdbleu{
    margin:0;
    padding:0;
    background:#eef4fb;
    border:1px solid #d3e1f1;
    border-radius:10px;
    text-align:left;
    transition:background .15s, border-color .15s;
  }
  .largeurpage .formulaireformation h3.horaires.fdbleu:hover{
    background:#e3edf9;
    border-color:#b9cfe8;
  }
  .largeurpage .formulaireformation h3.horaires.fdbleu a{
    position:relative;
    display:block;
    padding:14px 40px 14px 60px;
    color:#0b3d7a;
    font-size:15px;
    font-weight:700;
    text-decoration:none;
  }
  .largeurpage .formulaireformation h3.horaires.fdbleu a:hover{text-decoration:none}
  .largeurpage .formulaireformation h3.horaires.fdbleu a::before{
    content:"\20AC";
    position:absolute;
    left:16px;
    top:50%;
    width:30px;
    height:30px;
    margin-top:-15px;
    border-radius:50%;
    background:#1f4e79;
    color:#fff;
    font-size:15px;
    line-height:30px;
    text-align:center;
  }
  .largeurpage .formulaireformation h3.horaires.fdbleu a::after{
    content:"\203A";
    position:absolute;
    right:16px;
    top:50%;
    margin-top:-13px;
    color:#f47700;
    font-size:24px;
    line-height:24px;
    transition:transform .15s;
  }
  .largeurpage .formulaireformation h3.horaires.fdbleu a:hover::after{transform:translateX(3px)}

  /* ---- Témoignages ---- */
  .largeurpage .formulaireformation #temoignages{
    margin:0;
    padding:18px 18px 6px;
    background:#fff;
    border:1px solid #dde5ef;
    border-radius:12px;
    box-shadow:0 6px 20px rgba(11,61,122,.05);
  }
  .largeurpage .formulaireformation #temoignages h4{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0 0 14px;
    font-size:17px;
    line-height:1.3;
    color:#0b3d7a;
    text-align:left;
  }
  .largeurpage .formulaireformation #temoignages h4::before{
    content:"";
    width:4px;
    height:18px;
    border-radius:2px;
    background:#f47700;
  }
  /* citation d'abord, auteur ensuite */
  .largeurpage .formulaireformation .temoignage{
    display:flex;
    flex-direction:column-reverse;
    margin:0 0 12px;
    padding:14px 16px;
    background:#f6f9fd;
    border:0;
    border-radius:10px;
  }
  .largeurpage .formulaireformation .temoignage .citation{
    margin:0 0 8px;
    font-size:14px;
    font-style:normal;
    line-height:1.55;
    color:#334155;
    text-align:left;
  }
  .largeurpage .formulaireformation .temoignage .citation::before,
  .largeurpage .formulaireformation .temoignage .citation::after{
    position:static;
    font-size:inherit;
    line-height:inherit;
    color:#f47700;
    font-weight:700;
  }
  .largeurpage .formulaireformation .temoignage .citation::before{content:"\00AB\00A0"}
  .largeurpage .formulaireformation .temoignage .citation::after{content:"\00A0\00BB"}
  .largeurpage .formulaireformation .temoignage .temoin{
    margin:0;
    font-size:12.5px;
    font-weight:700;
    color:#1f4e79;
    text-align:left;
  }
  .largeurpage .formulaireformation .temoignage .temoin::before{
    content:"\2014\00A0";
    color:#94a3b8;
  }
}
