/*
Theme Name: Jaures Permis
Theme URI: https://jaures-permis.fr
Author: Jaures Permis
Description: Theme sur-mesure pour l'auto-ecole Jaures Permis (Montfermeil)
Version: 1.0
*/

:root{
    --navy: #0B1B33;
    --navy-deep: #071224;
    --navy-soft: #142a4d;
    --white: #FFFFFF;
    --offwhite: #F6F4F1;
    --anthracite: #2B2E33;
    --orange: #FF914D;
    --orange-dark: #E87A34;
    --orange-tint: #FFE4CF;
    --line: rgba(11,27,51,0.10);
    --shadow: 0 10px 30px rgba(7,18,36,0.08);
    --radius: 14px;
    --font-display: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    font-family: var(--font-body);
    color: var(--anthracite);
    background: var(--white);
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
  }
  img,svg{display:block; max-width:100%;}
  a{color:inherit; text-decoration:none;}
  ul{list-style:none;}
  .wrap{max-width:1180px; margin:0 auto; padding:0 32px;}
  h1,h2,h3{font-family:var(--font-display); color:var(--navy); letter-spacing:-0.01em;}
  .eyebrow{
    font-family:var(--font-body); font-weight:700; font-size:13px;
    letter-spacing:0.08em; text-transform:uppercase; color:var(--orange-dark);
    display:flex; align-items:center; gap:8px; margin-bottom:14px;
  }
  .eyebrow::before{content:""; width:22px; height:2px; background:var(--orange); display:inline-block; border-radius:2px;}
  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:10px;
    padding:15px 26px; border-radius:999px; font-family:var(--font-body); font-weight:600;
    font-size:15.5px; cursor:pointer; border:1.5px solid transparent; transition:all .18s ease;
    white-space:nowrap;
  }
  .btn-primary{background:var(--orange); color:var(--navy-deep);}
  .btn-primary:hover{background:var(--orange-dark); transform:translateY(-1px);}
  .btn-outline{border-color:rgba(255,255,255,0.55); color:var(--white);}
  .btn-outline:hover{background:rgba(255,255,255,0.12);}
  .btn-outline-navy{border-color:rgba(11,27,51,0.25); color:var(--navy);}
  .btn-outline-navy:hover{background:rgba(11,27,51,0.06);}
  section{padding:96px 0;}
  .section-head{max-width:640px; margin-bottom:48px;}
  .section-head p.lead{font-size:17px; color:#54596b; margin-top:14px;}
  .center{text-align:center; margin-left:auto; margin-right:auto;}

  /* ---------- HEADER ---------- */
  header{
    position:sticky; top:0; z-index:100; background:rgba(255,255,255,0.92);
    backdrop-filter:blur(10px); border-bottom:1px solid var(--line);
  }
  .header-inner{display:flex; align-items:center; justify-content:space-between; padding:16px 32px; max-width:1180px; margin:0 auto;}
  .logo{display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:800; font-size:19px; color:var(--navy);}
  .logo svg{width:34px; height:34px;}
  nav.main-nav{display:flex; gap:34px;}
  nav.main-nav a{font-weight:600; font-size:14.5px; color:var(--navy); position:relative; padding:6px 0;}
  nav.main-nav a::after{content:""; position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--orange); transition:width .2s ease;}
  nav.main-nav a:hover::after{width:100%;}
  .header-actions{display:flex; align-items:center; gap:14px;}
  .phone-pill{
    display:flex; align-items:center; gap:9px; background:var(--navy); color:var(--white);
    padding:11px 20px; border-radius:999px; font-weight:700; font-size:14.5px;
  }
  .phone-pill svg{width:16px; height:16px; fill:var(--orange);}
  .phone-pill:hover{background:var(--navy-soft);}
  .burger{display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none; padding:6px;}
  .burger span{width:24px; height:2px; background:var(--navy); border-radius:2px;}
  .mobile-nav{display:none; flex-direction:column; background:var(--white); border-top:1px solid var(--line); padding:10px 32px 22px;}
  .mobile-nav a{display:block; padding:13px 0; font-weight:600; font-size:16px; color:var(--navy); border-bottom:1px solid var(--line);}
  .mobile-nav a:last-child{border-bottom:none;}

  /* ---------- HERO ---------- */
  .hero{
    position:relative; background:linear-gradient(160deg,var(--navy-deep) 0%, var(--navy) 55%, var(--navy-soft) 100%);
    color:var(--white); overflow:hidden; padding:0;
  }
  .hero-grid{
    max-width:1180px; margin:0 auto; padding:88px 32px 0; display:grid;
    grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center;
  }
  .hero-text h1{font-size:52px; line-height:1.06; font-weight:800; color:var(--white); max-width:520px;}
  .hero-text h1 .accent{color:var(--orange);}
  .hero-text p.sub{font-size:18px; color:rgba(255,255,255,0.78); margin-top:22px; max-width:440px;}
  .hero-cta{display:flex; gap:14px; margin-top:34px; flex-wrap:wrap;}
  .hero-flightpath{position:absolute; opacity:0.35; pointer-events:none;}
  .hero-photo{
    position:relative; border-radius:20px; overflow:hidden; aspect-ratio:4/5;
    background: var(--navy);
    border:1px solid rgba(255,255,255,0.12);
    box-shadow:0 30px 60px rgba(0,0,0,0.35);
  }
  .hero-photo img{width:100%; height:100%; object-fit:cover; object-position:center 30%;}
  .placeholder-tag{
    border:1.5px dashed rgba(255,255,255,0.4); border-radius:12px; padding:22px 26px;
    text-align:center; color:rgba(255,255,255,0.75); font-size:13.5px; max-width:230px;
  }
  .placeholder-tag strong{display:block; color:var(--white); font-size:14.5px; margin-bottom:4px; font-family:var(--font-display);}
  .hero-bottom-space{height:70px;}

  /* ---------- TRUST BAR ---------- */
  .trust{background:var(--offwhite); padding:52px 0;}
  .trust-grid{display:grid; grid-template-columns:repeat(5,1fr); gap:0;}
  .trust-item{display:flex; flex-direction:column; align-items:flex-start; gap:10px; padding:0 22px; border-left:1px solid var(--line);}
  .trust-item:first-child{border-left:none; padding-left:0;}
  .trust-item svg{width:26px; height:26px; stroke:var(--orange);}
  .trust-item span{font-size:14px; font-weight:600; color:var(--navy); line-height:1.35;}

  /* ---------- GOAL PICKER ---------- */
  .goals{background:var(--white);}
  .goal-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
  .goal-card{
    border:1px solid var(--line); border-radius:var(--radius); padding:30px 24px;
    display:flex; flex-direction:column; gap:16px; transition:all .2s ease; cursor:pointer;
  }
  .goal-card:hover{border-color:var(--orange); box-shadow:var(--shadow); transform:translateY(-3px);}
  .goal-icon{
    width:46px; height:46px; border-radius:12px; background:var(--orange-tint);
    display:flex; align-items:center; justify-content:center;
  }
  .goal-icon svg{width:22px; height:22px; stroke:var(--orange-dark);}
  .goal-card h3{font-size:17px; font-weight:700;}
  .goal-card p{font-size:14px; color:#5b6072;}
  .goal-card .goal-link{font-size:13.5px; font-weight:700; color:var(--orange-dark); display:flex; align-items:center; gap:6px; margin-top:auto;}

  /* ---------- PARCOURS ---------- */
  .parcours{background:var(--offwhite); position:relative;}
  .steps{position:relative; display:grid; grid-template-columns:repeat(4,1fr); gap:28px; margin-top:26px;}
  .steps svg.flight-line{position:absolute; top:34px; left:0; width:100%; height:60px; z-index:0;}
  .step{position:relative; z-index:1; background:var(--white); border-radius:var(--radius); padding:28px 22px; border:1px solid var(--line);}
  .step-num{
    width:38px; height:38px; border-radius:50%; background:var(--navy); color:var(--white);
    display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:800; font-size:15px;
    margin-bottom:16px;
  }
  .step h3{font-size:16px; margin-bottom:8px;}
  .step p{font-size:14px; color:#5b6072;}

  /* ---------- AVIS ---------- */
  .avis{background:var(--navy); color:var(--white);}
  .avis-top{display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:24px; margin-bottom:40px;}
  .avis-score{display:flex; align-items:center; gap:18px;}
  .score-box{
    border:1.5px dashed rgba(255,255,255,0.35); border-radius:14px; padding:18px 26px; text-align:center; min-width:150px;
  }
  .score-box .num{font-family:var(--font-display); font-size:34px; font-weight:800; color:var(--orange);}
  .score-box .label{font-size:12px; color:rgba(255,255,255,0.6); margin-top:4px;}
  .stars{display:flex; gap:3px; margin-top:6px; justify-content:center;}
  .stars svg{width:14px; height:14px; fill:var(--orange);}
  .avis-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
  .avis-card{
    background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.12); border-radius:var(--radius);
    padding:26px; display:flex; flex-direction:column; gap:14px;
  }
  .avis-card .stars svg{fill:var(--orange);}
  .avis-card p{font-size:14px; color:rgba(255,255,255,0.75); font-style:italic;}
  .avis-card .who{font-size:13px; font-weight:700; color:var(--white); margin-top:auto;}
  .avis-cta{margin-top:38px; display:flex; justify-content:center;}

  /* ---------- EQUIPE ---------- */
  .equipe-grid{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;}
  .equipe-photo{
    aspect-ratio:16/11; border-radius:20px; position:relative; overflow:hidden;
    background:linear-gradient(135deg,#d8d3c8, #c3bdae);
    display:flex; align-items:center; justify-content:center; border:1px solid rgba(11,27,51,0.16);
  }
  .equipe-photo .placeholder-tag{color:#7a7f92; border-color:rgba(11,27,51,0.22);}
  .equipe-photo .placeholder-tag strong{color:var(--navy);}
  .equipe-text p.lead{font-size:18px; color:var(--navy); font-family:var(--font-display); font-weight:700; margin-bottom:16px;}
  .equipe-text p{color:#5b6072; font-size:15.5px;}

  /* ---------- STAGES POINTS ---------- */
  .stages{background:var(--navy);}
  .stages .eyebrow{color:var(--orange);}
  .stages-inner{display:grid; grid-template-columns:1.3fr 1fr; gap:48px; align-items:center;}
  .stages-inner h2{font-size:30px; color:var(--white);}
  .stages-inner p.lead{font-size:16px; color:rgba(255,255,255,0.75); margin-top:14px; max-width:520px;}
  .stages-note{font-size:12.5px; color:rgba(255,255,255,0.5); margin-top:16px;}
  .stages-panel{
    background:var(--white); border-radius:var(--radius); padding:34px; color:var(--navy);
    border-top:4px solid var(--orange);
  }
  .stages-panel h3{color:var(--navy); font-size:18px; margin-bottom:12px;}
  .stages-panel p{font-size:14px; color:#5b6072; margin-bottom:22px;}

  /* ---------- CONTACT ---------- */
  .contact{background:var(--white);}
  .contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:stretch;}
  .contact-card{background:var(--offwhite); border:1px solid var(--line); border-radius:var(--radius); padding:40px; display:flex; flex-direction:column; gap:22px;}
  .contact-row{display:flex; gap:14px; align-items:flex-start;}
  .contact-row svg{width:20px; height:20px; stroke:var(--orange-dark); flex-shrink:0; margin-top:2px;}
  .contact-row div strong{display:block; color:var(--navy); font-size:15px; margin-bottom:2px;}
  .contact-row div span{font-size:14.5px; color:#5b6072;}
  .contact-actions{display:flex; gap:12px; margin-top:auto; flex-wrap:wrap;}
  .map-block{
    border-radius:var(--radius); overflow:hidden; background:linear-gradient(160deg,#dfe3e8,#c9cfd6);
    display:flex; align-items:center; justify-content:center; min-height:340px; border:1px solid var(--line); position:relative;
  }
  .map-pin{
    width:44px; height:44px; border-radius:50%; background:var(--orange); display:flex; align-items:center; justify-content:center;
    box-shadow:0 8px 20px rgba(255,145,77,0.5);
  }
  .map-pin svg{width:20px; height:20px; fill:var(--white);}
  .map-block .placeholder-tag{position:absolute; bottom:18px; left:18px; right:18px; color:#4c5464; border-color:rgba(11,27,51,0.25); background:rgba(255,255,255,0.7); max-width:none;}

  /* ---------- FAQ ---------- */
  .faq-list{max-width:760px; margin:0 auto;}
  .faq-item{border-bottom:1px solid var(--line);}
  .faq-q{
    width:100%; text-align:left; background:none; border:none; padding:22px 4px; cursor:pointer;
    display:flex; justify-content:space-between; align-items:center; gap:16px;
    font-family:var(--font-display); font-weight:700; font-size:16.5px; color:var(--navy);
  }
  .faq-q svg{width:18px; height:18px; stroke:var(--orange-dark); flex-shrink:0; transition:transform .2s ease;}
  .faq-item.open .faq-q svg{transform:rotate(45deg);}
  .faq-a{max-height:0; overflow:hidden; transition:max-height .25s ease;}
  .faq-a p{padding:0 4px 22px; font-size:14.5px; color:#5b6072; max-width:640px;}

  /* ---------- FOOTER ---------- */
  footer{background:var(--navy-deep); color:rgba(255,255,255,0.7); padding:64px 0 30px;}
  .footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:48px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,0.1);}
  .footer-logo{display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:800; font-size:18px; color:var(--white); margin-bottom:14px;}
  .footer-logo svg{width:28px; height:28px;}
  footer .tagline{font-size:14px; max-width:280px; line-height:1.6;}
  footer h4{color:var(--white); font-size:13px; text-transform:uppercase; letter-spacing:0.06em; margin-bottom:16px;}
  footer ul li{margin-bottom:10px; font-size:14px;}
  footer ul li a:hover{color:var(--orange);}
  .footer-bottom{display:flex; justify-content:space-between; padding-top:22px; font-size:12.5px; flex-wrap:wrap; gap:10px;}

  /* ---------- PAGE HERO (secondary pages) ---------- */
  .page-hero{
    background:linear-gradient(160deg,var(--navy-deep) 0%, var(--navy) 60%, var(--navy-soft) 100%);
    color:var(--white); padding:56px 0 48px;
  }
  .breadcrumb{display:flex; align-items:center; gap:8px; font-size:13px; color:rgba(255,255,255,0.55); margin-bottom:18px;}
  .breadcrumb a{color:rgba(255,255,255,0.75);}
  .breadcrumb a:hover{color:var(--orange);}
  .page-hero h1{color:var(--white); font-size:38px;}
  .page-hero p.sub{color:rgba(255,255,255,0.75); font-size:16.5px; margin-top:14px; max-width:560px;}

  /* ---------- FORMATION DETAIL CARDS ---------- */
  .formation-detail{
    display:grid; grid-template-columns:64px 1fr; gap:22px; padding:32px 0; border-bottom:1px solid var(--line);
  }
  .formation-detail:last-child{border-bottom:none;}
  .formation-icon{
    width:56px; height:56px; border-radius:14px; background:var(--orange-tint);
    display:flex; align-items:center; justify-content:center;
  }
  .formation-icon svg{width:26px; height:26px; stroke:var(--orange-dark);}
  .formation-detail h3{font-size:19px; margin-bottom:8px;}
  .formation-detail p{font-size:15px; color:#5b6072; max-width:640px;}
  .formation-detail .tags{display:flex; gap:8px; margin-top:14px; flex-wrap:wrap;}
  .formation-detail .tag{
    font-size:12px; font-weight:700; color:var(--navy); background:var(--offwhite);
    padding:6px 12px; border-radius:999px; border:1px solid var(--line);
  }

  /* ---------- AVIS PAGE GRID ---------- */
  .avis-page-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
  .avis-page-grid .avis-card{background:var(--offwhite); border:1px solid var(--line);}
  .avis-page-grid .avis-card p{color:#3d4257;}
  .avis-page-grid .avis-card .who{color:var(--navy);}
  .avis-page-grid .avis-card .stars svg{fill:var(--orange-dark);}

  /* ---------- CONTACT PAGE EXTRA ---------- */
  .hours-table{width:100%; border-collapse:collapse; margin-top:10px;}
  .hours-table td{padding:8px 0; font-size:14.5px; color:#5b6072; border-bottom:1px solid var(--line);}
  .hours-table td:first-child{font-weight:600; color:var(--navy); width:140px;}
  .hours-table tr:last-child td{border-bottom:none;}

  /* ---------- RESPONSIVE ---------- */
  @media (max-width:980px){
    nav.main-nav{display:none;}
    .burger{display:flex;}
    .mobile-nav.open{display:flex;}
    .hero-grid{grid-template-columns:1fr; padding-top:52px;}
    .hero-text h1{font-size:36px; max-width:none;}
    .hero-text p.sub{max-width:none;}
    .hero-photo{aspect-ratio:16/11; margin-top:8px;}
    .trust-grid{grid-template-columns:repeat(2,1fr); gap:26px;}
    .trust-item{border-left:none; padding-left:0;}
    .goal-grid{grid-template-columns:1fr 1fr; gap:16px;}
    .steps{grid-template-columns:1fr; gap:16px;}
    .steps svg.flight-line{display:none;}
    .avis-grid{grid-template-columns:1fr;}
    .equipe-grid{grid-template-columns:1fr; gap:32px;}
    .stages-inner{grid-template-columns:1fr; gap:30px;}
    .contact-grid{grid-template-columns:1fr; gap:28px;}
    section{padding:64px 0;}
    .phone-pill span.full{display:none;}
    .phone-pill{padding:11px; width:42px; height:42px;}
    .avis-page-grid{grid-template-columns:1fr;}
    .formation-detail{grid-template-columns:1fr; gap:14px;}
    .page-hero h1{font-size:30px;}
  }
  @media (max-width:560px){
    .wrap{padding:0 20px;}
    .header-inner{padding:14px 20px;}
    .hero-grid{padding:40px 20px 0;}
    .hero-text h1{font-size:30px;}
    .hero-cta{flex-direction:column; align-items:stretch;}
    .hero-cta .btn{width:100%;}
    .goal-grid{grid-template-columns:1fr;}
    section{padding:52px 0;}
    .stages-panel{padding:26px;}
    .contact-card{padding:26px;}
    .avis-top{flex-direction:column; align-items:flex-start;}
  }
