/* =========================================================
   The French Pâtissier — Tunnel CAP candidat libre
   Design system (charte officielle TFP)
   Polices de marque : Josefin Sans (corps + titres) + Qwitcher Grypen (accent script)
   ========================================================= */

:root {
    /* Palette officielle TFP */
    --navy:        #054160;
    --navy-deep:   #03314a;
    --grey-light:  #f2f2f2;
    --slate:       #4d5c71;
    --red:         #de1212;
    --red-dark:    #b50d0d;
    --butter:      #f1cd90;
    --amber:       #e5a34c;
    --tan:         #c5a277;
    --white:       #ffffff;
    --cream-bg:    #fbf7f0;

    --maxw: 1140px;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 10px rgba(5,65,96,.06);
    --shadow:    0 14px 40px rgba(5,65,96,.10);
    --shadow-lg: 0 30px 70px rgba(5,65,96,.16);

    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-head: 'Fjalla One', 'Plus Jakarta Sans', sans-serif;
    --font-script: 'Fjalla One', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* fond html = navy : macOS Safari échantillonne le fond du document pour teinter
   la barre d'onglets (« Show color in tab bar »). Le body reste blanc → contenu inchangé,
   seules la barre Safari + l'overscroll prennent le navy de marque. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background-color: var(--navy); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

body {
    font-family: var(--font-body);
    color: var(--navy);
    /* fond body = navy : Safari (iOS + macOS) teinte la barre du navigateur avec le
       background-color du body (cf. inocom.io). Les sections claires ont un fond blanc
       explicite (.section ci-dessous) → contenu inchangé, seule la barre Safari prend le navy. */
    background: var(--navy);
    line-height: 1.65;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: .2px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; font-weight: 400; color: var(--navy); letter-spacing: .1px; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
p  { margin-bottom: 1rem; }
strong { font-weight: 700; }
.script { font-family: var(--font-script); font-weight: 400; color: var(--amber); line-height: 1; font-size: 1.2em; display: inline-block; }
.hl { background: var(--butter); color: var(--navy); padding: .04em .22em; border-radius: .16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.section--navy .hl { background: rgba(229,163,76,.20); color: var(--butter); }
.amber { color: var(--amber); }
.navy  { color: var(--navy); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(56px, 8vw, 104px) 0; background: var(--white); }
.section--cream { background: var(--cream-bg); }
.section--navy  { background: var(--navy); color: var(--grey-light); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.center { text-align: center; }
.eyebrow {
    display: inline-block; font-family: var(--font-head); font-size: .78rem; font-weight: 400;
    letter-spacing: 1.8px; text-transform: uppercase; color: var(--amber);
    background: rgba(229,163,76,.13); padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.section--navy .eyebrow { background: rgba(229,163,76,.18); color: var(--butter); }

/* ---------- Top announcement bar ---------- */
.topbar {
    background: var(--navy-deep); color: #fff; text-align: center;
    font-family: var(--font-head); text-transform: uppercase; letter-spacing: 2px;
    font-size: .74rem; padding: 9px 16px;
}
.topbar b { color: var(--amber); font-weight: 400; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--slate); max-width: 660px; }
.center .lead { margin-left: auto; margin-right: auto; }
.section--navy .lead { color: #cdd8e2; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-head); font-weight: 400; font-size: 1.04rem;
    text-transform: uppercase; letter-spacing: .6px;
    padding: 18px 32px; border-radius: var(--radius-sm); text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    line-height: 1.2;
}
.btn--primary {
    background: var(--red); color: #fff; box-shadow: 0 10px 26px rgba(222,18,18,.28);
}
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(222,18,18,.34); }
.btn--secondary {
    background: transparent; color: var(--navy); border: 2px solid var(--navy);
}
.section--navy .btn--secondary { color: #fff; border-color: rgba(255,255,255,.55); }
.btn--secondary:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.section--navy .btn--secondary:hover { background: #fff; color: var(--navy); }
.btn--amber { background: var(--amber); color: var(--navy-deep); box-shadow: 0 10px 26px rgba(229,163,76,.32); }
.btn--amber:hover { background: #d8952f; transform: translateY(-2px); }
.btn--lg { padding: 21px 38px; font-size: 1.1rem; }
.btn__sub { display:block; font-family: var(--font-body); text-transform: none; font-size:.72rem; font-weight:500; letter-spacing:.2px; opacity:.92; margin-top:3px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; }
.center .cta-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(5,65,96,.96); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.site-header__logo img { height: 40px; width: auto; }
.site-header .btn { padding: 12px 22px; font-size: .92rem; }
.site-header__nav { display: flex; align-items: center; gap: 26px; }
.site-header__nav a.lnk { font-weight: 600; font-size: .95rem; color: #cdd8e2; }
.site-header__nav a.lnk:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(160deg, #fbf7f0 0%, #ffffff 60%); overflow: hidden; }
.hero.hero--center .wrap { display:block; grid-template-columns:none; max-width: 880px; text-align:center; padding-top: 76px; padding-bottom: 66px; }
.hero.hero--center .lead { margin-left:auto; margin-right:auto; }
.hero.hero--center .cta-row { justify-content:center; }
.hero.hero--center .hero__badge { margin-top: 4px; }
.hero::after {
    content: ""; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(229,163,76,.18), transparent 68%); border-radius: 50%;
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; padding-top: 70px; padding-bottom: 70px; }
.hero__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero__badge {
    display:inline-flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px 14px;
    background:#fff; border:1px solid #ece3d4; padding:12px 24px; border-radius:999px;
    font-size:.92rem; font-weight:500; color:var(--slate); box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.hero__badge .tp-stars { color:#00b67a; letter-spacing:2px; font-size:1rem; }
.hero__badge b { color: var(--navy); font-weight:700; }
.hero__badge .sep { color:#dcd2c0; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--navy); color: #dfe8ef; }
.trustbar .wrap { display: flex; flex-wrap: wrap; gap: 30px 50px; justify-content: center; align-items: center; padding: 22px; text-align: center; }
.trustbar .stat b { display:block; font-size: 1.7rem; color: var(--amber); font-weight: 700; line-height: 1; }
.trustbar .stat span { font-size: .82rem; letter-spacing: .5px; opacity: .85; }

/* ---------- Feature / pillar cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
    background: #fff; border: 1px solid #eee7da; border-radius: var(--radius); padding: 30px 28px;
    box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__ico { width: 52px; height: 52px; border-radius: 12px; display:flex; align-items:center; justify-content:center; background: var(--butter); color: var(--navy); margin-bottom: 18px; font-size: 1.5rem; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); margin-bottom: 0; font-size: .98rem; }

/* ---------- Bullets / checklist ---------- */
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 38px; color: var(--slate); font-size: 1.02rem; }
.checklist li::before {
    content: "✓"; position: absolute; left: 0; top: -1px; width: 26px; height: 26px;
    background: var(--amber); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: .85rem; font-weight: 700;
}
.checklist li strong { color: var(--navy); }

/* ---------- Pain / problem block ---------- */
.painlist { list-style:none; display:grid; gap:12px; }
.painlist li { position:relative; padding-left: 34px; color: var(--slate); }
.painlist li::before { content:"✕"; position:absolute; left:0; top:0; color: var(--red); font-weight:700; }

/* ---------- Program modules (accordion-ish list) ---------- */
.modules { display: grid; gap: 14px; }
.module {
    background:#fff; border:1px solid #ece4d6; border-radius: var(--radius-sm); padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}
.module h3 { font-size: 1.12rem; display:flex; gap:12px; align-items:baseline; }
.module h3 .num { color: var(--amber); font-weight:700; }
.module ul { margin-top: 10px; padding-left: 20px; color: var(--slate); font-size: .96rem; }
.module ul li { margin-bottom: 4px; }

/* ---------- Testimonials ---------- */
.quote {
    background:#fff; border:1px solid #ece4d6; border-left: 4px solid var(--amber);
    border-radius: var(--radius-sm); padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.quote p { font-style: italic; color: var(--navy); margin-bottom: 12px; }
.quote .who { font-weight:700; color: var(--slate); font-style: normal; font-size: .92rem; }
.stars { color: #00b67a; letter-spacing: 2px; font-size: 1rem; margin-bottom: 10px; }

/* Trustpilot native review cards */
.tp-head { display:flex; flex-direction:column; align-items:center; gap:8px; margin-bottom: 30px; }
.tp-rating { display:flex; align-items:center; gap:10px; font-size:1.5rem; font-weight:700; color:var(--navy); }
.tp-rating .tp-stars { color:#00b67a; letter-spacing:2px; }
.tp-rating .num { color:var(--navy); }
.tp-head .tp-sub { color:var(--slate); font-size:.95rem; margin:0; }
.tp-head .tp-sub a { color:#00b67a; font-weight:700; text-decoration:underline; }
.tp-cards { display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items:stretch; }
.tpc { background:#fff; border:1px solid #ece4d6; border-radius:12px; padding:22px 20px; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; }
.tpc__head { display:flex; align-items:center; gap:11px; margin-bottom:12px; }
.tpc__av { width:42px; height:42px; flex-shrink:0; border-radius:50%; background:var(--butter); color:var(--navy); font-weight:700; display:flex; align-items:center; justify-content:center; font-size:.92rem; }
.tpc__who { line-height:1.25; }
.tpc__name { display:block; font-weight:700; font-size:.92rem; color:var(--navy); }
.tpc__date { display:block; font-size:.76rem; color:var(--tan); margin-top:1px; }
.tpc__top { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.tpc__stars { color:#00b67a; letter-spacing:1px; font-size:1rem; }
.tpc__verified { font-size:.74rem; color:#00b67a; font-weight:600; display:inline-flex; align-items:center; gap:3px; }
.tpc p { font-size:.9rem; color:var(--slate); margin:0; }

/* video */
.video-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.video-grid iframe { width:100%; aspect-ratio:16/9; border:0; border-radius: var(--radius); box-shadow: var(--shadow); }
.yt-facade { width:100%; aspect-ratio:16/9; border:0; border-radius: var(--radius); box-shadow: var(--shadow); background-size:cover; background-position:center; position:relative; cursor:pointer; padding:0; display:block; }
.yt-facade::after { content:""; position:absolute; inset:0; background:rgba(5,65,96,.25); border-radius:var(--radius); transition:background .2s; }
.yt-facade:hover::after { background:rgba(5,65,96,.10); }
.yt-facade .play { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:72px; height:72px; border-radius:50%; background:var(--red); z-index:2; box-shadow:0 8px 24px rgba(0,0,0,.3); }
.yt-facade .play::before { content:""; position:absolute; top:50%; left:54%; transform:translate(-50%,-50%); border-style:solid; border-width:13px 0 13px 22px; border-color:transparent transparent transparent #fff; }

/* calendly lazy placeholder */
.cal-lazy { min-width:320px; height:700px; margin-top:24px; background:#fff; border-radius:14px; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.cal-lazy .cal-ph { text-align:center; color:var(--slate); }
.cal-lazy .cal-ph a { color:var(--red); font-weight:700; text-decoration:underline; }

/* ---------- Formateurs ---------- */
.coach { display:flex; gap: 22px; align-items:center; background:#fff; border:1px solid #ece4d6; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.coach img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; flex-shrink:0; }
.coach h3 { margin-bottom: 2px; }
.coach .role { color: var(--amber); font-weight:700; font-size:.9rem; margin-bottom: 8px; }
.coach p { font-size:.94rem; color: var(--slate); margin:0; }

/* ---------- Guarantee ---------- */
.guarantee { display:flex; gap: 30px; align-items:center; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color:#fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.guarantee .seal { flex-shrink:0; width:130px; height:130px; border-radius:50%; background: var(--amber); color: var(--navy-deep); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; font-weight:700; line-height:1.1; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.guarantee .seal b { font-size: 1.5rem; }
.guarantee h2 { color:#fff; }
.guarantee p { color:#cdd8e2; margin:0; }

/* ---------- FAQ ---------- */
.faq details { background:#fff; border:1px solid #ece4d6; border-radius: var(--radius-sm); padding: 4px 22px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { font-weight:700; color: var(--navy); padding: 16px 0; cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; gap: 16px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; color: var(--amber); font-size:1.5rem; font-weight:700; }
.faq details[open] summary::after { content:"–"; }
.faq details p { color: var(--slate); padding-bottom: 18px; margin:0; font-size:.98rem; }

/* ---------- Booking proof strip ---------- */
.book-proof { display:flex; flex-wrap:wrap; justify-content:center; gap:14px 30px; margin-top:30px; }
.book-proof .it { color:#dfe8ef; font-size:.98rem; }
.book-proof .it b { color: var(--amber); }
.book-proof .stars { color:#00b67a; letter-spacing:1px; }
.book-authority { text-align:center; color:#cdd8e2; font-size:.95rem; margin-top:18px; }
.book-authority b { color:#fff; }

/* ---------- Final CTA ---------- */
.finalcta { text-align:center; }
.finalcta .wrap { position:relative; z-index:2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #9fb2c0; padding: 40px 0; text-align:center; font-size:.88rem; }
.site-footer a { color: #cdd8e2; text-decoration: underline; }
.site-footer img { height: 38px; margin: 0 auto 16px; opacity:.9; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta { display:none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 34px; padding-top: 44px; }
    .hero__media { order: -1; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .tp-cards { grid-template-columns: repeat(2,1fr); }
    .video-grid { grid-template-columns: 1fr; }
    .trustbar .wrap { display:grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
    .trustbar .stat { text-align:center; }
    .guarantee { flex-direction: column; text-align:center; padding: 30px 24px; }
    .coach { flex-direction: column; text-align:center; }
    .site-header__nav { display:none; }
    .site-header .btn.header-cta { display:none; }
    body { padding-bottom: 78px; }
    .mobile-cta {
        display:flex; position:fixed; bottom:0; left:0; right:0; z-index:200; gap:10px; padding:10px 12px;
        background: rgba(255,255,255,.97); border-top:1px solid #eadfce; box-shadow: 0 -6px 20px rgba(5,65,96,.10);
    }
    .mobile-cta .btn { flex:1; padding: 14px 8px; font-size:.9rem; }
    .mobile-cta .btn__sub { display:none; }
}
@media (max-width: 480px) {
    .tp-cards { grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .center .cta-row .btn { width: 100%; }
}
