/* ============================================================
   sections.css — toutes les sections de la page d'accueil :
   common (.s, .s-head), Features (« Et aussi »), Produit (« L'application » :
   captures et cartes à retourner), Pricing (+ compare), FAQ, FinalCTA.
   ============================================================ */

/* === SECTION COMMON === */
section.s {
    padding: 90px 0;
    position: relative;
}
section.s.alt { background: var(--bg-soft); }

.s-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}
.s-eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--belt-orange);
    margin-bottom: 12px;
}
.s-head h2 {
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.1;
    font-weight: 400;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
.s-head p {
    font-size: 17px;
    color: var(--text-muted);
    margin: 0;
    text-wrap: pretty;
}

@media (max-width: 640px) {
    section.s { padding: 60px 0; }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.feat {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    transition: all 0.2s;
}
.feat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.feat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-soft);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}
.feat-icon .material-symbols-rounded {
    font-size: 24px;
    color: var(--text);
}
.feat-icon.yellow { background: rgba(252, 192, 43, 0.16); }
.feat-icon.yellow .material-symbols-rounded { color: #b48a18; }
.feat-icon.orange { background: rgba(244, 149, 59, 0.14); }
.feat-icon.orange .material-symbols-rounded { color: #b06a23; }
.feat-icon.green { background: rgba(110, 170, 61, 0.16); }
.feat-icon.green .material-symbols-rounded { color: #4d8b32; }
.feat-icon.blue { background: rgba(98, 158, 214, 0.16); }
.feat-icon.blue .material-symbols-rounded { color: #2c6c9d; }
.feat-icon.red { background: rgba(236, 99, 103, 0.14); }
.feat-icon.red .material-symbols-rounded { color: #b03a3a; }
.feat-icon.dark { background: rgba(41, 54, 55, 0.08); }
.feat h3 {
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 8px;
}
.feat p {
    margin: 0;
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.55;
}

@media (max-width: 1000px) {
    .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .features { grid-template-columns: 1fr; }
}

/* ============================================================
   PRODUIT — « L'application » : texte + vraie capture, en alternance
   ============================================================ */
/* La colonne image fait la largeur exacte des captures (660 px) : affichée à sa taille, une
   capture reste nette ; réduite par le navigateur, son texte devient flou. */
.product-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 660px);
    gap: 56px;
    align-items: center;
}
.product-row + .product-row { margin-top: 96px; }
.product-row.reverse { grid-template-columns: minmax(0, 660px) minmax(0, 1fr); }
.product-row.reverse .product-text { order: 2; }

.product-text h3 {
    font-size: 30px;
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
.product-text p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0 0 18px;
    line-height: 1.6;
}
.product-text .pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.product-text ul {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
}
.product-text ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    font-size: 15px;
}
.product-text ul li .material-symbols-rounded {
    color: var(--belt-green);
    font-size: 20px;
    flex-shrink: 0;
}

/* Capture de l'app : un cadre de fenêtre, l'image à sa taille. Le filet est une ombre et non une
   bordure, pour ne pas retirer 2 px à l'image (elle serait réduite, donc floue). */
.shot {
    margin: 0;
    max-width: max-content;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: 0 0 0 1px var(--border), var(--shadow-lg);
    overflow: hidden;
}
.shot::before {
    content: '';
    display: block;
    height: 26px;
    border-bottom: 1px solid var(--border-soft);
    background:
        radial-gradient(circle, var(--belt-red) 4px, transparent 4.5px) 14px 50% / 12px 12px no-repeat,
        radial-gradient(circle, var(--belt-yellow) 4px, transparent 4.5px) 30px 50% / 12px 12px no-repeat,
        radial-gradient(circle, var(--belt-green) 4px, transparent 4.5px) 46px 50% / 12px 12px no-repeat,
        var(--bg-soft);
}
/* Les captures s'arrêtent au milieu de l'écran : fondu vers le bas */
.shot img {
    max-width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent);
    mask-image: linear-gradient(to bottom, #000 86%, transparent);
}

/* Le même cadre, sans la barre de fenêtre : la feuille A4 d'une évaluation */
.shot-plain::before { display: none; }

/* Deux plans : en haut l'ensemble (échelle, feuille A4, tableau de bord, fiche d'un élève, tableau
   de la classe), en bas le détail qui parle (attendus, résultats saisis, élèves prêts, à consolider,
   fiche du livret). Chaque image à sa largeur exacte EN PX (un pourcentage tombe à 480,02 px pour
   480 : l'image est rééchantillonnée, donc floue), plafonnée en pourcentage de la colonne (660 px)
   pour garder les proportions quand elle rétrécit ; le padding réserve la hauteur du premier plan,
   qui dépasse sous l'arrière-plan. Dans une rangée inversée (image à gauche : tableau de bord,
   livret), le premier plan passe à droite et déborde dans l'espace entre l'image et le texte. */
.stack {
    position: relative;
    max-width: 660px;
}
.stack-back {
    display: block;
    width: max-content;
    margin-left: auto;
    max-width: 84.85%; /* 560 px */
}
.stack-back img { display: block; }
.stack-front {
    position: absolute;
    bottom: 0;
    left: 0;
    height: auto;
    filter: drop-shadow(0 14px 28px rgba(41, 54, 55, 0.22));
}
/* Arrière-plan de toute la largeur (660 px) : l'échelle d'une compétence, le tableau de bord */
.stack-programme .stack-back,
.stack-dashboard .stack-back { max-width: 100%; }
.stack-programme { padding-bottom: 28.2%; }  /* bas des attendus à 812 px : ils commencent sous l'« Orange » de l'échelle */
.stack-programme .stack-front { width: 640px; max-width: 96.97%; left: -40px; } /* déborde dans la marge comme la carte du hero */
.stack-evaluation { padding-bottom: 25%; }   /* bas des résultats à 645 px */
.stack-evaluation .stack-front { width: 558px; max-width: 84.55%; }
.stack-dashboard { padding-bottom: 35.15%; } /* bas des « prêts » à 778 px */
.stack-dashboard .stack-front { width: 480px; max-width: 72.73%; left: auto; right: -40px; }
.stack-eleve .stack-back { max-width: 96.67%; } /* 638 px */
.stack-eleve { padding-bottom: 22.9%; }      /* bas de « À consolider » à 737 px */
.stack-eleve .stack-front { width: 440px; max-width: 66.67%; left: -40px; }
.stack-livret .stack-back { margin-left: 0; }
.stack-livret { padding-bottom: 63.8%; }     /* bas de la fiche à 787 px */
.stack-livret .stack-front { width: 640px; max-width: 96.97%; left: auto; right: -40px; }

/* Cartes à retourner : recto au repos, verso (la correction) au clic */
.flip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 320px));
    justify-content: center;
    gap: 18px;
}
.flip-card {
    padding: 0;
    border: 0;
    background: none;
    perspective: 1200px;
    aspect-ratio: 320 / 170;
    border-radius: 12px;
}
.flip-card:focus-visible {
    outline: 3px solid var(--belt-yellow);
    outline-offset: 4px;
}
.flip-inner {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.flip-card[aria-pressed='true'] .flip-inner { transform: rotateY(180deg); }
.flip-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    filter: drop-shadow(0 6px 14px rgba(41, 54, 55, 0.14));
}
.flip-back { transform: rotateY(180deg); }
.flip-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 22px 0 0;
    font-size: 14px;
    color: var(--text-muted);
}
.flip-hint .material-symbols-rounded { font-size: 18px; }
@media (prefers-reduced-motion: reduce) {
    .flip-inner { transition: none; }
}

