/* =========================================================
   CFICAM — feuille de style
   Palette : bleu marine (confiance, électricité) + ambre
   électrique (énergie, jovialité) + rouge signature du logo.
   ========================================================= */

   :root {
    --navy: #0B2545;
    --navy-light: #16386E;
    --amber: #F5A623;
    --amber-dark: #D98A0C;
    --red: #E63946;
    --bg: #FAF8F4;
    --white: #FFFFFF;
    --text: #1E2530;
    --text-light: #5B6472;
  
    --radius: 8px;
    --shadow-soft: 0 10px 30px rgba(11, 37, 69, 0.10);
    --shadow-card: 0 15px 35px rgba(11, 37, 69, 0.14);
    --ease: 0.3s ease;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
  }
  
  body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
  }
  
  h1, h2, h3 {
    font-family: 'Sora', sans-serif;
    color: var(--navy);
    line-height: 1.25;
  }
  
  p {
    color: var(--text-light);
    font-weight: 300;
  }
  
  a {
    color: inherit;
  }

  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  .menutoggle:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
  section {
    padding: 100px 8vw;
  }
  
  /* ---------- En-tête ---------- */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 22px 8vw;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: background var(--ease), padding var(--ease), box-shadow var(--ease);
  }
  
  header.sticky {
    background: var(--white);
    padding: 14px 8vw;
    box-shadow: 0 5px 20px rgba(11, 37, 69, 0.10);
  }
  
  .logo {
    color: var(--white);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.9em;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color var(--ease);
  }
  
  .logo span {
    color: var(--red);
  }
  
  header.sticky .logo {
    color: var(--navy);
  }
  
  .navbar {
    display: flex;
    align-items: center;
    position: relative;
  }
  
  .navbar li {
    list-style: none;
  }
  
  .navbar a {
    color: var(--white);
    text-decoration: none;
    margin-left: 28px;
    font-weight: 500;
    font-size: 0.95em;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color var(--ease), border-color var(--ease);
  }
  
  header.sticky .navbar a {
    color: var(--navy);
  }
  
  header .navbar li a:hover {
    color: var(--amber);
    border-bottom: 2px solid var(--amber);
  }
  
  .btn-commande {
    padding: 12px 24px;
    background: var(--amber);
    color: var(--navy) !important;
    border: none !important;
    border-radius: 30px;
    margin-left: 28px;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background var(--ease), transform var(--ease);
  }
  
  .btn-commande:hover {
    background: var(--amber-dark);
    transform: translateY(-2px);
  }
  
  /* Bouton hamburger (mobile), dessiné en CSS pur */
  .menutoggle {
    display: none;
    position: relative;
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    cursor: pointer;
    transition: background var(--ease);
  }
  
  .menutoggle::before,
  .menutoggle::after {
    content: '';
    position: absolute;
    left: 0;
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: transform var(--ease), top var(--ease);
  }
  
  .menutoggle::before { top: -9px; }
  .menutoggle::after  { top: 9px; }
  
  header.sticky .menutoggle,
  header.sticky .menutoggle::before,
  header.sticky .menutoggle::after {
    background: var(--navy);
  }
  
  .menutoggle.active {
    background: transparent;
  }
  
  .menutoggle.active::before {
    top: 0;
    transform: rotate(45deg);
  }
  
  .menutoggle.active::after {
    top: 0;
    transform: rotate(-45deg);
  }
  
  /* ---------- Bannière (hero) ---------- */
  .banniere {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image:
      linear-gradient(180deg, rgba(11, 37, 69, 0.65), rgba(11, 37, 69, 0.85)),
      url(./photo/CFI/téléchargement\ \(1\).jpeg);
    background-size: cover;
    background-position: center;
  }
  
  .banniere .contenu {
    max-width: 700px;
    text-align: center;
    padding: 0 20px;
  }
  
  .banniere .contenu h2 {
    color: var(--white);
    font-size: 2.75em;
    font-weight: 700;
    text-transform: none;
  }
  
  .contenu p:nth-child(2) {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05em;
    font-weight: 300;
    margin-top: 20px;
  }
  
  .btn1,
  .btn2 {
    font-size: 0.95em;
    font-weight: 600;
    padding: 14px 28px;
    display: inline-block;
    margin-top: 24px;
    margin-left: 8px;
    border-radius: 30px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: transform var(--ease), background var(--ease), box-shadow var(--ease);
  }
  
  .btn1 {
    color: var(--navy);
    background: var(--amber);
  }
  
  .btn1:hover {
    background: var(--amber-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(245, 166, 35, 0.35);
  }
  
  .btn2 {
    color: var(--white);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
  }
  
  .btn2:hover {
    border-color: var(--white);
    transform: translateY(-3px);
  }
  
  /* ---------- Titres de section ---------- */
  .titre-text {
    color: var(--navy);
    font-size: 2em;
    font-weight: 700;
    text-transform: none;
    margin-bottom: 12px;
  }
  
  .titre-text span {
    color: var(--red);
  }
  
  .titre {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    margin-bottom: 50px;
  }
  
  .titre p,
  .titre .text p {
    max-width: 640px;
    margin: 0 auto;
  }
  
  .blanc .titre-text,
  .blanc .titre-text span,
  .blanc p {
    color: var(--white);
  }
  
  /* ---------- À propos ---------- */
  .apropos {
    background: var(--white);
  }
  
  .row {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
  }
  
  .row .colse {
    position: relative;
    width: 50%;
  }
  
  .row .colse h2 {
    margin-bottom: 24px;
  }
  
  .note {
    display: none;
  }
  
  .apropos p {
    color: var(--text-light);
    margin-bottom: 16px;
  }
  
  .apropos b {
    color: var(--navy);
  }
  
  .apropos ul {
    list-style: none;
    margin: 20px 0;
  }
  
  .apropos ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 14px;
    color: var(--text-light);
  }
  
  .apropos ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    color: var(--white);
    background: var(--amber);
    border-radius: 50%;
    font-size: 0.75em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .row .colse .img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 6px solid var(--white);
    outline: 2px solid #EDEBE6;
  }
  
  .row .colse img {
    height: auto;
    width: 100%;
    object-fit: cover;
  }
  
  /* ---------- Grille de cartes (marchandise / experts) ---------- */
  .marchandise {
    background: var(--bg);
  }
  
  .marchandise > .colse {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    color: var(--text-light);
  }
  
  .marchandise .contenu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
  }
  
  .marchandise .contenu > h2 {
    width: 100%;
    text-align: center;
    font-size: 1.4em;
    margin: 40px 0;
  }
  
  .marchandise .contenu .box {
    background: var(--white);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    transition: transform var(--ease), box-shadow var(--ease);
  }
  
  .marchandise .contenu .box:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(11, 37, 69, 0.18);
  }
  
  .marchandise .contenu .box .imbox {
    position: relative;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    max-height: 340px;
    overflow: hidden;
    background: var(--navy);
  }
  
  .marchandise .contenu .box .imbox img {
    flex: 1 1 90px;
    height: 110px;
    object-fit: cover;
    transition: opacity var(--ease);
  }
  
  .marchandise .contenu .box .imbox img:hover {
    opacity: 0.85;
  }
  
  .marchandise .contenu .box .imbox .titre {
    width: 100%;
    margin: 0 !important;
    padding: 14px;
    background: var(--navy-light);
  }
  
  .marchandise .contenu .box .text {
    text-align: left;
    padding: 24px 28px 28px;
    color: var(--text-light);
  }
  
  .marchandise .contenu .box .text h3 {
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 12px;
    padding-left: 14px;
    border-left: 4px solid var(--amber);
  }
  
  .marchandise .contenu .box .text br {
    content: '';
    display: block;
    margin-top: 6px;
  }
  
  /* "Voir plus" en style bouton discret */
  .titre .btn1 {
    background: var(--amber);
    color: var(--navy);
    margin: 0;
    font-size: 0.8em;
    padding: 10px 22px;
  }
  
  /* ---------- Nos agences ---------- */
  .agence {
    position: relative;
    background-image:
      linear-gradient(180deg, rgba(11, 37, 69, 0.88), rgba(11, 37, 69, 0.92)),
      url(./photo/images\ \(2\).jpeg);
    background-size: cover;
    background-position: center;
    width: 100%;
  }
  
  .agence .titre-text,
  .agence .titre-text span {
    color: var(--white);
  }
  
  .agence .text {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85);
  }
  
  .agence .text p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
  }
  
  .agence .text b {
    color: var(--amber);
    font-weight: 600;
  }
  
  /* ---------- Nos experts ---------- */
  .Expert {
    background: var(--white);
  }
  
  .Expert .titre p {
    max-width: 720px;
  }
  
  .Expert .contenu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 30px;
  }
  
  .Expert .contenu .box {
    width: 170px;
    text-align: center;
  }
  
  .Expert .contenu .box .imbox {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--amber);
    box-shadow: var(--shadow-soft);
  }
  
  .Expert .contenu .box .imbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .Expert .contenu .box .text h3 {
    font-size: 1em;
    font-weight: 600;
    color: var(--navy);
  }

  .Expert .contenu .box .text p {
    font-size: 0.85em;
    color: var(--text-light);
    margin-top: 4px;
    line-height: 1.4;
  }
  
  /* ---------- Témoignages ---------- */
  .temoignage {
    position: relative;
    background: var(--bg);
  }
  
  .temoignage .titre p {
    max-width: 640px;
  }
  
  .temoignage .contenu {
    display: flex;
    margin-top: 40px;
    width: 100%;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 24px;
  }
  
  .temoignage .contenu .box {
    width: 240px;
    padding: 32px 24px 28px;
    margin: 0;
    background: var(--white);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
  }

  .temoignage .contenu .box .quote {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: rgba(230, 162, 60, 0.14);
    color: var(--amber);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1;
  }

  .temoignage .contenu .box .text {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    font-size: 0.92em;
  }
  
  .temoignage .contenu .box .text h3 {
    color: var(--red);
    margin-top: 16px;
    font-size: 1em;
    font-weight: 600;
    font-style: normal;
  }
  
  /* ---------- Formulaire de témoignage ---------- */
  .temoignageform {
    padding: 40px 40px 44px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 520px;
    margin: 48px auto 0;
    text-align: center;
  }

  .temoignageform h3 {
    color: var(--navy);
    font-size: 1.3em;
    margin-bottom: 8px;
  }

  .temoignageform > p {
    color: var(--text-light);
    font-size: 0.95em;
    margin-bottom: 24px;
  }

  .temoignageform .inputboite {
    position: relative;
    width: 100%;
    margin-bottom: 18px;
    text-align: left;
  }

  .temoignageform .inputboite input,
  .temoignageform .inputboite textarea {
    width: 100%;
    border: 1px solid #DADDE2;
    border-radius: 6px;
    padding: 12px 14px;
    color: var(--text);
    outline: none;
    font-size: 15px;
    font-weight: 300;
    font-family: 'Poppins', sans-serif;
    resize: none;
    transition: border-color var(--ease);
  }

  .temoignageform .inputboite textarea {
    min-height: 110px;
  }

  .temoignageform .inputboite input:focus,
  .temoignageform .inputboite textarea:focus {
    border-color: var(--amber);
  }

  .temoignageform .btn-envoyer {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--navy);
    background: var(--amber);
    display: inline-block;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 30px;
    padding: 14px 28px;
    transition: background var(--ease), transform var(--ease);
    width: auto;
  }

  .temoignageform .btn-envoyer:hover {
    background: var(--amber-dark);
    transform: translateY(-2px);
  }

  .temoignageform .btn-envoyer:active {
    transform: translateY(0);
  }

  .temoignageform .inputboite input:invalid:focus,
  .temoignageform .inputboite textarea:invalid:focus {
    border-color: var(--red);
  }

  /* ---------- Contact ---------- */
  .contact {
    position: relative;
    background-image:
      linear-gradient(180deg, rgba(11, 37, 69, 0.82), rgba(11, 37, 69, 0.88)),
      url(./photo/CFI/images.jpeg);
    background-size: cover;
    background-position: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .contact .titre-text,
  .contact .titre-text span {
    color: var(--white);
  }
  
  .contact .titre-text span {
    color: var(--amber);
  }
  
  .contactform {
    padding: 50px 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
  }
  
  .contactform h3 {
    color: var(--navy);
    font-size: 1.3em;
    margin-bottom: 24px;
  }
  
  .contactform .inputboite {
    position: relative;
    width: 100%;
    margin-bottom: 18px;
  }
  
  .contactform .inputboite input,
  .contactform .inputboite textarea {
    width: 100%;
    border: 1px solid #DADDE2;
    border-radius: 6px;
    padding: 12px 14px;
    color: var(--text);
    outline: none;
    font-size: 15px;
    font-weight: 300;
    resize: none;
    transition: border-color var(--ease);
  }
  
  .contactform .inputboite textarea {
    min-height: 120px;
  }
  
  .contactform .inputboite input:focus,
  .contactform .inputboite textarea:focus {
    border-color: var(--amber);
  }
  
  .contactform .btn-envoyer {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--navy);
    background: var(--amber);
    display: inline-block;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 30px;
    padding: 14px 28px;
    transition: background var(--ease), transform var(--ease);
    width: auto;
  }
  
  .contactform .btn-envoyer:hover {
    background: var(--amber-dark);
    transform: translateY(-2px);
  }

  .contactform .btn-envoyer:active {
    transform: translateY(0);
  }

  .form-status {
    margin-top: 14px;
    font-size: 0.9em;
    font-weight: 500;
    min-height: 1.2em;
  }

  .form-status.succes {
    color: #1E7B4D;
  }

  .form-status.erreur {
    color: var(--red);
  }

  .contactform .inputboite input:invalid:focus,
  .contactform .inputboite textarea:invalid:focus {
    border-color: var(--red);
  }
  
  /* ---------- Pied de page ---------- */
  .footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    padding: 50px 20px 30px;
  }
  
  .footer p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 16px;
  }
  
  .footer img {
    max-width: 260px;
    margin: 0 auto 24px;
    border-radius: 6px;
  }
  
  .footer .copy {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
  }
  
  /* ---------- Responsive ---------- */
  @media (max-width: 991px) {
    header,
    header.sticky {
      padding: 14px 5vw;
    }
  
    .navbar {
      display: none;
    }
  
    .navbar.active {
      width: 100%;
      height: 100vh;
      position: fixed;
      top: 0;
      left: 0;
      display: flex;
      justify-content: center;
      flex-direction: column;
      background: var(--white);
      align-items: center;
      gap: 8px;
    }
  
    .navbar.active a {
      color: var(--navy);
      font-size: 1.3em;
      margin-left: 0;
    }
  
    .navbar.active .btn-commande {
      margin-top: 20px;
      margin-left: 0;
    }
  
    .menutoggle {
      display: block;
    }
  
    section {
      padding: 70px 6vw;
    }
  
    .banniere .contenu h2 {
      font-size: 1.9em;
    }
  
    .row {
      flex-direction: column;
      gap: 30px;
    }
  
    .row .colse {
      width: 100%;
    }
  
    .marchandise .contenu .box .imbox img {
      height: 90px;
    }
  
    .contactform {
      margin: 0;
      padding: 36px 24px;
    }

    .temoignageform {
      margin: 40px 0 0;
      padding: 32px 22px 36px;
    }
  }