/*
Theme Name: Anticipation Prévention
Template: blocksy
Version: 2.0
*/
:root{
  --g:#0f8a5f; --g-d:#0b6a49; --ink:#0b2e22; --ink-2:#3a4a44; --muted:#6a7a74;
  --soft:#eef7f2; --soft-2:#f6faf8; --line:#e4ede9; --white:#fff;
  --accent:#0f8a5f;
  --theme-palette-color-1:#0f8a5f;--theme-palette-color-2:#0b6a49;--theme-palette-color-3:#0b2e22;
  --theme-link-initial-color:#0f8a5f;--theme-link-hover-color:#0b6a49;
  --r:14px; --r-lg:22px; --sh:0 10px 30px rgba(11,46,34,.07); --sh-lg:0 24px 60px rgba(11,46,34,.12);
  --wrap:1160px;
}
body,button,input,select,textarea{font-family:'Manrope',system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
body{color:var(--ink-2);background:#fff}
h1,h2,h3,h4{color:var(--ink);font-weight:800;letter-spacing:-.02em;line-height:1.12}
a{color:var(--g)}

/* ---------- HEADER / LOGO ---------- */
body.home .hero-section,body.home .page-title{display:none!important}
.site-title a,.ct-logo-container .site-title a{display:inline-flex;align-items:center;gap:11px;
  font-weight:800;font-size:21px;color:var(--ink)!important;letter-spacing:-.02em;text-decoration:none}
.site-title a::before{content:"";width:36px;height:36px;flex:0 0 36px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='11' fill='%230f8a5f'/%3E%3Cpath d='M20 7l9 3v8c0 6-4 10-9 12-5-2-9-6-9-12v-8l9-3z' fill='none' stroke='white' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M15.5 20l3.2 3.2L25 16.7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.ct-header,header[data-device] .ct-container{background:#fff}
/* bouton devis dans le menu */
li.ap-cta{margin-left:6px}
li.ap-cta a{background:var(--g);color:#fff!important;border-radius:10px;padding:.62rem 1.15rem!important;
  font-weight:700;box-shadow:0 6px 18px rgba(15,138,95,.28);transition:.15s}
li.ap-cta a:hover{background:var(--g-d);transform:translateY(-1px)}
.ct-menu-link{font-weight:600}

/* ---------- primitives ---------- */
.ap-wrap{max-width:var(--wrap);margin:0 auto;padding-left:22px;padding-right:22px}
.ap-bleed{width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
.ap-btn{background:var(--g);color:#fff!important;border-radius:11px;padding:.95rem 1.7rem;font-weight:700;
  text-decoration:none;display:inline-block;box-shadow:0 10px 24px rgba(15,138,95,.28);transition:.15s}
.ap-btn:hover{background:var(--g-d);transform:translateY(-2px)}
.ap-btn-ghost{background:rgba(255,255,255,.08);border:1.5px solid rgba(255,255,255,.55);color:#fff!important;
  border-radius:11px;padding:.9rem 1.6rem;font-weight:700;text-decoration:none;display:inline-block;transition:.15s}
.ap-btn-ghost:hover{background:rgba(255,255,255,.16)}
.ap-eyebrow{display:inline-block;font-weight:700;font-size:.82rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--g);background:var(--soft);padding:.4rem .8rem;border-radius:999px;margin-bottom:1rem}
.ap-sec{max-width:var(--wrap);margin:0 auto;padding:5rem 22px}
.ap-sec h2{font-size:clamp(1.7rem,3vw,2.3rem);margin-bottom:.5rem}
.ap-sec .sub{color:var(--muted);font-size:1.08rem;max-width:640px;margin-bottom:2.6rem}
.ap-center{text-align:center}.ap-center .sub{margin-left:auto;margin-right:auto}

/* ---------- HERO ---------- */
.ap-hero{background:radial-gradient(1200px 600px at 80% -10%,#12a06e33,transparent),
  linear-gradient(150deg,var(--ink) 0%,var(--g-d) 70%,#0e7d57 100%);color:#fff;overflow:hidden;position:relative}
.ap-hero::after{content:"";position:absolute;inset:0;background:
  radial-gradient(600px 300px at 15% 110%,#ffffff14,transparent);pointer-events:none}
.ap-hero-in{max-width:var(--wrap);margin:0 auto;padding:4.5rem 22px 5rem;display:grid;
  grid-template-columns:1.05fr .95fr;gap:3rem;align-items:center;position:relative;z-index:1}
.ap-hero .ap-eyebrow{color:#eafff5;background:#ffffff1f}
.ap-hero h1{color:#fff;font-size:clamp(2.1rem,4.2vw,3.35rem);margin-bottom:1.1rem}
.ap-hero p.lead{color:#d7efe6;font-size:1.18rem;line-height:1.6;max-width:520px;margin-bottom:2rem}
.ap-hero .ap-actions{display:flex;gap:.9rem;flex-wrap:wrap;margin-bottom:1.8rem}
.ap-hero .chips{display:flex;gap:1.4rem;flex-wrap:wrap;color:#bfe4d5;font-size:.92rem;font-weight:600}
.ap-hero .chips span{display:inline-flex;align-items:center;gap:.4rem}
.ap-hero .chips svg{width:17px;height:17px}
/* visuel droite : carte */
.ap-hero-visual{position:relative}
.ap-vcard{background:#fff;color:var(--ink);border-radius:var(--r-lg);box-shadow:var(--sh-lg);padding:1.5rem;position:relative;z-index:2}
.ap-vcard .vc-h{display:flex;align-items:center;gap:.7rem;font-weight:800;font-size:1.05rem;margin-bottom:1rem}
.ap-vcard .vc-h .ic{width:40px;height:40px;border-radius:11px;background:var(--soft);display:flex;align-items:center;justify-content:center}
.ap-vcard .vc-h .ic svg{width:22px;height:22px;stroke:var(--g)}
.ap-vrow{display:flex;align-items:center;gap:.7rem;padding:.72rem 0;border-top:1px solid var(--line);color:var(--ink-2);font-weight:600;font-size:.96rem}
.ap-vrow svg{width:19px;height:19px;stroke:var(--g);flex:0 0 19px}
.ap-vcard .vc-cta{margin-top:1.1rem;display:block;text-align:center;background:var(--g);color:#fff;border-radius:10px;padding:.8rem;font-weight:700;text-decoration:none}
.ap-vfloat{position:absolute;right:-14px;bottom:-22px;background:#fff;border-radius:16px;box-shadow:var(--sh-lg);
  padding:.85rem 1.1rem;display:flex;align-items:center;gap:.6rem;z-index:3;font-weight:800;color:var(--ink)}
.ap-vfloat b{color:var(--g);font-size:1.4rem}
.ap-vfloat span{font-size:.78rem;color:var(--muted);font-weight:600;line-height:1.1}
@media(max-width:900px){.ap-hero-in{grid-template-columns:1fr;gap:2.4rem}.ap-hero-visual{max-width:420px}}

/* ---------- bandeau confiance ---------- */
.ap-strip{background:var(--soft-2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ap-strip .in{max-width:var(--wrap);margin:0 auto;padding:1.15rem 22px;display:flex;flex-wrap:wrap;
  gap:1.6rem 2.4rem;align-items:center;justify-content:center;color:var(--ink-2);font-weight:600;font-size:.95rem}
.ap-strip .in span{display:inline-flex;align-items:center;gap:.5rem}
.ap-strip svg{width:18px;height:18px;stroke:var(--g)}

/* ---------- cartes formations ---------- */
.ap-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:1.3rem}
@media(max-width:980px){.ap-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.ap-cards{grid-template-columns:1fr}}
.ap-card{border:1px solid var(--line);border-radius:var(--r-lg);padding:1.7rem 1.5rem;background:#fff;
  transition:.18s;display:flex;flex-direction:column}
.ap-card:hover{box-shadow:var(--sh-lg);transform:translateY(-4px);border-color:transparent}
.ap-card .ic{width:52px;height:52px;border-radius:14px;background:var(--soft);display:flex;align-items:center;
  justify-content:center;margin-bottom:1.1rem}
.ap-card .ic svg{width:27px;height:27px;stroke:var(--g)}
.ap-card h3{font-size:1.18rem;margin-bottom:.5rem}
.ap-card ul{margin:.2rem 0 1.2rem;padding:0;list-style:none;color:var(--ink-2);font-size:.94rem;flex:1}
.ap-card ul li{padding:.2rem 0 .2rem 1.3rem;position:relative}
.ap-card ul li::before{content:"";position:absolute;left:0;top:.6em;width:7px;height:7px;border-radius:50%;background:var(--g)}
.ap-card a.more{color:var(--g);font-weight:700;text-decoration:none;display:inline-flex;align-items:center;gap:.35rem}
.ap-card a.more:hover{gap:.6rem}

/* ---------- pourquoi (features) ---------- */
.ap-why{background:var(--soft-2)}
.ap-feats{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem}
@media(max-width:840px){.ap-feats{grid-template-columns:1fr}}
.ap-feat{display:flex;gap:1rem;align-items:flex-start}
.ap-feat .ic{width:46px;height:46px;flex:0 0 46px;border-radius:12px;background:#fff;box-shadow:var(--sh);
  display:flex;align-items:center;justify-content:center}
.ap-feat .ic svg{width:23px;height:23px;stroke:var(--g)}
.ap-feat h3{font-size:1.08rem;margin-bottom:.3rem}
.ap-feat p{color:var(--muted);font-size:.96rem;line-height:1.55}

/* ---------- stats ---------- */
.ap-stats{max-width:var(--wrap);margin:0 auto;padding:0 22px}
.ap-stats .in{background:linear-gradient(135deg,var(--ink),var(--g-d));border-radius:var(--r-lg);
  padding:2.6rem;display:grid;grid-template-columns:repeat(4,1fr);gap:1.4rem;color:#fff}
@media(max-width:760px){.ap-stats .in{grid-template-columns:repeat(2,1fr)}}
.ap-stat b{display:block;font-size:2rem;color:#fff;font-weight:800}
.ap-stat span{color:#bfe4d5;font-size:.95rem;font-weight:600}

/* ---------- steps ---------- */
.ap-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem}
@media(max-width:760px){.ap-steps{grid-template-columns:1fr}}
.ap-step{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:1.9rem 1.5rem;position:relative}
.ap-step .n{width:46px;height:46px;border-radius:13px;background:var(--g);color:#fff;font-weight:800;
  display:flex;align-items:center;justify-content:center;margin-bottom:1rem;font-size:1.2rem;
  box-shadow:0 8px 20px rgba(15,138,95,.3)}
.ap-step h3{font-size:1.1rem;margin-bottom:.35rem}.ap-step p{color:var(--muted);font-size:.95rem;line-height:1.55}

/* ---------- cta band ---------- */
.ap-cta-band{background:radial-gradient(800px 400px at 50% -30%,#12a06e40,transparent),var(--ink);color:#fff;text-align:center;padding:4.5rem 22px}
.ap-cta-band h2{color:#fff;font-size:clamp(1.6rem,3vw,2.2rem);margin-bottom:.7rem}
.ap-cta-band p{color:#cfe6dc;margin-bottom:1.8rem;font-size:1.08rem}

/* ---------- footer ---------- */
footer.ct-footer,#site-footer,.ct-footer{display:none!important}
.ap-footer{background:var(--ink);color:#bcd3ca}
.ap-footer .in{max-width:var(--wrap);margin:0 auto;padding:3.4rem 22px 1.5rem;display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:2rem}
@media(max-width:820px){.ap-footer .in{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.ap-footer .in{grid-template-columns:1fr}}
.ap-footer .brand{display:flex;align-items:center;gap:11px;font-weight:800;color:#fff;font-size:1.15rem;margin-bottom:.9rem}
.ap-footer .brand::before{content:"";width:34px;height:34px;flex:0 0 34px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='11' fill='%230f8a5f'/%3E%3Cpath d='M20 7l9 3v8c0 6-4 10-9 12-5-2-9-6-9-12v-8l9-3z' fill='none' stroke='white' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M15.5 20l3.2 3.2L25 16.7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.ap-footer p{font-size:.93rem;line-height:1.6;color:#9fbcb0}
.ap-footer h4{color:#fff;font-size:.82rem;letter-spacing:.1em;text-transform:uppercase;margin-bottom:1rem}
.ap-footer ul{list-style:none;padding:0;margin:0}
.ap-footer li{margin:.5rem 0}
.ap-footer a{color:#bcd3ca;text-decoration:none;font-size:.95rem}.ap-footer a:hover{color:#fff}
.ap-footer .bot{max-width:var(--wrap);margin:0 auto;padding:1.3rem 22px;border-top:1px solid #ffffff1a;
  font-size:.85rem;color:#88a89b;display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem}

/* ---------- page formation : bloc devis ---------- */
.ap-devis-box{margin:2.5rem 0 0;padding:2rem;border:1px solid var(--line);border-radius:var(--r-lg);
  background:var(--soft-2);box-shadow:var(--sh)}
.ap-devis-box h2{color:var(--ink);margin-top:0;font-size:1.4rem}
.entry-content>.wp-block-image,.entry-content{line-height:1.7}

/* ===== template PBN — header/nav/logo/form/blog (statique) ===== */
.ap-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);
  backdrop-filter:saturate(1.1) blur(8px)}
.ap-header-in{max-width:var(--wrap);margin:0 auto;padding:.85rem 22px;display:flex;align-items:center;
  justify-content:space-between;gap:1.5rem}
.ap-logo{display:inline-flex;align-items:center;gap:11px;font-weight:800;font-size:21px;color:var(--ink);
  text-decoration:none;letter-spacing:-.02em}
.ap-logo-badge{width:36px;height:36px;flex:0 0 36px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='11' fill='%230f8a5f'/%3E%3Cpath d='M20 7l9 3v8c0 6-4 10-9 12-5-2-9-6-9-12v-8l9-3z' fill='none' stroke='white' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M15.5 20l3.2 3.2L25 16.7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.ap-nav ul{display:flex;align-items:center;gap:.3rem;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.ap-nav a{display:inline-block;padding:.5rem .85rem;color:var(--ink-2);font-weight:600;text-decoration:none;
  border-radius:9px;font-size:.96rem;transition:.15s}
.ap-nav a:hover{color:var(--g);background:var(--soft)}
.ap-nav li.ap-cta a{background:var(--g);color:#fff;box-shadow:0 6px 18px rgba(15,138,95,.28)}
.ap-nav li.ap-cta a:hover{background:var(--g-d);color:#fff}
@media(max-width:720px){.ap-nav a{padding:.4rem .55rem;font-size:.88rem}.ap-logo{font-size:17px}}

/* pages internes (formations, légales) */
.ap-page,.ap-post{max-width:820px;margin:0 auto;padding:3rem 22px 4rem;line-height:1.75;font-size:1.02rem}
.ap-page h1,.ap-post h1{font-size:clamp(1.7rem,3.2vw,2.4rem);margin-bottom:1.3rem;line-height:1.15}
.ap-page h2,.ap-post h2{font-size:1.45rem;margin:2.2rem 0 .7rem}
.ap-page h3,.ap-post h3{font-size:1.15rem;margin:1.6rem 0 .5rem;color:var(--g-d)}
.ap-page ul,.ap-post ul{padding-left:0;list-style:none;margin:.6rem 0}
.ap-page li,.ap-post li{padding:.25rem 0 .25rem 1.5rem;position:relative}
.ap-page li::before,.ap-post li::before{content:"";position:absolute;left:0;top:.75em;width:7px;height:7px;border-radius:50%;background:var(--g)}
.ap-page a,.ap-post a{color:var(--g);font-weight:600}
.ap-post-cat{display:inline-block;font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  color:var(--g);background:var(--soft);padding:.3rem .7rem;border-radius:999px;margin-bottom:1rem}

/* formulaire devis */
.ap-form{display:grid;gap:1rem;max-width:640px;margin:2rem 0 0}
.ap-form label{display:flex;flex-direction:column;gap:.35rem;font-weight:600;color:var(--ink);font-size:.92rem}
.ap-form input,.ap-form select,.ap-form textarea{padding:.8rem .9rem;border:1.5px solid var(--line);border-radius:10px;
  font:inherit;font-weight:400;color:var(--ink);background:#fff}
.ap-form input:focus,.ap-form select:focus,.ap-form textarea:focus{outline:none;border-color:var(--g);box-shadow:0 0 0 3px rgba(15,138,95,.15)}
.ap-form button{justify-self:start;border:0;cursor:pointer;margin-top:.4rem}
.ap-form-note{font-size:.82rem;color:var(--muted);font-weight:400}

/* liste conseils */
.ap-post-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.2rem;margin-top:2rem}
@media(max-width:640px){.ap-post-grid{grid-template-columns:1fr}}
.ap-post-card{display:block;border:1px solid var(--line);border-radius:16px;padding:1.5rem;text-decoration:none;transition:.18s;background:#fff}
.ap-post-card:hover{box-shadow:var(--sh-lg);transform:translateY(-3px);border-color:transparent}
.ap-post-card h3{color:var(--ink);font-size:1.12rem;margin:0;line-height:1.3}

/* mention informative (pages non dispensées) */
.ap-notice{background:#fff8ec;border:1px solid #f0d9a8;border-left:4px solid #e0a63a;border-radius:12px;
  padding:1.1rem 1.3rem;margin:0 0 1.8rem;font-size:.96rem;line-height:1.6;color:#5c4a22}
.ap-notice a{color:var(--g-d);font-weight:700}
