/* ============================================
   Pages produit du site vitrine (templates/_public_base.html)
   Préfixe pp- ; s'appuie sur les variables et composants de landing.css
   (boutons, hero-mesh, nav, footer). Un seul thème (clair).
   ============================================ */

.pp-body { padding-top: var(--nav-height); }

.pp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.pp-wrap--narrow { max-width: 820px; }

/* --- Hero produit : texte + média --- */
.pp-hero { padding: 4.5rem 0 4rem; }
.pp-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
}
.pp-hero--solo .pp-hero__grid { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.pp-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: var(--radius-full);
    background: rgba(10, 109, 255, 0.08); color: var(--primary);
    font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.pp-eyebrow--alert { background: rgba(220, 38, 38, 0.08); color: #b91c1c; }
.pp-hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    font-weight: 800; line-height: 1.1; letter-spacing: -0.025em;
    color: var(--text-dark); margin-bottom: 1.25rem;
}
.pp-lead { font-size: 1.2rem; line-height: 1.65; color: var(--text-medium); max-width: 36em; }
.pp-lead + .pp-lead { margin-top: 0.9rem; }
.pp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.pp-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 1.5rem; color: var(--text-medium); font-size: 0.95rem; }
.pp-points li::before { content: "✓"; color: var(--success); font-weight: 800; margin-right: 6px; }

/* --- Sections --- */
.pp-section { padding: 5rem 0; }
.pp-section--alt { background: var(--bg-light); }
.pp-h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
    font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;
    color: var(--text-dark); margin-bottom: 1rem;
}
.pp-intro { font-size: 1.1rem; line-height: 1.7; color: var(--text-medium); max-width: 44em; }
.pp-intro + .pp-intro { margin-top: 0.9rem; }
.pp-more { margin-top: 1.25rem; }
.pp-head { max-width: 760px; margin-bottom: 2.5rem; }
.pp-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.pp-head--center .pp-intro { margin-left: auto; margin-right: auto; }

/* Rangée texte + média, alternée avec .pp-row--flip */
.pp-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    align-items: center;
}
.pp-row--flip > .pp-row__text { order: 2; }
.pp-row + .pp-row { margin-top: 5rem; }
.pp-row__text h3 { font-size: 1.45rem; font-weight: 800; line-height: 1.25; color: var(--text-dark); margin-bottom: 0.75rem; }
.pp-row__text p { color: var(--text-medium); line-height: 1.75; font-size: 1.05rem; }
.pp-row__text p + p { margin-top: 0.8rem; }

/* Liens dans le texte : couleur de la marque même une fois visités,
   soulignement discret qui se renforce au survol. */
