/* =====================================================================
   MSIT One Pharmacie — landing page (chargée uniquement sur cette page)
   Palette « officine » : marine profond, vert pharmacie, menthe.
   ===================================================================== */
.page-pharma {
  --ph-night: #071F33;
  --ph-night-2: #0A2A3C;
  --ph-green-deep: #0B5E3D;
  --ph-green: #1FA35A;
  --ph-green-light: #7FE3A8;
  --ph-mint: #EAF7F0;
  --ph-mint-line: #CBEBD8;
  --ph-blue-light: #8DB8EE;
}

/* ---------- Boutons ---------- */
.ph-btn-main { background: var(--ph-green); color: #fff; box-shadow: 0 10px 30px -12px rgba(31, 163, 90, .8), inset 0 1px 0 rgba(255, 255, 255, .18); }
.ph-btn-main:hover { background: #18894B; transform: translateY(-1px); }
.ph-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-têtes de section ---------- */
.ph-head { max-width: 760px; margin-bottom: 48px; }
.ph-head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; margin: 0; }
.ph-head-light h2 { color: #fff; }

/* ---------- Hero ---------- */
.ph-hero {
  position: relative; overflow: hidden; color: rgba(255, 255, 255, .75); padding: 40px 0 0;
  background:
    radial-gradient(900px 520px at 88% 18%, rgba(31, 163, 90, .26), transparent 62%),
    radial-gradient(780px 480px at 4% 110%, rgba(26, 98, 194, .28), transparent 60%),
    linear-gradient(180deg, var(--ph-night) 0%, var(--ph-night-2) 100%);
}
.ph-hero .breadcrumb { margin-bottom: 26px; }
.ph-hero .breadcrumb a, .ph-hero .breadcrumb span { color: rgba(255, 255, 255, .55); }
.ph-hero .breadcrumb a:hover { color: #fff; }
.ph-hero .breadcrumb .sep { color: rgba(255, 255, 255, .25); }
.ph-hero-dots { width: 620px; right: -260px; top: -60px; opacity: .18; }
.ph-hero-inner { position: relative; z-index: 1; display: grid; gap: 56px; align-items: center; padding-bottom: 24px; }
.ph-badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(31, 163, 90, .12); border: 1px solid rgba(127, 227, 168, .3); color: #C9F1DA;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
}
.ph-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ph-green-light); box-shadow: 0 0 0 0 rgba(127, 227, 168, .6); animation: phLive 2.2s ease-out infinite; }
.ph-badge-sep { width: 1px; height: 12px; background: rgba(255, 255, 255, .25); }
.ph-hero h1 { color: #fff; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 22px; }
.ph-grad { background: linear-gradient(92deg, var(--ph-green-light) 0%, #A6E9C4 45%, var(--ph-blue-light) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph-lead { font-size: 18.5px; line-height: 1.62; color: rgba(255, 255, 255, .74); max-width: 33em; margin: 0 0 32px; }
.ph-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: rgba(255, 255, 255, .7); font-size: 14.5px; }
.ph-proof li { display: inline-flex; align-items: center; gap: 8px; }
.ph-proof i { color: var(--ph-green-light); font-size: 17px; }
.ph-hero-note { position: relative; z-index: 1; margin: 0 auto; padding-top: 70px; padding-bottom: 22px; font-family: var(--font-mono); font-size: 11.5px; color: rgba(255, 255, 255, .42); display: flex; gap: 8px; align-items: center; }

/* Mise en scène des captures */
.ph-stage { position: relative; perspective: 1800px; --rx: 6deg; --ry: -14deg; }
.ph-screen { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .75), 0 18px 40px -20px rgba(0, 0, 0, .5); }
.ph-screen img { display: block; width: 100%; height: auto; }
.ph-screen-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #EEF2F6; border-bottom: 1px solid #DDE4EC; }
.ph-screen-bar span { width: 9px; height: 9px; border-radius: 50%; background: #CDD6E0; }
.ph-screen-bar span:first-child { background: #F2756A; }
.ph-screen-bar span:nth-child(2) { background: #F5C451; }
.ph-screen-bar span:nth-child(3) { background: #5CC97B; }
.ph-screen-bar em { margin: 0 auto; font-style: normal; font-family: var(--font-mono); font-size: 11px; color: #5D6D7E; display: inline-flex; gap: 6px; align-items: center; padding-right: 40px; }
.ph-screen-bar em i { color: var(--ph-green); font-size: 10px; }
.ph-screen-main { transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-origin: 60% 50%; transition: transform .9s var(--ease-out); will-change: transform; }
.ph-float { position: absolute; margin: 0; z-index: 2; }
.ph-float-search { left: -6%; bottom: -16%; width: 54%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .5); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7); }
.ph-float-search img { display: block; width: 100%; height: auto; }
.ph-float-phone { right: -4%; bottom: -26%; width: 23%; min-width: 110px; padding: 6px; border-radius: 28px; background: #05121E; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8); }
.ph-float-phone img { display: block; width: 100%; height: auto; border-radius: 22px; }

/* ---------- Bandeau défilant ---------- */
.ph-ticker { background: var(--ph-green-deep); color: #D6F3E2; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .08); }
.ph-ticker-track { display: flex; width: max-content; animation: phTicker 46s linear infinite; }
.ph-ticker span { display: inline-flex; align-items: center; gap: 22px; padding: 15px 0 15px 22px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ph-ticker span::after { content: ''; width: 6px; height: 6px; border-radius: 1px; background: var(--ph-green-light); opacity: .8; }

/* ---------- Douleurs → solutions ---------- */
.ph-pain-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.ph-pain { position: relative; padding: 30px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s; }
.ph-pain:hover { transform: translateY(-4px); border-color: var(--ph-mint-line); box-shadow: 0 24px 48px -28px rgba(11, 94, 61, .45); }
.ph-pain-ico { width: 46px; height: 46px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--ph-mint); color: var(--ph-green-deep); font-size: 20px; margin-bottom: 22px; }
.ph-pain-before { position: relative; display: inline; font-size: 15px; color: var(--subtle); margin: 0; background: linear-gradient(currentColor, currentColor) no-repeat 0 55% / 0 1.5px; transition: background-size .9s var(--ease-out) .3s; }
.ph-pain.is-visible .ph-pain-before, .ph-pain-before.is-struck { background-size: 100% 1.5px; }
.ph-pain h3 { font-size: 22px; margin: 14px 0 8px; color: var(--ink); }
.ph-pain > p:last-child { margin: 0; font-size: 15.5px; }

/* ---------- Vitrine à onglets ---------- */
.ph-showcase {
  color: rgba(255, 255, 255, .72); overflow: hidden;
  background: radial-gradient(900px 500px at 100% 0%, rgba(31, 163, 90, .16), transparent 60%), var(--ph-night);
}
.ph-showcase .eyebrow { color: var(--ph-green-light); }
.ph-tablist { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 34px; scrollbar-width: none; }
.ph-tablist::-webkit-scrollbar { display: none; }
.ph-tab {
  position: relative; flex-shrink: 0; display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; overflow: hidden;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03);
  color: rgba(255, 255, 255, .7); font: 500 14.5px var(--font); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s;
}
.ph-tab i { font-size: 16px; }
.ph-tab:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.ph-tab.is-active { background: #fff; color: var(--ph-night); border-color: #fff; }
.ph-tab.is-active i { color: var(--ph-green); }
.ph-tab-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ph-green); transform: scaleX(0); transform-origin: left; }
.ph-tabs.is-playing .ph-tab.is-active .ph-tab-progress { animation: phProgress var(--ph-dur, 7s) linear forwards; }
.ph-panel { display: grid; gap: 34px; align-items: center; }
.ph-panel.is-active { animation: phPanelIn .7s var(--ease-out) both; }
.ph-panel-copy h3 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; margin: 0 0 14px; }
.ph-panel-copy p { color: rgba(255, 255, 255, .72); font-size: 16.5px; line-height: 1.65; margin: 0 0 22px; }
.ph-panel-copy ul { display: grid; gap: 10px; }
.ph-panel-copy li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .86); font-size: 15px; }
.ph-panel-copy li::before { content: ''; width: 6px; height: 6px; border-radius: 1px; background: var(--ph-green-light); margin-top: .6em; flex-shrink: 0; }
.ph-panel-screen { border-color: rgba(255, 255, 255, .18); }
.ph-panel.is-active .ph-panel-screen img { animation: phZoom 7.5s ease-out both; }
.ph-note-light { margin: 26px 0 0; font-family: var(--font-mono); font-size: 11.5px; color: rgba(255, 255, 255, .4); display: flex; gap: 8px; align-items: center; }

/* ---------- Fonctionnalités ---------- */
.ph-feature-grid { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.ph-feature { background: #fff; padding: 28px 26px; transition: background-color .25s; }
.ph-feature:hover { background: #FAFDFB; }
.ph-feature-ico { width: 42px; height: 42px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--ph-mint); color: var(--ph-green-deep); font-size: 19px; margin-bottom: 18px; transition: background-color .3s, color .3s, transform .35s var(--ease-out); }
.ph-feature:hover .ph-feature-ico { background: var(--ph-green); color: #fff; transform: translateY(-3px); }
.ph-feature h3 { font-size: 17px; margin: 0 0 6px; }
.ph-feature p { font-size: 14.5px; margin: 0; }

/* ---------- Une journée (frise) ---------- */
.ph-timeline { position: relative; display: grid; gap: 22px; grid-template-columns: 1fr; counter-reset: none; }
.ph-step { position: relative; padding: 0 0 0 64px; }
.ph-step-time { display: block; font-family: var(--font-mono); font-size: 12.5px; color: var(--ph-green-deep); margin-bottom: 6px; letter-spacing: .04em; }
.ph-step-ico { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--ph-mint-line); color: var(--ph-green-deep); font-size: 18px; box-shadow: 0 6px 16px -10px rgba(11, 94, 61, .5); z-index: 1; }
.ph-step h3 { font-size: 17px; margin: 0 0 4px; }
.ph-step p { font-size: 14.5px; margin: 0; }
.ph-timeline::before { content: ''; position: absolute; left: 22px; top: 22px; bottom: 22px; width: 2px; background: var(--ph-mint-line); }
.ph-timeline::after { content: ''; position: absolute; left: 22px; top: 22px; bottom: 22px; width: 2px; background: var(--ph-green); transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease-out); }
.ph-timeline.is-drawn::after { transform: scaleY(1); }

/* ---------- Galerie / blocs partagés ---------- */
.ph-split { display: grid; gap: 44px; align-items: center; }
.ph-tall { max-width: 540px; margin-left: auto; margin-right: auto; border-color: var(--line); box-shadow: 0 40px 80px -40px rgba(10, 34, 54, .45); transition: transform .5s var(--ease-out); }
.ph-tall:hover { transform: translateY(-6px) rotate(-.4deg); }

/* ---------- Mobile ---------- */
.ph-mobile { position: relative; overflow: hidden; color: rgba(255, 255, 255, .75); background: linear-gradient(135deg, var(--ph-green-deep) 0%, #094A33 55%, var(--ph-night) 100%); }
.ph-mobile h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.ph-mobile .lead { color: rgba(255, 255, 255, .78); }
.ph-mobile .eyebrow { color: var(--ph-green-light); }
.ph-mobile-dots { width: 520px; left: -200px; bottom: -120px; opacity: .2; }
.ph-mobile .container { position: relative; z-index: 1; }
.ph-mobile-phone { justify-self: center; width: min(300px, 78vw); padding: 9px; border-radius: 40px; background: #04101A; box-shadow: 0 60px 100px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }
.ph-mobile-phone img { display: block; width: 100%; height: auto; border-radius: 32px; }

/* ---------- Démarrage + abonnement ---------- */
.ph-start { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 40px; }
.ph-start-step { position: relative; padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; }
.ph-start-step b { display: block; font-family: var(--font-mono); font-size: 34px; font-weight: 500; color: var(--ph-mint-line); line-height: 1; margin-bottom: 18px; transition: color .3s; }
.ph-start-step:hover b { color: var(--ph-green); }
.ph-start-step h3 { font-size: 19px; margin: 0 0 6px; }
.ph-start-step p { margin: 0; font-size: 15px; }
.ph-plan { display: grid; gap: 28px; padding: 34px 28px; border-radius: var(--r-xl); background: var(--ph-mint); border: 1px solid var(--ph-mint-line); }
.ph-plan-list { display: grid; gap: 12px; grid-template-columns: 1fr; align-content: center; }
.ph-plan-list li { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: 15.5px; font-weight: 500; }
.ph-plan-list i { color: var(--ph-green); }

/* ---------- FAQ ---------- */
.ph-faq { display: grid; gap: 10px; }
.ph-faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .25s, box-shadow .25s; }
.ph-faq-item[open] { border-color: var(--ph-mint-line); box-shadow: 0 16px 36px -26px rgba(11, 94, 61, .5); }
.ph-faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--ink); font-size: 16.5px; }
.ph-faq-item summary::-webkit-details-marker { display: none; }
.ph-faq-item summary i { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ph-mint); color: var(--ph-green-deep); transition: transform .35s var(--ease-out), background-color .25s, color .25s; }
.ph-faq-item[open] summary i { transform: rotate(45deg); background: var(--ph-green); color: #fff; }
.ph-faq-item p { margin: 0; padding: 0 22px 20px; font-size: 15.5px; line-height: 1.65; }
.ph-faq-item[open] p { animation: phFadeDown .45s var(--ease-out) both; }

/* ---------- CTA final ---------- */
.ph-cta {
  position: relative; overflow: hidden; display: grid; gap: 26px; padding: 48px 28px; border-radius: var(--r-xl); color: rgba(255, 255, 255, .78);
  background: radial-gradient(700px 400px at 100% 0%, rgba(31, 163, 90, .35), transparent 60%), linear-gradient(135deg, var(--ph-night) 0%, var(--ph-night-2) 100%);
}
.ph-cta > * { position: relative; z-index: 1; }
.ph-cta > .brand-dots { position: absolute; z-index: 0; }
.ph-cta h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 10px; }
.ph-cta p { color: rgba(255, 255, 255, .72); margin: 0; font-size: 17px; }
.ph-cta-dots { width: 440px; right: -120px; bottom: -110px; opacity: .25; }
.ph-cta-foot { font-size: 14px !important; }
.ph-cta-foot a { color: var(--ph-green-light); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .ph-stage { --rx: 0deg; --ry: 0deg; margin: 0 4% 18% 0; }
  .ph-float-search { width: 62%; left: -2%; bottom: -14%; }
  .ph-float-phone { width: 26%; right: -2%; bottom: -20%; }
}
@media (min-width: 640px) {
  .ph-pain-grid { grid-template-columns: repeat(3, 1fr); }
  .ph-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .ph-start { grid-template-columns: repeat(3, 1fr); }
  .ph-plan-list { grid-template-columns: 1fr 1fr; }
  .ph-cta { padding: 60px 52px; }
}
@media (min-width: 1024px) {
  .ph-hero { padding-top: 44px; }
  .ph-hero-inner { grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 64px; padding-bottom: 40px; }
  .ph-stage { margin-right: 4%; }
  .ph-panel { grid-template-columns: minmax(0, .78fr) minmax(0, 1.4fr); gap: 56px; }
  .ph-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .ph-timeline { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .ph-step { padding: 64px 0 0; }
  .ph-step-ico { top: 0; }
  .ph-timeline::before, .ph-timeline::after { left: 22px; right: 22px; top: 22px; bottom: auto; width: auto; height: 2px; }
  .ph-timeline::after { transform: scaleX(0); transform-origin: left; }
  .ph-timeline.is-drawn::after { transform: scaleX(1); }
  .ph-split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .ph-plan { grid-template-columns: 1fr 1fr; padding: 44px; align-items: center; }
  .ph-cta { grid-template-columns: 1.3fr 1fr; align-items: center; padding: 72px 64px; }
  .ph-cta .ph-actions { justify-content: flex-end; }
  .ph-cta-foot { grid-column: 1 / -1; }
}

/* ---------- Animations ---------- */
@keyframes phLive { 0% { box-shadow: 0 0 0 0 rgba(127, 227, 168, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(127, 227, 168, 0); } }
@keyframes phTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes phProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes phPanelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes phZoom { from { transform: scale(1.04); } to { transform: scale(1); } }
@keyframes phFadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes phFloatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes phFloatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@media (prefers-reduced-motion: no-preference) {
  .ph-float-search { animation: phFloatA 7s ease-in-out infinite; }
  .ph-float-phone { animation: phFloatB 6s ease-in-out infinite .8s; }
  .ph-mobile-phone { animation: phFloatA 7s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-ticker-track, .ph-badge-dot { animation: none; }
  .ph-screen-main { transform: none; }
  .ph-timeline::after { transform: none !important; }
  .ph-pain-before { background-size: 100% 1.5px; }
}

/* L'icône occupe sa propre ligne ; la phrase barrée passe dessous */
.ph-pain-ico { display: flex; }
.ph-pain-before { display: inline; line-height: 1.6; }