/*
Theme Name: Pic'n Flow - Site d'attente
Theme URI: https://picnflow.fr
Author: Pic'n Flow
Description: Thème temporaire responsive pour le Pic'n Flow 2027.
Version: 1.2.4
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: picnflow-attente
*/

:root {
  --pnf-navy: #071d34;
  --pnf-navy-soft: #0b2a49;
  --pnf-teal: #0b8d89;
  --pnf-mint: #52cbb6;
  --pnf-pale: #e9f8f5;
  --pnf-white: #ffffff;
  --pnf-text: #102339;
  --pnf-muted: #5e6e7c;
  --pnf-line: #d8ebe8;
  --pnf-shadow: 0 18px 55px rgba(5, 28, 50, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f6f8f8;
  color: var(--pnf-text);
  font-family: "Trebuchet MS", Trebuchet, Arial, sans-serif;
  line-height: 1.55;
}
body.admin-bar .pnf-header { top: 32px; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.pnf-skip-link { position: absolute; left: -9999px; top: 0; z-index: 9999; background: #fff; color: #000; padding: .75rem 1rem; }
.pnf-skip-link:focus { left: 1rem; top: 1rem; }

.pnf-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7,29,52,.98);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}
.pnf-header-inner {
  width: min(1180px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.pnf-brand { display: inline-flex; align-items: center; text-decoration: none; }
.pnf-brand img { display: block; width: 122px; height: 52px; object-fit: contain; object-position: left center; }
.pnf-header-actions { display: flex; align-items: center; gap: .8rem; }
.pnf-header-mail { color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; opacity: .9; }
.pnf-header-mail:hover, .pnf-header-mail:focus { color: var(--pnf-mint); opacity: 1; }
.pnf-header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: .65rem 1rem;
  border-radius: 999px; background: var(--pnf-teal); color: #fff;
  text-decoration: none; font-weight: 800; font-size: .84rem; letter-spacing: .035em;
}

.pnf-hero { background: #fff; overflow: hidden; }
.pnf-hero-intro {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 4.6rem) 0 clamp(1.6rem, 3vw, 2.7rem);
  text-align: center;
}
.pnf-hero-logo {
  width: clamp(230px, 24vw, 390px);
  filter: drop-shadow(0 10px 22px rgba(7,29,52,.10));
}
.pnf-date {
  margin: .8rem 0 .15rem;
  color: var(--pnf-navy);
  font-size: clamp(2.3rem, 4.2vw, 4.4rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.045em;
}
.pnf-kicker {
  margin: .7rem 0 0;
  color: var(--pnf-teal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: clamp(.78rem, 1.2vw, 1rem);
}
.pnf-headline {
  max-width: 680px;
  margin: 1rem auto 0;
  color: var(--pnf-navy);
  font-size: clamp(1.08rem, 1.8vw, 1.45rem);
  line-height: 1.42;
}
.pnf-hero-visual {
  width: min(1500px, 100%);
  height: clamp(570px, 47vw, 760px);
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  background: #fff;
}
.pnf-hero-visual img {
  display: block;
  width: min(88vw, 1420px);
  max-width: none;
  height: auto;
  margin: clamp(-90px, -5vw, -42px) auto 0;
}
.pnf-alert-overlap {
  position: relative;
  z-index: 4;
  width: min(620px, calc(100% - 2rem));
  margin: -82px auto 0;
  padding-bottom: 1rem;
}
.pnf-signup-card {
  padding: 1.4rem 1.4rem 1.2rem;
  border: 1px solid rgba(11,141,137,.28);
  border-radius: 24px;
  background: rgba(255,255,255,.97);
  box-shadow: var(--pnf-shadow);
  text-align: center;
}
.pnf-signup-card h2 {
  margin: 0;
  color: var(--pnf-teal);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  text-transform: uppercase;
  letter-spacing: .055em;
}
.pnf-signup-card > p { margin: .45rem auto .9rem; max-width: 470px; color: var(--pnf-muted); font-size: .94rem; }
.pnf-alert-form { display: grid; grid-template-columns: 1fr auto; gap: .65rem; align-items: center; }
.pnf-alert-form input[type=email] {
  width: 100%; min-height: 49px; padding: .78rem 1rem;
  border: 1px solid #b7ccc9; border-radius: 10px; background: #fff;
  color: var(--pnf-text); font: inherit;
}
.pnf-alert-form button {
  min-height: 49px; padding: .78rem 1.15rem;
  border: 0; border-radius: 10px; background: var(--pnf-teal); color: #fff;
  font: inherit; font-weight: 800; cursor: pointer;
}
.pnf-alert-form button:hover { background: #087873; }
.pnf-consent {
  grid-column: 1 / -1;
  display: flex; gap: .55rem; align-items: flex-start;
  text-align: left; color: var(--pnf-muted); font-size: .76rem;
}
.pnf-consent input { margin-top: .2rem; }
.pnf-form-status { margin: 0 0 .8rem; padding: .7rem .85rem; border-radius: 10px; font-size: .86rem; }
.pnf-form-status.success { background: #dcf6ee; color: #075f4f; }
.pnf-form-status.error { background: #fde9e8; color: #922d28; }
.pnf-form-fallback { display: inline-flex; padding: .8rem 1rem; border-radius: 10px; background: var(--pnf-teal); color: #fff; text-decoration: none; font-weight: 800; }

.pnf-section { padding: clamp(4rem, 7vw, 6.5rem) 1rem; }
.pnf-container { width: min(1120px, 100%); margin: 0 auto; }
.pnf-teachers-names {
  width: min(800px, 82%);
  margin: 0 auto clamp(1.8rem, 4vw, 3rem);
  padding: 0 .5rem;
  text-align: center;
}
.pnf-teachers-names img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.pnf-section-heading { max-width: 780px; margin: 0 auto 2.4rem; text-align: center; }
.pnf-section-heading .pnf-eyebrow { color: var(--pnf-teal); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.pnf-section-heading h2 { margin: .35rem 0 .75rem; color: var(--pnf-navy); font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; }
.pnf-section-heading p { margin: 0; color: var(--pnf-muted); font-size: 1.02rem; }
.pnf-profs { background: #fff; padding-top: clamp(5.4rem, 8vw, 7.4rem); }
.pnf-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pnf-fact {
  display: grid; grid-template-columns: 54px 1fr; gap: 1rem; align-items: start;
  padding: 1.35rem; border-radius: 20px; background: #f8fbfb;
  border: 1px solid #e0eeec;
}
.pnf-fact-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--pnf-pale); color: var(--pnf-teal); }
.pnf-fact-icon svg { width: 28px; height: 28px; }
.pnf-fact h3 { margin: .1rem 0 .35rem; color: var(--pnf-navy); font-size: 1.05rem; }
.pnf-fact p { margin: 0; color: var(--pnf-muted); font-size: .91rem; }
.pnf-soon-note { max-width: 780px; margin: 2.4rem auto 0; text-align: center; color: var(--pnf-muted); }

.pnf-footer { background: var(--pnf-navy); color: #fff; padding: 2.7rem 1rem 1.2rem; }
.pnf-footer-main {
  width: min(1120px,100%); margin: 0 auto;
  display: grid; grid-template-columns: 180px 1fr auto; gap: 2rem; align-items: center;
}
.pnf-footer-logo img { display: block; width: 150px; height: 80px; object-fit: contain; object-position: left center; }
.pnf-footer-contact a { color: #fff; text-decoration: none; font-size: 1.08rem; font-weight: 800; }
.pnf-footer-contact p { margin: .3rem 0 0; color: rgba(255,255,255,.68); font-size: .88rem; }
.pnf-footer-links { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.pnf-footer-links a { color: var(--pnf-mint); text-decoration: none; font-weight: 700; }
.pnf-footer-bottom {
  width: min(1120px,100%); margin: 2rem auto 0; padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.52); font-size: .78rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.pnf-simple-page { width: min(820px, calc(100% - 2rem)); margin: 0 auto; padding: 5rem 0; }

/* Tablette et téléphone pliable ouvert */
@media (min-width: 760px) and (max-width: 1199px) {
  body.admin-bar .pnf-header { top: 46px; }
  .pnf-header-inner { min-height: 68px; }
  .pnf-brand img { width: 112px; height: 48px; }
  .pnf-hero-intro { padding-top: 2.5rem; padding-bottom: 1.8rem; }
  .pnf-hero-logo { width: min(300px, 40vw); }
  .pnf-date { font-size: clamp(2.5rem, 6vw, 3.8rem); }
  .pnf-hero-visual { height: clamp(500px, 66vw, 690px); }
  /* Le visuel reste entièrement visible sur tablette et téléphone pliable ouvert. */
  .pnf-hero-visual img { width: min(96vw, 1080px); margin: -25px auto 0; }
  .pnf-alert-overlap { margin-top: -60px; }
  .pnf-facts { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
  .pnf-footer-main { grid-template-columns: 150px 1fr; }
  .pnf-footer-links { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Mobile */
@media (max-width: 759px) {
  body.admin-bar .pnf-header { top: 46px; }
  .pnf-header-inner { min-height: 64px; width: calc(100% - 1.25rem); }
  .pnf-brand img { width: 102px; height: 44px; }
  .pnf-header-mail { display: none; }
  .pnf-header-cta { min-height: 38px; padding: .55rem .8rem; font-size: .76rem; }
  .pnf-hero-intro { padding: 1.65rem 1rem 1.4rem; width: 100%; }
  .pnf-hero-logo { width: min(230px, 68vw); }
  .pnf-date { margin-top: .5rem; font-size: clamp(2.15rem, 11vw, 3.25rem); }
  .pnf-kicker { font-size: .72rem; letter-spacing: .12em; }
  .pnf-headline { margin-top: .75rem; font-size: 1.02rem; }
  .pnf-hero-visual { height: clamp(360px, 100vw, 520px); }
  /* Pas de recadrage latéral : tous les profs restent visibles, y compris Teddy. */
  .pnf-hero-visual img { width: 100vw; margin: -10px auto 0; }
  .pnf-alert-overlap { margin-top: -34px; width: calc(100% - 1.25rem); }
  .pnf-signup-card { border-radius: 19px; padding: 1.2rem 1rem 1rem; }
  .pnf-alert-form { grid-template-columns: 1fr; }
  .pnf-consent { grid-column: 1; }
  .pnf-section { padding: 3.8rem .75rem; }
  .pnf-profs { padding-top: 4.7rem; }
  .pnf-teachers-names { width: 100%; margin-bottom: 1.5rem; padding: 0; }
  .pnf-facts { grid-template-columns: 1fr; }
  .pnf-fact { grid-template-columns: 48px 1fr; }
  .pnf-fact-icon { width: 48px; height: 48px; }
  .pnf-footer-main { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
  .pnf-footer-logo img { margin: 0 auto; object-position: center; }
  .pnf-footer-links { justify-content: center; }
  .pnf-footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 380px) {
  .pnf-header-cta { display: none; }
  .pnf-hero-visual { height: 360px; }
}