.pp-intro a, .pp-list a, .pp-note a, .pp-row__text a, .pp-card a, .pp-faq details a, .pp-more a {
    color: var(--primary); font-weight: 600;
    text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
    text-decoration-color: rgba(10, 109, 255, 0.3);
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.pp-intro a:hover, .pp-list a:hover, .pp-note a:hover, .pp-row__text a:hover, .pp-card a:hover, .pp-faq details a:hover, .pp-more a:hover {
    color: var(--primary-dark); text-decoration-color: currentColor;
}
.pp-intro a:focus-visible, .pp-list a:focus-visible, .pp-note a:focus-visible, .pp-row__text a:focus-visible,
.pp-card a:focus-visible, .pp-faq details a:focus-visible, .pp-more a:focus-visible {
    outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 3px;
}
/* Lien seul en fin de section : une flèche, comme les cartes de l'accueil. */
.pp-more a { text-decoration: none; }
.pp-more a::after { content: " →"; }
.pp-more a:hover { text-decoration: underline; }

/* Listes à puces sobres */
.pp-list { list-style: none; margin-top: 1rem; }
.pp-list li { position: relative; padding-left: 1.6rem; color: var(--text-medium); line-height: 1.65; margin-bottom: 0.55rem; }
.pp-list li::before {
    content: ""; position: absolute; left: 0; top: 0.62em;
    width: 8px; height: 8px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.pp-list strong { color: var(--text-dark); }
.pp-list--grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 2.5rem;
    max-width: 1040px; margin: 2.5rem auto 0;
}

/* Média pleine largeur sous un titre centré (vidéo côte à côte). */
.pp-wide { max-width: 1040px; margin: 0 auto; }

/* Cartes (3 colonnes) */
.pp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.pp-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pp-cards--after { margin-top: 3.5rem; }
.pp-card {
    background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.pp-card__icon { font-size: 1.6rem; line-height: 1; margin-bottom: 0.9rem; }
.pp-card h3 { font-size: 1.12rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.5rem; }
.pp-card p { color: var(--text-medium); line-height: 1.65; font-size: 0.97rem; }

/* Encadré (mise en garde, précision) */
.pp-note {
    display: flex; gap: 14px; align-items: flex-start;
    background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--primary);
    border-radius: var(--radius-md); padding: 1.25rem 1.4rem; margin-top: 2rem;
    color: var(--text-medium); line-height: 1.7;
}
.pp-note strong { color: var(--text-dark); }
.pp-note__icon { font-size: 1.3rem; line-height: 1.4; }

/* FAQ */
.pp-faq details {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 1.1rem 1.4rem; margin-bottom: 0.75rem;
}
.pp-faq summary { font-weight: 700; cursor: pointer; color: var(--text-dark); font-size: 1.04rem; line-height: 1.45; }
.pp-faq details p { margin-top: 0.75rem; color: var(--text-medium); line-height: 1.7; }

/* Bandeau d'appel final */
.pp-cta {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; padding: 5rem 2rem; text-align: center; position: relative; overflow: hidden;
}
.pp-cta__inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.pp-cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.pp-cta p { font-size: 1.15rem; opacity: 0.95; margin-bottom: 2rem; line-height: 1.6; }
.pp-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pp-btn-glass { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
.pp-btn-glass:hover { background: rgba(255, 255, 255, 0.24); }

/* Badges des stores : même hauteur visible (le PNG Google Play est recadré
   sur le badge, sans sa marge transparente). */
.pp-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 1.5rem; }
.pp-stores a { display: inline-block; line-height: 0; }
.pp-stores__badge { height: 44px; width: auto; }
.pp-stores__legal { margin-top: 0.6rem; font-size: 0.78rem; color: var(--text-light); }

/* Liens vers les autres pages produit */
.pp-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.pp-related a {
    display: block; padding: 1.25rem 1.35rem; border-radius: var(--radius-md);
    background: #fff; border: 1px solid var(--border); text-decoration: none; transition: var(--transition);
}
.pp-related a:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pp-related strong { display: block; color: var(--text-dark); margin-bottom: 0.25rem; }
.pp-related span { color: var(--text-medium); font-size: 0.93rem; line-height: 1.5; }

/* --- Médias réels (templates/_media.html) --- */
.media { position: relative; margin: 0; }
.media img, .media video { display: block; width: 100%; height: auto; }
.media--desktop picture, .media--desktop video {
    display: block; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); box-shadow: 0 24px 60px -18px rgba(15, 23, 42, 0.28), 0 2px 8px rgba(15, 23, 42, 0.06);
    background: #fff;
}
/* width: 100% : centrée par des marges automatiques, la figure se
   rétracterait à la largeur de son contenu (img à 100 %, donc zéro). */
.media--phone { width: 100%; max-width: 300px; margin: 0 auto; }
.media--phone picture, .media--phone video {
    display: block; border-radius: 38px; overflow: hidden;
    border: 9px solid #0f172a; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.45);
    background: #0f172a;
}
.media figcaption { margin-top: 0.8rem; font-size: 0.88rem; color: var(--text-light); text-align: center; line-height: 1.5; }
.media-duo { display: flex; gap: 1.5rem; justify-content: center; align-items: flex-start; }
.media-duo .media--phone { flex: 1 1 0; max-width: 250px; margin: 0; }

