/* =====================================================================
   BatiPlanif — pages de contenu (Fonctionnalités, Métiers, À propos, FAQ).

   La mise en page des pages de contenu, et la bande « Sur le terrain »
   partagée avec l'accueil. Les aperçus de l'application eux-mêmes —
   fenêtres d'ordinateur, téléphones — sont dans mock.css.

   Aucune position n'est calculée en ligne : la politique de sécurité du
   site interdit `style-src 'unsafe-inline'`.
   ===================================================================== */

/* ======================= BLOCS EN ALTERNANCE ========================== */
/* L'aperçu a la part belle : c'est lui qui porte le message, le texte
   n'a qu'à le présenter. */
.alt{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr);
  gap:clamp(30px,4.5vw,64px);align-items:center}

/* Une section sur deux inverse l'ordre : le regard repart de l'autre côté
   et la page cesse d'être une colonne. Les proportions suivent, sinon
   l'aperçu rétrécirait une fois sur deux. */
.alt.flip{grid-template-columns:minmax(0,1.3fr) minmax(0,.8fr)}
.alt.flip .alt-visual{order:-1}

.alt + .alt{margin-top:clamp(56px,7vw,96px)}

/* Un cran sous le titre de section standard : six blocs à la suite, un
   titre à 2,5 rem chacun pèserait plus que l'aperçu qu'il présente. Les
   marges suivent, pour que le texte forme un seul bloc lisible. */
.alt-copy .eyebrow{margin-bottom:10px}
.alt-copy h2{font-size:clamp(1.45rem,1.05rem + 1.4vw,1.95rem);margin-bottom:10px}
.alt-copy .lead{font-size:1.05rem;line-height:1.58;margin-bottom:20px;max-width:52ch}

.feat-list{display:grid;gap:12px}
.feat-list li{display:grid;grid-template-columns:20px minmax(0,1fr);gap:11px;list-style:none;align-items:start}
.feat-list svg{width:20px;height:20px;margin-top:2px;color:var(--ok);flex:none;transition:transform .25s cubic-bezier(.3,1.4,.5,1)}
.feat-list b{display:block;font-size:.95rem;color:var(--navy-900);margin-bottom:1px;transition:color .2s}
/* Au survol d'une ligne : la coche s'anime, le titre passe en bleu. */
@media (hover:hover){
  .feat-list li:hover svg{transform:scale(1.15)}
  .feat-list li:hover b{color:var(--blue-700)}
}
.feat-list span{display:block;font-size:.89rem;color:var(--muted);line-height:1.5}

/* « Idéal pour : Électriciens · Plombiers · Couvreurs +7 » — les métiers
   les plus concernés, en petites pastilles discrètes sous la liste ; le
   reste en « +N », plus discret encore. */
.for-trades{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:18px;font-size:.8rem}
.for-trades span{color:var(--muted);font-weight:600;margin-right:2px}
.for-trades a{
  padding:3px 10px;border-radius:999px;border:1px solid var(--line);background:var(--surface);
  color:var(--ink-2);font-weight:600;transition:border-color .18s,color .18s,background .18s;
}
.for-trades a:hover{border-color:#BFD4FB;color:var(--blue-700);background:var(--blue-50)}
.for-trades a.for-more{padding-inline:8px;border-style:dashed;color:var(--muted);background:transparent;position:relative}
/* Les autres métiers du « +N », au survol : la bulle du site (data-tip, jamais title), de l'allure de celle de l'appli
   (fond encre, texte blanc, petite flèche). Au doigt, rien : le lien mène à la page des métiers. */
@media (hover:hover){
  .for-trades a.for-more[data-tip]:hover::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 8px);left:50%;
    transform:translateX(-50%);width:max-content;max-width:260px;padding:6px 10px;border-radius:7px;background:var(--ink);
    color:var(--surface);font-size:.72rem;font-weight:600;line-height:1.4;text-align:left;white-space:normal;
    box-shadow:var(--sh-2);pointer-events:none}
  .for-trades a.for-more[data-tip]:hover::before{content:"";position:absolute;bottom:calc(100% - 2px);left:50%;
    transform:translateX(-50%);border:5px solid transparent;border-top-color:var(--ink);pointer-events:none}
}
.field .for-trades{justify-content:center;margin:0 0 18px}