@media (max-width: 1000px) {
    .product-row,
    .product-row.reverse { grid-template-columns: minmax(0, 1fr); gap: 32px; } /* pas `1fr` : une image de 560 px élargirait la colonne */
    .product-row.reverse .product-text { order: 0; }
    .product-row + .product-row { margin-top: 72px; }
    .stack-programme .stack-front,
    .stack-eleve .stack-front { left: 0; }
    .stack-dashboard .stack-front,
    .stack-livret .stack-front { right: 0; }
}
@media (max-width: 640px) {
    .product-text h3 { font-size: 25px; }
    .flip-grid { gap: 12px; }
}

/* ============================================================
   PRICING (cards + tableau comparatif)
   ============================================================ */
.pricing {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 880px;
    margin: 0 auto;
}
.price-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.price-card.featured {
    border: 2px solid var(--primary-dark);
    box-shadow: var(--shadow-lg);
}
.price-card .price-tag {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--grad-belts);
    background-size: 200% 100%;
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    animation: shimmer 8s ease infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.price-card h3 {
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 8px;
}
.price-card .price-sub {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 22px;
}
.price-card .price-amount {
    font-size: 44px;
    line-height: 1;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.price-card .price-amount small {
    font-size: 16px;
    color: var(--text-muted);
}
/* Le prix à l'année, sous le prix au mois (plus de bascule Mensuel / Annuel) */
.price-card .price-alt {
    font-size: 14px;
    color: var(--text-muted);
    margin: 6px 0 4px;
}
.price-card .price-alt strong {
    font-weight: 400;
    color: var(--text);
}
.price-card .price-alt .save {
    font-size: 11px;
    background: var(--belt-green);
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 4px;
    vertical-align: 1px;
}
.price-card .price-note {
    font-size: 13px;
    color: var(--text-soft);
    margin: 0 0 28px;
}
.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
}
.price-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14.5px;
    border-bottom: 1px solid var(--border-soft);
}
.price-card ul li:last-child { border-bottom: 0; }
.price-card ul li .material-symbols-rounded {
    color: var(--belt-green);
    font-size: 19px;
    flex-shrink: 0;
}
.price-card .btn {
    width: 100%;
    justify-content: center;
}
.price-card .cta-sub {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: var(--text-soft);
    text-align: center;
}
/* Carte Gratuit sans bouton : une phrase à la place, au pied de la carte comme le bouton d'en face. */
.price-card .free-end {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg-soft);
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--text-muted);
}
.price-card .free-end .material-symbols-rounded {
    font-size: 19px;
    color: var(--text-soft);
    flex-shrink: 0;
}