/* Bouton pause des vidéos (WCAG 2.2.2), piloté par landing.js */
.media-toggle {
    position: absolute; right: 14px; bottom: 14px; z-index: 2;
    width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(15, 23, 42, 0.62); color: #fff; display: grid; place-items: center;
    backdrop-filter: blur(6px);
}
.media--video figcaption ~ .media-toggle, .media--video:has(figcaption) .media-toggle { bottom: calc(14px + 2.2rem); }
.media-toggle:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.media-toggle__pause { width: 12px; height: 12px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.media-toggle.is-paused .media-toggle__pause {
    width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent #fff; margin-left: 3px;
}
.media--phone .media-toggle { right: 22px; bottom: 22px; }

/* --- Bandeau de confiance (repris de l'ancienne landing) : chaque badge
   mène à la section correspondante de /securite. --- */
.trust-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 1.5rem 2rem; }
.trust-bar-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; }
.trust-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
    background: var(--bg-light); border: 1px solid transparent; border-radius: var(--radius-full);
    font-size: 0.85rem; font-weight: 600; color: var(--text-medium); white-space: nowrap;
    text-decoration: none; transition: var(--transition);
}
.trust-badge:hover { background: var(--bg-gray); border-color: var(--border); color: var(--text-dark); transform: translateY(-1px); }
.trust-badge:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.trust-badge-icon { font-size: 1rem; }

/* --- Accueil (templates/home.html) --- */
.home-hero { padding-bottom: 5rem; }

.home-proofs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.home-proof {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm);
}
/* Zone média de hauteur fixe : les trois cartes alignent leurs titres. */
.home-proof .media { height: 300px; display: flex; flex-direction: column; justify-content: center; margin-bottom: 1.25rem; }
.home-proof .media--phone { max-width: 138px; }
.home-proof .media--phone video { border-width: 6px; border-radius: 22px; }
.home-proof .media--phone .media-toggle { right: 10px; bottom: 10px; width: 32px; height: 32px; }
.home-proof .media--desktop video { box-shadow: var(--shadow-md); }
.home-proof h3 { font-size: 1.15rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.5rem; }
.home-proof p { color: var(--text-medium); line-height: 1.6; font-size: 0.97rem; flex: 1; }
.home-proof__more { margin-top: 1rem; color: var(--primary); font-weight: 700; font-size: 0.95rem; text-decoration: none; align-self: flex-start; }
.home-proof__more:hover { text-decoration: underline; }
.home-proof__more::after { content: " →"; }

.home-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.home-tiles a {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px;
    padding: 1.2rem 1.3rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
    text-decoration: none; transition: var(--transition);
}
.home-tiles a:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.home-tiles span { grid-row: 1 / span 2; font-size: 1.5rem; line-height: 1.2; }
.home-tiles strong { color: var(--text-dark); font-size: 1rem; }
.home-tiles em { font-style: normal; color: var(--text-medium); font-size: 0.9rem; line-height: 1.5; margin-top: 2px; }

.home-price { text-align: center; }
.home-price .pp-intro { margin: 0 auto; }
.home-price__amount { font-size: 1.25rem; color: var(--text-medium); margin: 0.5rem 0 1rem; }
.home-price__amount strong { font-size: 2.4rem; font-weight: 800; color: var(--text-dark); letter-spacing: -0.02em; }
.home-price .pp-hero__actions { justify-content: center; }

/* --- Responsive --- */
@media (max-width: 960px) {
    .pp-hero__grid, .pp-row { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
    .pp-row--flip > .pp-row__text { order: 0; }
    .pp-cards { grid-template-columns: minmax(0, 1fr); }
    .pp-cards--2 { grid-template-columns: minmax(0, 1fr); }
    .pp-row + .pp-row { margin-top: 3.5rem; }
    .home-proofs, .home-tiles, .pp-list--grid { grid-template-columns: minmax(0, 1fr); }
    .home-proof .media { height: auto; }
    .home-proof .media--phone { max-width: 200px; }
}
@media (max-width: 560px) {
    .pp-wrap { padding: 0 1.1rem; }
    .pp-hero { padding: 2.75rem 0 3rem; }
    .pp-section { padding: 3.5rem 0; }
    .pp-lead { font-size: 1.08rem; }
    .media-duo { gap: 0.75rem; }
    .media--phone picture, .media--phone video { border-width: 6px; border-radius: 28px; }
    .pp-cta { padding: 3.5rem 1.1rem; }
}