/* Les trois points sous le carrousel des téléphones (téléphone seulement). */
.phones-dots{display:none}
.phones-dots i{width:7px;height:7px;border-radius:50%;background:#C7D3E6;transition:width .25s,background .25s}
.phones-dots i.on{width:20px;border-radius:99px;background:var(--blue-600)}

.alt-visual{min-width:0}
/* Ici, la fenêtre va droit à la vue : le menu latéral, déjà vu sur
   l'accueil, laisse sa place, et les textes de l'aperçu gagnent en taille. */
.alt-visual .mock-desk{--ref:64}
.alt-visual .ax{grid-template-columns:minmax(0,1fr);min-width:calc(var(--ref) * 1em - 2px)}
.alt-visual .ax-side{display:none}

/* ========================== SUR LE TERRAIN ============================ */
/* L'application des intervenants (views/partials/field-band.php), sur
   l'accueil comme sur la page Fonctionnalités : une bande pastel, d'une
   autre couleur que le reste, et des téléphones — la différence bureau /
   terrain se voit avant de se lire. */
/* La couleur de la bande est vivante : le halo de la vague (site.css,
   .aurora.glow), aux couleurs du moment — vert et cyan quand on y arrive
   (SiteAurora, palette « field »). Le fond, lui, reste un simple dégradé. */
.field{
  position:relative;overflow:hidden;
  background:linear-gradient(180deg,#F8FBFF 0%,#EEF4FD 100%);
}
.field .wrap{position:relative;z-index:1}
.g-field{left:-15%;top:-20%;width:130%;height:110%;opacity:.38}
.field-b1{width:56px;height:56px;left:5%;top:16%;transform:rotate(-12deg)}
.field-b2{width:44px;height:44px;right:7%;bottom:12%;transform:rotate(16deg)}
.field-dots{width:150px;height:120px;right:3%;top:8%;
  background-image:radial-gradient(circle,rgba(99,102,241,.28) 1.6px,transparent 1.7px)}

/* Trois téléphones, celui du milieu un peu plus haut : un rythme, pas une
   rangée de vitrine. */
.phones{display:flex;justify-content:center;align-items:flex-start;gap:clamp(20px,4vw,60px);margin-bottom:clamp(34px,4vw,48px)}
.phones-it{display:flex;flex-direction:column;align-items:center;gap:20px;margin:0;max-width:272px}
.phones-it:nth-child(2){margin-top:-26px}
.phones-it .mock-phone{--pw:250px}
/* Au survol, le téléphone se soulève d'un rien, puis se repose à plat :
   rien ne bouge au repos, le texte reste net. */
.phones-it .ph{transition:transform .32s cubic-bezier(.2,.7,.2,1)}
@media (hover:hover){ .phones-it:hover .ph{transform:translateY(-6px)} }
.phones-it figcaption{text-align:center}
.phones-it figcaption b{display:block;font-size:1.05rem;color:var(--navy-900);margin-bottom:4px}
.phones-it figcaption span{display:block;font-size:.92rem;color:var(--muted);line-height:1.5}

.field-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;list-style:none;margin:0 0 14px;padding:0}
/* La coche et le titre sur une même ligne, le texte dessous. */
.field-item{
  display:grid;grid-template-columns:21px minmax(0,1fr);column-gap:10px;align-items:center;align-content:start;
  padding:18px 18px 20px;border-radius:var(--r-lg);background:rgba(255,255,255,.82);border:1px solid var(--line);box-shadow:var(--sh-1);
}
.field-ck{display:block;color:var(--ok)}
.field-ck svg{display:block}
.field-item b{color:var(--navy-900);font-size:1rem;line-height:1.25}
.field-item > span:last-child{grid-column:1/-1;display:block;margin-top:8px;color:var(--muted);font-size:.9rem;line-height:1.5}

.field-notes{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:14px}
.field-note{
  display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:14px;align-items:center;align-content:start;
  padding:20px 22px;border-radius:var(--r-lg);
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--sh-2);
}
.field-note p{grid-column:1/-1}
.field-note-ico{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px}
/* La pastille « Hors ligne » de l'application : sombre, triangle ambre. */
.field-note-ico.i-off{background:var(--navy-900);color:#FBBF24}
.field-note-ico.i-inst{background:var(--blue-100);color:var(--blue-600)}
.field-note b{color:var(--navy-900);font-size:1.02rem;line-height:1.25}
.field-note p{color:var(--ink-2);font-size:.93rem;line-height:1.58;margin:12px 0 0}

/* ============================= MÉTIERS =============================== */
/* Une seule grille, douze cartes à égalité (onze métiers et « votre
   métier ? ») : un intertitre, deux ou trois phrases, les fonctionnalités
   à voir en bas de carte. */
.mgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,1.8vw,22px)}