/* Tableau comparatif détaillé */
.compare-table {
    margin-top: 56px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.compare-head {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    background: var(--bg-soft);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
}
.compare-head > div {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-soft);
}
.compare-head .hl {
    background: rgba(41, 54, 55, 0.04);
    color: var(--text);
}
.compare-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    border-bottom: 1px solid var(--border-soft);
    font-size: 14.5px;
}
.compare-row:last-child { border-bottom: 0; }
/* Intertitre d'un groupe de lignes (Les cartes, Le suivi). */
.compare-group {
    padding: 10px 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--belt-orange);
    border-bottom: 1px solid var(--border-soft);
}
.compare-label {
    padding: 14px 20px;
    color: var(--text);
}
.compare-cell {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    color: var(--text-muted);
}
.compare-cell.hl {
    background: rgba(41, 54, 55, 0.025);
    color: var(--text);
}
.compare-cell .compare-yes { color: var(--text); }
.compare-cell .compare-no { color: var(--text-soft); }

.pricing-footnote {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: var(--text-muted);
}
.pricing-footnote a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--border);
}

@media (max-width: 1000px) {
    .pricing { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .compare-head, .compare-row { grid-template-columns: 1.4fr 0.8fr 0.8fr; }
    .compare-label, .compare-cell, .compare-head > div {
        padding: 12px 14px;
        font-size: 13px;
    }
    .compare-head > div { font-size: 11px; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
    max-width: 760px;
    margin: 0 auto;
}
.faq details {
    border-bottom: 1px solid var(--border-soft);
    padding: 18px 0;
}
.faq details[open] summary { color: var(--text); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    color: var(--text);
    padding: 4px 0;
    gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    font-size: 22px;
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bg-soft);
    flex-shrink: 0;
    transition: transform 0.2s;
    line-height: 1;
}
.faq details[open] summary::after {
    content: '–';
    transform: rotate(180deg);
    background: var(--bg-muted);
}
.faq details p {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-final {
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(252, 192, 43, 0.10), transparent 70%);
    pointer-events: none;
}
.cta-final h2 {
    font-size: clamp(34px, 4.4vw, 52px);
    font-weight: 400;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
    line-height: 1.1;
    text-wrap: balance;
}
.cta-final p {
    font-size: 18px;
    color: var(--text-muted);
    margin: 0 auto 32px;
    max-width: 560px;
}
.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-final .belts-bottom {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}
.cta-final .belts-bottom span {
    width: 36px;
    height: 6px;
    border-radius: 3px;
    display: block;
}
