/* ============================================================
   FRESQUO — FEUILLE DE STYLE
   Site vitrine one-page pour Fresquo (projet oHIKA)
   Police : Baloo 2 (titres) + Nunito (texte courant)
   Couleurs : voir variables ci-dessous
   ============================================================ */

/* ---- Variables globales (couleurs, rayons, largeur max) ---- */
:root{
    --purple: #6148C8;
    --purple-dark: #3D2A9A;
    --orange: #F5A623;
    --cream: #FEFAF3;
    --connect-bg: #0D1035;
    --ink: #241A4D;
    --ink-soft: #5C5480;
    --line: rgba(61,42,154,0.14);
    --white: #ffffff;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 10px;
    --maxw: 1180px;
  }

  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    background:var(--cream);
    color:var(--ink);
    font-family:'Nunito', sans-serif;
    font-size:17px;
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,h4{
    font-family:'Baloo 2', sans-serif;
    font-weight:800;
    color:var(--purple-dark);
    margin:0 0 0.5em;
    line-height:1.12;
  }
  p{margin:0 0 1em;}
  a{color:inherit;}
  img,svg{display:block;max-width:100%;}
  .wrap{max-width:var(--maxw); margin:0 auto; padding:0 32px;}
  section{padding:96px 0;}
  .eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-family:'Nunito', sans-serif;
    font-weight:800;
    font-size:13px;
    letter-spacing:0.08em;
    text-transform:uppercase;
    color:var(--orange);
    margin-bottom:18px;
  }
  .eyebrow::before{
    content:"";
    width:22px; height:2px;
    background:var(--orange);
    display:inline-block;
  }
  .btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-family:'Nunito', sans-serif;
    font-weight:800;
    font-size:15px;
    padding:15px 28px;
    border-radius:100px;
    border:2px solid transparent;
    cursor:pointer;
    text-decoration:none;
    transition:transform .15s ease, box-shadow .15s ease;
  }
  .btn:hover{transform:translateY(-2px);}
  .btn-primary{background:var(--orange); color:#402B04;}
  .btn-primary:hover{box-shadow:0 10px 24px rgba(245,166,35,0.35);}
  .btn-ghost{background:transparent; border-color:var(--purple); color:var(--purple-dark);}
  .btn-ghost:hover{background:rgba(97,72,200,0.08);}
  .btn-light{background:var(--white); color:var(--purple-dark);}
  .btn-light:hover{box-shadow:0 10px 24px rgba(0,0,0,0.12);}


  /* ---------------------------------------------------------
     EN-TETE / NAVIGATION
  --------------------------------------------------------- */
  header{
    position:sticky; top:0; z-index:50;
    background:rgba(254,250,243,0.88);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
  }
  nav.wrap{
    display:flex; align-items:center; justify-content:space-between;
    padding-top:16px; padding-bottom:16px;
  }
  .logo{
    font-family:'Baloo 2', sans-serif;
    font-weight:800;
    font-size:24px;
    color:var(--purple-dark);
    display:flex; align-items:center; gap:10px;
    text-decoration:none;
  }
  .logo svg{width:30px;height:30px;}
  .nav-links{
    display:flex; align-items:center; gap:30px;
    list-style:none; margin:0; padding:0;
  }
  .nav-links a{
    text-decoration:none; font-weight:700; font-size:14.5px; color:var(--ink);
    opacity:0.8;
  }
  .nav-links a:hover{opacity:1; color:var(--purple-dark);}
  .nav-cta{display:flex; align-items:center; gap:18px;}
  .nav-toggle{display:none; background:none; border:none; cursor:pointer; color:var(--purple-dark);}


  /* ---------------------------------------------------------
     HERO (bloc d'intro + fresque interactive avec loupe)
  --------------------------------------------------------- */
  .hero{
    padding-top:64px;
    padding-bottom:0;
    text-align:center;
  }
  .hero h1{
    font-size:52px;
    max-width:900px;
    margin-left:auto; margin-right:auto;
  }
  .hero p.lead{
    max-width:620px; margin:0 auto 34px;
    font-size:18.5px; color:var(--ink-soft); font-weight:600;
  }
  .hero-ctas{display:flex; gap:16px; justify-content:center; margin-bottom:56px; flex-wrap:wrap;}

  .fresco-scroller{
    position:relative;
    margin:0 -32px;
    overflow:hidden;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    background:linear-gradient(180deg, #F1E9D8 0%, #EDE3CC 100%);
    cursor:none;
  }
  .fresco-scroller .hint{
    position:absolute; top:16px; left:50%; transform:translateX(-50%);
    background:var(--purple-dark); color:#fff; font-weight:800; font-size:12.5px;
    padding:8px 16px; border-radius:100px; z-index:5; letter-spacing:.02em;
    pointer-events:none;
  }
  .fresco-inner{position:relative; width:100%; height:340px; background:#DCCFA6;}
  .fresco-scene{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 30%;}
  .fresco-mascot{
    position:absolute; right:22px; bottom:16px; width:56px; height:auto; z-index:4;
    filter:drop-shadow(0 4px 10px rgba(0,0,0,0.25)); pointer-events:none;
  }
  .spot{
    position:absolute; inset:0;
    background:#2A2350;
    -webkit-mask-image: radial-gradient(circle 90px at var(--mx,50%) var(--my,50%), transparent 0%, transparent 55%, black 100%);
            mask-image: radial-gradient(circle 90px at var(--mx,50%) var(--my,50%), transparent 0%, transparent 55%, black 100%);
    opacity:0.94;
    pointer-events:none;
  }
  .lens{
    position:absolute; width:0; height:0; pointer-events:none; z-index:6;
  }
  .lens svg{width:64px; height:64px; transform:translate(-14px,-14px);}
  .find-tag{
    position:absolute;
    background:var(--orange); color:#402B04; font-weight:800; font-size:11.5px;
    padding:4px 10px; border-radius:100px; white-space:nowrap;
    opacity:0; transform:translateY(4px); transition:opacity .2s ease, transform .2s ease;
    pointer-events:none;
  }
  .fresco-inner:hover .find-tag.active{opacity:1; transform:translateY(0);}


  /* ---------------------------------------------------------
     CONCEPT
  --------------------------------------------------------- */
  .concept-grid{
    display:grid; grid-template-columns:1.1fr 1fr; gap:64px; align-items:center;
  }
  .concept-copy{position:relative;}
  .concept-copy p{color:var(--ink-soft); font-size:17px;}
  .concept-sticker{width:74px; height:auto; margin-top:8px; opacity:0.95;}
  .concept-figures{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
  .fig-card{
    background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md);
    padding:26px 20px; text-align:center;
  }
  .fig-card .num{font-family:'Baloo 2'; font-weight:800; font-size:26px; color:var(--orange); line-height:1.15;}
  .fig-card .label{font-weight:700; color:var(--purple-dark); font-size:14.5px; margin-top:4px;}


  /* ---------------------------------------------------------
     Motif reutilisable : entete de section (eyebrow + titre + texte)
  --------------------------------------------------------- */
  .section-head{max-width:660px; margin:0 auto 48px; text-align:center;}
  .section-head.left{margin-left:0; text-align:left;}
  .section-head p{color:var(--ink-soft); font-size:17.5px;}


  /* ---------------------------------------------------------
     DEROULEMENT (les 4 etapes)
  --------------------------------------------------------- */
  .steps{
    display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
    counter-reset:step;
  }
  .step{
    background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md);
    padding:28px 22px; position:relative;
  }
  .step .step-num{
    font-family:'Baloo 2'; font-weight:800; font-size:15px; color:var(--white);
    background:var(--purple); width:36px; height:36px; border-radius:50%;
    display:flex; align-items:center; justify-content:center; margin-bottom:16px;
  }
  .step h3{font-size:18px; margin-bottom:8px;}
  .step p{font-size:15px; color:var(--ink-soft); margin:0;}


  /* ---------------------------------------------------------
     THEMATIQUES (les 7 cartes + note bonus)
  --------------------------------------------------------- */
  .theme-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px;}
  .theme-card{
    background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md);
    padding:24px 20px; position:relative; overflow:hidden;
  }
  .theme-sticker{
    position:absolute; top:10px; right:8px; width:46px; height:auto; opacity:0.9;
    transform:rotate(6deg);
  }
  .theme-icon{
    width:44px; height:44px; border-radius:12px; background:rgba(97,72,200,0.1);
    display:flex; align-items:center; justify-content:center; margin-bottom:16px;
  }
  .theme-icon svg{width:22px; height:22px;}
  .theme-card h3{font-size:16px; margin-bottom:6px;}
  .theme-card p{font-size:14px; color:var(--ink-soft); margin:0;}
  .bonus-note{
    display:flex; align-items:center; gap:14px; justify-content:center;
    margin-top:36px; padding:14px 22px; border:1.5px dashed rgba(97,72,200,0.35);
    border-radius:100px; max-width:640px; margin-left:auto; margin-right:auto;
  }
  .bonus-note img{width:34px; height:auto; flex-shrink:0;}
  .bonus-note span{font-size:14px; color:var(--ink-soft); font-weight:600;}
  .bonus-note b{color:var(--purple-dark);}


  /* ---------------------------------------------------------
     VIDEO
  --------------------------------------------------------- */
  .video-frame{
    max-width:860px; margin:0 auto;
    background:var(--connect-bg); border-radius:var(--radius-lg);
    aspect-ratio:16/9; position:relative; overflow:hidden;
    display:flex; align-items:center; justify-content:center;
  }
  .video-frame .grid-lines{
    position:absolute; inset:0; opacity:.25;
    background-image:
      linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size:44px 44px;
  }
  .play-btn{
    position:relative; z-index:2;
    width:84px; height:84px; border-radius:50%;
    background:var(--orange); border:none; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    transition:transform .15s ease;
  }
  .play-btn:hover{transform:scale(1.06);}
  .play-btn svg{width:30px; height:30px; margin-left:4px;}
  .video-caption{
    position:absolute; bottom:22px; left:22px; right:22px; z-index:2;
    color:#fff; font-weight:700; font-size:14px; opacity:.85;
  }


  /* ---------------------------------------------------------
     MODES (Low-Tech / Connect' / Pedagogique)
  --------------------------------------------------------- */
  .modes-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; align-items:stretch;}
  .mode-card{border-radius:var(--radius-lg); padding:36px 32px; position:relative; overflow:hidden;}
  .mode-sticker{position:absolute; right:-6px; bottom:-6px; width:84px; height:auto; opacity:0.5;}
  .mode-lowtech{
    background:#FBF6E8; border:2px solid rgba(245,166,35,0.35);
  }
  .mode-connect{
    background:var(--connect-bg); color:#EDEBFF;
  }
  .mode-pedago{
    background:#EEEAFB; border:2px solid rgba(97,72,200,0.3);
  }
  .mode-connect h3, .mode-connect .mode-tag{color:#fff;}
  .mode-tag{
    display:inline-block; font-weight:800; font-size:12px; letter-spacing:.06em; text-transform:uppercase;
    padding:6px 14px; border-radius:100px; margin-bottom:18px;
  }
  .mode-lowtech .mode-tag{background:rgba(245,166,35,0.18); color:#8A5A08;}
  .mode-connect .mode-tag{background:rgba(255,255,255,0.12);}
  .mode-pedago .mode-tag{background:rgba(97,72,200,0.14); color:var(--purple-dark);}
  .mode-card h3{font-size:22px;}
  .mode-card > p{font-size:15px; margin-bottom:20px;}
  .mode-lowtech > p, .mode-pedago > p{color:var(--ink-soft);}
  .mode-connect > p{color:#C4BFEE;}
  .mode-list{list-style:none; padding:0; margin:0;}
  .mode-list li{
    display:flex; align-items:flex-start; gap:10px; padding:10px 0; font-weight:700; font-size:14px;
    border-top:1px solid rgba(0,0,0,0.06);
  }
  .mode-connect .mode-list li{border-top:1px solid rgba(255,255,255,0.1);}
  .mode-list li:first-child{border-top:none;}
  .mode-list svg{width:17px; height:17px; flex-shrink:0; margin-top:2px;}
  .mode-lowtech .mode-list svg{color:var(--orange);}
  .mode-connect .mode-list svg{color:#8DE0C6;}
  .mode-pedago .mode-list svg{color:var(--purple);}
  @media (max-width: 920px){
    .modes-grid{grid-template-columns:1fr;}
  }


  /* ---------------------------------------------------------
     PRODUCTION (fabrication, engagement)
  --------------------------------------------------------- */
  .prod-grid{display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center;}
  .prod-badges{display:flex; flex-direction:column; gap:14px; margin-top:26px;}
  .prod-badge{
    display:flex; gap:14px; align-items:flex-start;
    background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md);
    padding:18px 20px;
  }
  .prod-badge svg{width:22px; height:22px; color:var(--purple); flex-shrink:0; margin-top:2px;}
  .prod-badge strong{display:block; color:var(--purple-dark); font-size:15px;}
  .prod-badge span{color:var(--ink-soft); font-size:14px;}
  .prod-visual{
    background:var(--purple-dark); border-radius:var(--radius-lg);
    aspect-ratio:4/3; position:relative; overflow:hidden;
  }


  /* ---------------------------------------------------------
     OHIKA (mini section entreprise porteuse)
  --------------------------------------------------------- */
  .ohika-card{
    background:#FBF6E8; border:1px solid rgba(245,166,35,0.3); border-radius:var(--radius-lg);
    overflow:hidden;
  }
  .ohika-banner{width:100%; height:auto; display:block;}
  .ohika-body{padding:40px 44px; position:relative;}
  .ohika-body p{max-width:640px; color:var(--ink-soft);}
  .ohika-sticker{
    position:absolute; right:36px; bottom:20px; width:80px; height:auto;
    opacity:0.95;
  }
  @media (max-width: 700px){
    .ohika-sticker{display:none;}
  }


  /* ---------------------------------------------------------
     FAQ (accordeon, colonne unique)
  --------------------------------------------------------- */
  .faq-single{max-width:680px; margin:0 auto;}
  .faq-item{border-bottom:1px solid var(--line);}
  .faq-q{
    display:flex; align-items:center; justify-content:space-between; gap:16px;
    padding:18px 0; cursor:pointer; font-weight:800; font-size:15.5px; color:var(--purple-dark);
    background:none; border:none; width:100%; text-align:left; font-family:inherit;
  }
  .faq-q svg{width:18px; height:18px; flex-shrink:0; transition:transform .2s ease; color:var(--purple);}
  .faq-item.open .faq-q svg{transform:rotate(45deg);}
  .faq-a{
    max-height:0; overflow:hidden; transition:max-height .25s ease;
    font-size:15px; color:var(--ink-soft);
  }
  .faq-item.open .faq-a{max-height:220px;}
  .faq-a-inner{padding-bottom:18px;}


  /* ---------------------------------------------------------
     CONTACT (formulaire + coordonnees)
  --------------------------------------------------------- */
  .contact-wrap{
    display:grid; grid-template-columns:1fr 1fr; gap:56px;
    background:var(--purple-dark); border-radius:var(--radius-lg);
    padding:56px; color:#fff;
  }
  .contact-wrap h2{color:#fff;}
  .contact-wrap .section-head p{color:#C9C1F0;}
  .contact-info{display:flex; flex-direction:column; gap:20px;}
  .contact-sticker{width:100px; height:auto; margin-top:24px; opacity:0.95;}
  .contact-info-item{display:flex; gap:14px; align-items:flex-start;}
  .contact-info-item svg{width:20px; height:20px; color:var(--orange); flex-shrink:0; margin-top:3px;}
  .contact-info-item strong{display:block; font-size:15px;}
  .contact-info-item span{font-size:14px; color:#C9C1F0;}
  form.contact-form{display:flex; flex-direction:column; gap:14px;}
  .contact-form input, .contact-form select, .contact-form textarea{
    width:100%; padding:14px 16px; border-radius:var(--radius-sm); border:none;
    font-family:'Nunito', sans-serif; font-size:15px; background:rgba(255,255,255,0.95); color:var(--ink);
  }
  .contact-form select{appearance:none; -webkit-appearance:none;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C5480' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat:no-repeat; background-position:right 16px center; background-size:16px;
  }
  .contact-form textarea{min-height:100px; resize:vertical;}
  .contact-form button{margin-top:6px;}
  .form-note{font-size:13px; color:#B4ACE0; margin-top:4px;}


  /* ---------------------------------------------------------
     PIED DE PAGE
  --------------------------------------------------------- */
  footer{border-top:1px solid var(--line); padding:48px 0 36px;}
  .footer-grid{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px;}
  .footer-links{display:flex; gap:24px; list-style:none; padding:0; margin:0;}
  .footer-links a{text-decoration:none; font-size:14px; font-weight:700; color:var(--ink-soft);}
  .footer-copy{font-size:13.5px; color:var(--ink-soft);}


  /* ---------------------------------------------------------
     ANIMATION D'APPARITION AU SCROLL
  --------------------------------------------------------- */
  [data-reveal]{opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease;}
  [data-reveal].in{opacity:1; transform:translateY(0);}

  
  /* ---------------------------------------------------------
     RESPONSIVE (mobile et tablette)
  --------------------------------------------------------- */
  @media (max-width: 920px){
    .hero h1{font-size:36px;}
    .concept-grid, .prod-grid, .contact-wrap, .modes-grid{grid-template-columns:1fr;}
    .steps{grid-template-columns:repeat(2,1fr);}
    .theme-grid{grid-template-columns:repeat(2,1fr);}
    .nav-links{
      position:fixed; top:72px; left:0; right:0; background:var(--cream);
      flex-direction:column; padding:24px 32px; border-bottom:1px solid var(--line);
      display:none;
    }
    .nav-links.open{display:flex;}
    .nav-toggle{display:block;}
    section{padding:64px 0;}
    .contact-wrap{padding:32px;}
  }