.mcard{
  display:flex;flex-direction:column;
  padding:22px 22px;border-radius:var(--r-lg);background:var(--surface);
  border:1px solid var(--line);box-shadow:var(--sh-1);
  transition:transform .2s,box-shadow .2s,border-color .2s;
}
/* Au survol, du relief par l'ombre et la bordure — la carte ne bouge pas :
   un texte déplacé se repeint flou le temps du mouvement. */
.mcard:hover{box-shadow:var(--sh-3);border-color:#CFDDF3}
.mcard-ico{transition:transform .25s cubic-bezier(.2,.7,.2,1)}
.mcard:hover .mcard-ico{transform:translateY(-2px) scale(1.06)}
.mcard-ico{width:38px;height:38px;border-radius:11px;margin-bottom:14px}
.mcard h2{font-size:1.02rem;line-height:1.3;letter-spacing:-.012em;margin-bottom:8px}
/* Le métier sur la ligne de son icône, l'accroche à la ligne. */
.mcard-title{display:grid;grid-template-columns:38px minmax(0,1fr);column-gap:12px;align-items:center}
.mcard-title .mcard-ico{margin:0}
.mcard-name{font-size:1.06rem;line-height:1.25}
.mcard-sub{grid-column:1/-1;display:block;margin-top:14px}
.mcard-sub::first-letter{text-transform:uppercase}
.mcard p{font-size:.9rem;color:var(--ink-2);line-height:1.55}
.mcard-feats{
  display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:auto;padding-top:14px;
}
.mcard .mcard-feats{font-size:.78rem}
.mcard-feats span{color:var(--muted);font-weight:600;margin-right:2px}
.mcard-feats a{
  padding:3px 9px;border-radius:999px;background:var(--blue-50);border:1px solid #D3E1FD;
  color:var(--blue-700);font-weight:600;transition:background .15s,border-color .15s;
}
.mcard-feats a:hover{background:#E1ECFE;border-color:#BFD4FB}
/* La douzième carte : l'invitation, en bleu pâle, son contenu centré
   verticalement et un vrai bouton — jamais une carte à moitié vide. */
.mcard-more{background:var(--blue-50);border-color:#D3E1FD;box-shadow:none;grid-column:span 2;justify-content:center}
.mcard-more h2{font-size:1.15rem;margin-bottom:10px}
.mcard-more p{font-size:.95rem;max-width:58ch}
.mcard-cta{margin-top:18px}

/* Encart « et si mon métier n'y est pas ? » */
.note-card{
  margin-top:clamp(34px,4vw,52px);padding:clamp(26px,3vw,38px);border-radius:var(--r-xl);
  background:var(--blue-50);border:1px solid #D3E1FD;
}
.note-card h3{font-size:1.2rem;margin-bottom:10px}
.note-card p{font-size:.98rem;color:var(--ink-2);line-height:1.6;max-width:70ch}

/* ============================== À PROPOS ============================== */
.prose{max-width:66ch}
.prose p{font-size:1.03rem;line-height:1.72;color:var(--ink-2);margin-bottom:20px}
.prose p:last-child{margin-bottom:0}
.prose p strong{color:var(--navy-900);font-weight:700}
.prose h2{margin:clamp(34px,4vw,52px) 0 16px}
.prose h2:first-child{margin-top:0}
.prose h3{margin:28px 0 10px;font-size:1.15rem}
.prose ul,.prose ol{margin:0 0 20px;padding-left:22px;color:var(--ink-2);font-size:1.03rem;line-height:1.72}
.prose li{margin-bottom:8px}
.prose li:last-child{margin-bottom:0}
.prose li strong{color:var(--navy-900)}

/* Pages légales : même colonne de lecture, mais plus dense. Les titres de
   section descendent au niveau d'un intertitre (on n'est pas sur une page
   marketing), le texte se resserre, la page se lit d'un trait. */
.prose.legal h2{font-size:1.12rem;letter-spacing:-.01em;margin:26px 0 8px}
.prose.legal h2:first-child{margin-top:0}
.prose.legal p,.prose.legal ul,.prose.legal ol{font-size:.98rem;line-height:1.62;margin-bottom:12px}
.prose.legal li{margin-bottom:6px}
.prose.legal .note-card{margin-top:22px;padding:18px 20px}
.prose.legal .note-card h3{font-size:1rem;margin-bottom:6px}
.prose.legal .note-card p{font-size:.94rem}
.page-head .prose.legal .lead{font-size:1.05rem}

/* Petit avis en bas d'une page légale : date, référence de version. */
.legal-meta{margin-top:clamp(34px,4vw,52px);padding-top:20px;border-top:1px solid var(--line);
  font-size:.85rem;color:var(--muted)}
.prose.legal .legal-meta{margin-top:26px;padding-top:14px}

/* En-tête avec photo (emplacement `about`) : le texte à gauche, l'image
   à droite, cadrée en 4:3. Sans image, l'en-tête reste en `.prose`. */
.head-photo{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(28px,4vw,56px);align-items:center}
.head-photo-img{margin:0;border-radius:var(--r-xl);overflow:hidden;box-shadow:var(--sh-3);background:var(--bg-2)}
.head-photo-img img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}

/* Le parti pris, en exergue : un encart clair, pas une seconde surface
   sombre — la page n'en a qu'une, la bande finale. */
.pull{
  margin:clamp(26px,3vw,36px) 0 0;padding:clamp(20px,2.4vw,28px) clamp(22px,2.6vw,32px);
  border-radius:var(--r-xl);background:var(--blue-50);border:1px solid #D3E1FD;
  border-left:4px solid var(--blue-600);color:var(--navy-900);
  font-size:clamp(1.05rem,1rem + .4vw,1.22rem);line-height:1.5;font-weight:600;letter-spacing:-.01em;
}

/* --- À propos : les difficultés du constat, puis les trois temps de la
       bêta. Des cartes courtes ; le texte reste dans la colonne. --- */
.prose.about{max-width:820px}
.about h2{font-size:clamp(1.45rem,1.05rem + 1.4vw,1.95rem);margin-bottom:12px}
.about > p{margin-bottom:16px}

/* `.prose ul/li` est plus spécifique que ces classes : on les nomme avec
   `.prose` pour reprendre la main sur le retrait et les marges. */
.prose .about-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
  margin:0 0 22px;padding:0;list-style:none;font-size:1rem;line-height:1.4;
}
.prose .about-card{
  display:flex;gap:13px;align-items:center;margin:0;padding:14px 16px;
  border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--line);box-shadow:var(--sh-1);
  font-weight:600;color:var(--navy-900);font-size:.95rem;
}
.about-card .ico-badge{width:38px;height:38px;border-radius:11px}

