/* regime10.fr — Section /videos/ — CSS dédié
 * Fond blanc obligatoire, mobile first, accessibilité
 * Path serveur : /home/regime10fr/htdocs/regime10.fr/videos/assets/css/videos.css
 */

* { box-sizing: border-box; }

body {
    background: #ffffff;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

main {
    max-width: 860px;
    margin: 0 auto;
    padding: 18px 20px 60px;
}

.breadcrumb {
    font-size: 13px;
    color: #555;
    margin: 6px 0 14px;
}
.breadcrumb a {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.breadcrumb a:hover { text-decoration: underline; }

h1 {
    font-size: 26px;
    line-height: 1.25;
    margin: 6px 0 18px;
    color: #1a1a1a;
}
h2 {
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 10px;
    color: #1a1a1a;
}
h3 {
    font-size: 17px;
    margin-top: 20px;
    margin-bottom: 6px;
    color: #1a1a1a;
}

p {
    margin: 0 0 14px;
    font-size: 16px;
}

.reponse-directe {
    font-size: 17px;
    line-height: 1.55;
    color: #1a1a1a;
    background: #f5f9ff;
    padding: 14px 16px;
    border-left: 4px solid #2962ff;
    border-radius: 4px;
    margin: 12px 0 22px;
}

.ad-slot {
    margin: 22px 0;
    text-align: center;
    min-height: 100px;
}
/* Masque les zones AdSense vides tant que la pub n'est pas activée (évite l'espace blanc) */
.ad-slot:empty {
    display: none;
    margin: 0;
    min-height: 0;
}

/* Vidéo embed responsive 16:9 */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 18px 0 8px;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}
.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Facade lite-youtube : vignette + bouton play, l'iframe charge au clic */
.video-facade {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 18px 0 8px;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}
.video-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-facade .play-button {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 68px;
    height: 48px;
    background: rgba(0, 0, 0, 0.75);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s;
}
.video-facade:hover .play-button,
.video-facade:focus-within .play-button {
    background: #cc0000;
}
.video-facade .play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 16px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 4px;
}
.video-facade iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-credit {
    font-size: 13px;
    color: #666;
    margin-bottom: 22px;
}
.video-credit strong { color: #1a1a1a; }

/* Texte optimisé */
.texte-optimise {
    margin: 22px 0;
}
.texte-optimise p { font-size: 16px; }

/* Commentaire patient Bernard */
.commentaire-patient {
    background: #fff8e1;
    border-left: 4px solid #ff9800;
    padding: 16px 18px;
    border-radius: 4px;
    margin: 24px 0;
}
.commentaire-patient h3 {
    margin-top: 0;
    color: #6b4500;
    font-size: 16px;
}
.commentaire-patient p { margin-bottom: 8px; }
.commentaire-patient .signature {
    font-style: italic;
    color: #6b4500;
    font-size: 13px;
    margin-bottom: 0;
}

/* Mini quiz */
.mini-quiz {
    background: #f7f9fc;
    padding: 22px 22px 18px;
    border-radius: 8px;
    margin: 32px 0;
}
.mini-quiz h2 {
    margin-top: 0;
    font-size: 19px;
    color: #1a1a1a;
}
.quiz-question {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e3e3e3;
}
.quiz-question:last-of-type { border-bottom: none; padding-bottom: 0; }
.quiz-question p { font-weight: 500; margin-bottom: 8px; }
.quiz-question label {
    display: block;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: background .12s, border-color .12s;
}
.quiz-question label:hover {
    background: #eef3ff;
    border-color: #2962ff;
}
.quiz-question label input { margin-right: 10px; }
.quiz-question label input:checked + span,
.quiz-question label:has(input:checked) {
    background: #e3eefd;
    border-color: #2962ff;
    font-weight: 500;
}

.btn-quiz, .btn-cta {
    display: inline-block;
    background: #2962ff;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 12px 22px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background .12s;
}
.btn-quiz:hover, .btn-cta:hover { background: #1e4ed8; }

.cta-block {
    background: #f5f9ff;
    border-left: 4px solid #2962ff;
    padding: 18px 20px;
    border-radius: 4px;
    margin: 22px 0;
}

.recents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.recent-card {
    text-decoration: none;
    color: #1a1a1a;
}
.recent-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
    background: #eee;
}
.recent-card .t {
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.35;
}

/* Responsive ajustements */
@media (max-width: 600px) {
    main { padding: 12px 14px 50px; }
    h1 { font-size: 22px; }
    h2 { font-size: 18px; }
    .reponse-directe { font-size: 15px; padding: 12px 14px; }
}
