/* ==========================================================================
   Page « Registre phyto 2027 » (/phyto) : complète style.css, mobile d'abord
   ========================================================================== */

.page-phyto .section { padding: 72px 0; }
@media (min-width: 960px) { .page-phyto .section { padding: 96px 0; } }
.page-phyto .section-head { margin-bottom: 36px; }

/* ---------- 1. Hero ---------- */
.ph-hero { padding: 24px 0 56px; }
.ph-hero__grid { display: grid; gap: 28px; align-items: center; }
.ph-hero__img img { width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.ph-hero h1 { font-size: clamp(32px, 6vw, 56px); margin: 14px 0 16px; }
.ph-lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.ph-ctas { display: grid; gap: 12px; margin-top: 28px; }
.ph-ctas .btn { justify-content: center; width: 100%; }
.ph-reassure { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ph-reassure li { display: inline-flex; align-items: center; gap: 6px; }
.ph-reassure svg { width: 18px; height: 18px; color: var(--green); flex: none; }
@media (max-width: 959px) { .ph-hero__img img { max-height: 30vh; width: auto; aspect-ratio: 4 / 5; } .ph-hero__grid { gap: 18px; } .ph-hero h1 { margin-top: 10px; } }
@media (min-width: 640px) { .ph-ctas { display: flex; flex-wrap: wrap; } .ph-ctas .btn { width: auto; } }
@media (min-width: 960px) {
  .ph-hero { padding: 56px 0 88px; }
  .ph-hero__grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .ph-hero__img { order: 2; }
}

/* ---------- 2. Réglementation ---------- */
.ph-pays { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); margin: 0 auto 28px; }
.ph-reg .container { text-align: center; }
.ph-pays button { font: inherit; font-size: 16px; font-weight: 700; color: var(--navy-500); background: none; border: 0; padding: 10px 22px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.ph-pays button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.ph-pays button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ph-pays-bloc { text-align: left; }
.ph-cartes { display: grid; gap: 16px; }
@media (min-width: 860px) { .ph-cartes { grid-template-columns: repeat(3, 1fr); } }
.ph-carte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.ph-carte__num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-weight: 800; font-size: 14px; }
.ph-carte h3 { font-size: 20px; font-weight: 800; margin: 12px 0 8px; }
.ph-carte p { color: #2B3754; font-size: 16px; line-height: 1.6; }

.ph-frise { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; position: relative; }
.ph-frise li { position: relative; padding: 0 0 22px 32px; }
.ph-frise li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid #B9C3DA; }
.ph-frise li::after { content: ""; position: absolute; left: 11px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.ph-frise li:last-child::after { display: none; }
.ph-frise strong { display: block; font-size: 17px; font-weight: 800; }
.ph-frise span { color: var(--muted); font-size: 15px; }
.ph-frise li.is-key::before { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 5px var(--blue-50); }
.ph-frise li.is-key strong { color: var(--blue); }
@media (min-width: 860px) {
  .ph-frise { grid-template-columns: repeat(4, 1fr); }
  .ph-frise li { padding: 30px 16px 0 0; }
  .ph-frise li::before { left: 0; top: 0; }
  .ph-frise li::after { left: 18px; right: 0; top: 7px; bottom: auto; width: auto; height: 2px; }
}
.ph-sources { margin-top: 18px; font-size: 13px; color: var(--muted); }
.ph-sources a { color: var(--blue); font-weight: 600; }
.ph-transition { margin: 40px auto 0; max-width: 720px; font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; line-height: 1.3; color: var(--navy); text-align: center; }

/* ---------- 3. Avant / avec ---------- */
.ph-cols { display: grid; gap: 16px; }
@media (min-width: 860px) { .ph-cols { grid-template-columns: 1fr 1fr; gap: 24px; } }
.ph-col { border-radius: var(--radius); padding: 24px; }
.ph-col h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.ph-col h3 svg { width: 22px; height: 22px; }
.ph-col ol { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 12px; }
.ph-col li { counter-increment: s; display: flex; gap: 12px; font-size: 16px; line-height: 1.5; }
.ph-col li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 800; }
.ph-col--papier { background: #F1EFEA; color: #4A5468; }
.ph-col--papier li::before { background: #DEDAD0; color: #4A5468; }
.ph-col--hector { background: var(--blue-50); color: var(--navy); border: 2px solid var(--blue); }
.ph-col--hector h3 { color: var(--blue-600); }
.ph-col--hector li::before { background: var(--blue); color: #fff; }
.ph-chiffre { text-align: center; margin-top: 36px; }
.ph-chiffre strong { display: block; font-size: clamp(44px, 9vw, 72px); font-weight: 800; color: var(--blue); letter-spacing: -0.03em; line-height: 1; }
.ph-chiffre span { display: block; margin-top: 8px; color: var(--muted); font-size: 17px; }

/* ---------- 4. Fonctions ---------- */
.ph-feature { display: grid; gap: 28px; align-items: center; margin-top: 56px; }
.ph-feature:first-of-type { margin-top: 0; }
.ph-feature h3 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; margin-bottom: 12px; }
.ph-feature__text > p { color: var(--muted); font-size: 18px; }
@media (min-width: 960px) {
  .ph-feature { grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 88px; }
  .ph-feature--rev .ph-feature__visual { order: -1; }
}
.ph-chat { background: #F4F6FA; border-radius: 22px; padding: 18px; display: grid; gap: 10px; border: 1px solid var(--line); }
.ph-msg { max-width: 86%; padding: 12px 15px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.ph-msg--user { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.ph-msg--bot { justify-self: start; background: #fff; color: var(--navy); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ph-msg--ok { border-color: var(--green); box-shadow: inset 4px 0 0 var(--green); }
.ph-chat.is-anim .ph-msg { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.ph-chat.is-anim .ph-msg.is-in { opacity: 1; transform: none; }
.ph-champs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ph-champs li { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: #1E7445; background: #E8F6EE; padding: 6px 10px; border-radius: 999px; }
.ph-champs svg { width: 14px; height: 14px; }

.ph-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 18px 20px; }
.ph-card__head { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.ph-card__head > svg { width: 20px; height: 20px; color: var(--blue); }
.ph-stock { padding: 10px 0; border-top: 1px solid #F0EEE8; }
.ph-stock__top { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; margin-bottom: 8px; }
.ph-stock__top em { font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: var(--orange); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.ph-gauge { height: 8px; border-radius: 999px; background: #EEF1F6; overflow: hidden; }
.ph-gauge i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.ph-stock.is-low .ph-gauge i { background: var(--orange); }
.ph-export { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #fff; background: var(--blue); padding: 7px 12px; border-radius: 999px; }
.ph-export svg { width: 14px; height: 14px; }
.ph-table-wrap { overflow-x: auto; }
.ph-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; }
.ph-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.ph-table td { padding: 10px 8px 10px 0; border-bottom: 1px solid #F0EEE8; white-space: nowrap; }

.ph-band { margin-top: 64px; padding: 26px; border-radius: var(--radius); background: var(--navy); color: #fff; display: grid; gap: 18px; text-align: center; }
.ph-band p { font-size: 19px; font-weight: 700; line-height: 1.45; max-width: 640px; margin: 0 auto; }
.ph-band ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 26px; }
.ph-band li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: #D5DCEA; }
.ph-band li span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.1); }
.ph-band svg { width: 20px; height: 20px; color: #fff; }

/* ---------- 5. Vidéo ---------- */
.ph-player { position: relative; max-width: 860px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.ph-player__btn { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.ph-player__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.ph-player__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.ph-player__play svg { width: 34px; height: 34px; color: #fff; margin-left: 4px; }
.ph-player__btn:focus-visible .ph-player__play { outline: 3px solid #fff; outline-offset: 3px; }
.ph-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ph-video__legende { text-align: center; margin-top: 14px; font-weight: 700; }
.ph-video__mention { text-align: center; margin-top: 4px; font-size: 13px; color: var(--muted); }

/* ---------- 6. Fondateur ---------- */
.ph-founder figure { max-width: 720px; margin: 0 auto; text-align: center; }
.ph-founder img { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto; box-shadow: var(--shadow-sm); }
.ph-founder blockquote { margin: 20px 0 14px; font-size: clamp(19px, 2.6vw, 23px); line-height: 1.55; font-weight: 600; color: var(--navy); }
.ph-founder figcaption { color: var(--muted); font-weight: 700; }

/* ---------- 7. Offre ---------- */
.ph-launch { max-width: 760px; margin: -8px auto 28px; text-align: center; font-weight: 700; color: #B23A10; background: var(--orange-50); border: 1px solid #FBC9B6; padding: 14px 18px; border-radius: var(--radius-sm); }
.ph-plans { display: grid; gap: 20px; max-width: 860px; margin: 0 auto; align-items: stretch; }
@media (min-width: 760px) { .ph-plans { grid-template-columns: 1fr 1fr; align-items: end; } }
.ph-plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-sm); }
.ph-plan h3 { font-size: 22px; font-weight: 800; }
.ph-plan__prix { margin: 10px 0 4px; }
.ph-plan__prix strong { display: block; font-size: 30px; font-weight: 800; }
.ph-plan__prix span { color: var(--muted); font-size: 15px; }
.ph-plan .checks { margin: 18px 0 24px; flex: 1; }
.ph-plan .btn { justify-content: center; }
.ph-plan--pro { border: 2px solid var(--blue); box-shadow: var(--shadow); }
@media (min-width: 760px) { .ph-plan--pro { padding-top: 40px; padding-bottom: 40px; } }
.ph-plans__note { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------- 8. FAQ ---------- */
.ph-faq__list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.ph-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.ph-faq summary { cursor: pointer; list-style: none; padding: 18px 48px 18px 20px; font-weight: 800; font-size: 17px; position: relative; min-height: 44px; }
.ph-faq summary::-webkit-details-marker { display: none; }
.ph-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 700; color: var(--blue); }
.ph-faq details[open] summary::after { content: "−"; }
.ph-faq summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: var(--radius-sm); }
.ph-faq details p { padding: 0 20px 20px; color: #2B3754; line-height: 1.6; }

/* ---------- 9. Dernier appel ---------- */
.ph-final { background: var(--blue); color: #fff; padding: 64px 0; text-align: center; }
.ph-final h2 { font-size: clamp(26px, 4.4vw, 40px); font-weight: 800; max-width: 760px; margin: 0 auto 24px; }
.btn--light { background: #fff; color: var(--blue-600); }
.btn--light:hover { background: #F2F8FF; }
.ph-reassure--light { justify-content: center; color: rgba(255,255,255,.92); }
.ph-reassure--light svg { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .ph-chat.is-anim .ph-msg { opacity: 1; transform: none; transition: none; }
}