.prose .about-steps{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;
  margin:22px 0 0;padding:0;list-style:none;
}
/* L'icône et le titre sur une même ligne, le texte dessous, le numéro en
   haut à droite — la même carte que « Mise en route » sur l'accueil. */
.prose .about-step{
  position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);column-gap:12px;align-items:center;
  align-content:start;
  margin:0;padding:18px 18px 20px;border-radius:var(--r-lg);
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--sh-1);
}
.about-step-n{position:absolute;top:12px;right:14px;font-size:.78rem;font-weight:800;letter-spacing:.08em;color:var(--muted-2)}
.about-step .ico-badge{width:38px;height:38px;border-radius:11px}
.about-step b{font-size:.98rem;color:var(--navy-900);line-height:1.25;padding-right:18px}
.about-step p{grid-column:1/-1;margin:12px 0 0;font-size:.9rem;color:var(--muted);line-height:1.55}

/* La bande finale porte l'idée qui résume la page. */
.cta-band .eyebrow{color:var(--blue-400);margin-bottom:12px}

/* ============================ BANDE FINALE ============================ */
.cta-band{
  border-radius:var(--r-xl);padding:clamp(32px,4vw,52px);text-align:center;
  background:
    radial-gradient(90% 130% at 14% 0%, rgba(37,99,235,.3) 0%, transparent 62%),
    linear-gradient(160deg,var(--navy-900),var(--navy-700));
  color:#fff;box-shadow:var(--sh-3);
}
.cta-band h2{color:#fff;margin-bottom:12px}
.cta-band p{color:#C3D0E4;font-size:var(--t-lead);max-width:56ch;margin:0 auto 26px}
.cta-band .cta-row{justify-content:center}
/* Le bouton secondaire s'inverse, comme dans toute section sombre —
   sans quoi il disparaîtrait dans le fond. */
.cta-band .btn-ghost{border-color:rgba(255,255,255,.26);color:#fff;background:transparent}
.cta-band .btn-ghost:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.4);color:#fff}

/* ============================= RESPONSIVE ============================= */
@media (max-width:1080px){
  /* `.alt.flip` est plus spécifique que `.alt` : sans le nommer ici, les
     blocs inversés garderaient leurs deux colonnes sur téléphone. */
  .alt,.alt.flip{grid-template-columns:1fr;gap:30px}
  .alt.flip .alt-visual{order:0}
  .alt + .alt{margin-top:56px}
  .mgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .field-notes{grid-template-columns:1fr}
}

@media (max-width:860px){
  /* Les trois téléphones défilent de côté, un à la fois, plutôt que de
     s'empiler sur trois écrans de hauteur. */
  .phones{justify-content:flex-start;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;
    margin-inline:calc(var(--gutter) * -1);padding:30px var(--gutter) 8px;scrollbar-width:none}
  .phones::-webkit-scrollbar{display:none}
  .phones-it{flex:none;scroll-snap-align:center;max-width:240px}
  .phones-it:nth-child(2){margin-top:0}
  .phones-it .mock-phone{--pw:230px}
  .phones-dots{display:flex;justify-content:center;gap:6px;margin:-18px 0 30px}
}

@media (max-width:760px){
  .head-photo{grid-template-columns:1fr;gap:26px}
  .prose .about-grid,.prose .about-steps{grid-template-columns:1fr}
}

@media (max-width:560px){
  .mgrid{grid-template-columns:1fr}
  .mcard-more{grid-column:auto}
  .field-grid{grid-template-columns:1fr}
  .cta-band .cta-row .btn{width:100%}
}
