/**
 * Blocs Santé - Styles Frontend
 * Version: 1.0.0
 */

/* ==========================================================================
   Variables CSS
   ========================================================================== */
:root {
    --sante-white: #F8F8F8;
    --sante-text-dark: #111C33;
    --sante-epsytera-primary: #002149;
    --sante-epsytera-secondary: #111C33;
    --sante-epsytera-light: #F7FCFD;
    --sante-epsytera-bg: #EDF6FB;
    --sante-epsytera-light-alt: #CAE4EE;
    --sante-cpn-primary: #008298;
    --sante-cpn-secondary: #184652;
    --sante-ravenel-primary: #747C2B;
    --sante-ravenel-secondary: #5B5937;
}

/* ==========================================================================
   BLOC: EXPLICATION FOCUS
   ========================================================================== */
.sante-explication-focus {
    position: relative;
    width: 100%;
    padding: 120px 100px;
    overflow: hidden;
}

.sante-explication-focus__watermark {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0.12;
}

.sante-explication-focus__container {
    position: relative;
    z-index: 1;
    max-width: 1247px;
    margin: 0 auto;
}

.sante-explication-focus__media {
    margin-bottom: 36px;
}

.sante-explication-focus__media img {
    max-width: 230px;
    height: auto;
    display: block;
}

.sante-explication-focus__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sante-explication-focus__title {
    color: var(--sante-white);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.sante-explication-focus__text {
    color: var(--sante-white);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.sante-explication-focus__text p {
    margin: 0 0 14px;
}

.sante-explication-focus__text p:last-child {
    margin-bottom: 0;
}

/* Variantes Explication Focus */
.sante-explication-focus--epsytera {
    background: linear-gradient(46deg, var(--sante-epsytera-primary) 0%, var(--sante-epsytera-secondary) 100%);
}

.sante-explication-focus--cpn {
    background: linear-gradient(46deg, var(--sante-cpn-primary) 0%, var(--sante-cpn-secondary) 100%);
}

.sante-explication-focus--ravenel {
    background: linear-gradient(46deg, var(--sante-ravenel-primary) 0%, var(--sante-ravenel-secondary) 100%);
}

/* ==========================================================================
   BLOC: BLOC TEXTE
   ========================================================================== */
.sante-bloc-texte {
    width: 100%;
    padding: 69px 62px;
    background: var(--sante-white);
    border-radius: 26px;
}

.sante-bloc-texte__container {
    display: flex;
    align-items: flex-start;
    gap: 36px;
}

.sante-bloc-texte__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sante-bloc-texte__icon svg {
    display: block;
    width: 44px;
    height: auto;
}

.sante-bloc-texte__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sante-bloc-texte__title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.sante-bloc-texte__text {
    font-size: 16px;
    font-weight: 500;
    line-height: 21.76px;
}

.sante-bloc-texte__text p {
    margin: 0 0 14px;
}

.sante-bloc-texte__text p:last-child {
    margin-bottom: 0;
}

/* Variantes Bloc Texte */
.sante-bloc-texte--epsytera .sante-bloc-texte__title {
    color: var(--sante-epsytera-primary);
}

.sante-bloc-texte--epsytera .sante-bloc-texte__text {
    color: var(--sante-epsytera-secondary);
}

.sante-bloc-texte--cpn .sante-bloc-texte__title {
    color: var(--sante-cpn-primary);
}

.sante-bloc-texte--cpn .sante-bloc-texte__text {
    color: var(--sante-cpn-secondary);
}

.sante-bloc-texte--ravenel .sante-bloc-texte__title {
    color: var(--sante-ravenel-primary);
}

.sante-bloc-texte--ravenel .sante-bloc-texte__text {
    color: var(--sante-ravenel-secondary);
}

/* ==========================================================================
   BLOC: CORPS TEXTE
   ========================================================================== */
.sante-corps-texte {
    width: 100%;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
}

.sante-corps-texte__header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 36px;
}

.sante-corps-texte__title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    flex-shrink: 0;
}

.sante-corps-texte__line {
    flex: 1;
    height: 1.5px;
    opacity: 0.36;
}

.sante-corps-texte__content {
    font-size: 18px;
    font-weight: 600;
    line-height: 24.48px;
}

.sante-corps-texte__content p {
    margin: 0 0 14px;
}

.sante-corps-texte__content p:last-child {
    margin-bottom: 0;
}

.sante-corps-texte__button-wrapper {
    margin-top: 36px;
}

/* Variantes Corps Texte */
.sante-corps-texte--epsytera .sante-corps-texte__title {
    color: var(--sante-epsytera-primary);
}

.sante-corps-texte--epsytera .sante-corps-texte__line {
    background: var(--sante-epsytera-primary);
}

.sante-corps-texte--epsytera .sante-corps-texte__content {
    color: var(--sante-epsytera-secondary);
}

.sante-corps-texte--cpn .sante-corps-texte__title {
    color: var(--sante-cpn-primary);
}

.sante-corps-texte--cpn .sante-corps-texte__line {
    background: var(--sante-cpn-primary);
}

.sante-corps-texte--cpn .sante-corps-texte__content {
    color: var(--sante-cpn-secondary);
}

.sante-corps-texte--ravenel .sante-corps-texte__title {
    color: var(--sante-ravenel-primary);
}

.sante-corps-texte--ravenel .sante-corps-texte__line {
    background: var(--sante-ravenel-primary);
}

.sante-corps-texte--ravenel .sante-corps-texte__content {
    color: var(--sante-ravenel-secondary);
}

/* ==========================================================================
   BOUTONS - Filled par défaut, Outline au hover
   ========================================================================== */

/* ==========================================================================
   BLOC PATHOLOGIE (Epsytera uniquement)
   Double cercle + icône + titre + contenu
   ========================================================================== */
.sante-pathologie {
    width: 100%;
    margin-bottom: 48px;
}

.sante-pathologie__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sante-pathologie__icon-wrapper {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    padding: 12px;
    background: #CAE4EE;
    border-radius: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Animation au scroll - seulement si JS est chargé */
.js-sante-anim .sante-pathologie__icon-wrapper {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.sante-pathologie__icon-wrapper.is-visible {
    opacity: 1;
    transform: scale(1);
}

.sante-pathologie__icon-inner {
    width: 48px;
    height: 48px;
    background: var(--sante-epsytera-primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sante-pathologie__icon-inner svg {
    display: block;
}

.sante-pathologie__title {
    color: var(--sante-epsytera-primary);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.sante-pathologie__content {
    padding-left: 82px; /* Aligné avec le titre : 72px icon + 10px gap */
}

.sante-pathologie__text {
    color: var(--sante-text-dark);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.sante-pathologie__text p {
    margin: 0 0 16px;
}

.sante-pathologie__text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   BLOC SECTION INFO (Epsytera uniquement)
   Cercle simple + icône + titre + contenu
   ========================================================================== */
.sante-section-info {
    width: 100%;
    margin-bottom: 48px;
}

.sante-section-info__header {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-bottom: 12px;
}

.sante-section-info__icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--sante-epsytera-primary);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Animation au scroll - seulement si JS est chargé */
.js-sante-anim .sante-section-info__icon {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.sante-section-info__icon.is-visible {
    opacity: 1;
    transform: scale(1);
}

.sante-section-info__icon svg {
    display: block;
}

.sante-section-info__title {
    color: var(--sante-epsytera-primary);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.sante-section-info__content {
    padding-left: 86px; /* Aligné avec le titre : 50px icon + 34px gap + 2px ajustement */
}

.sante-section-info__text {
    color: var(--sante-text-dark);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.sante-section-info__text p {
    margin: 0 0 16px;
}

.sante-section-info__text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   LIEN RETOUR - Pathologie (Bug #30)
   ========================================================================== */
.sante-pathologie__back {
    margin-bottom: 24px;
}

.sante-pathologie__back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sante-epsytera-primary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.sante-pathologie__back-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.sante-pathologie__back-link:focus-visible {
    outline: 2px solid var(--sante-epsytera-primary);
    outline-offset: 2px;
    border-radius: 3px;
}

.sante-pathologie__back-link svg {
    flex-shrink: 0;
}

/* ==========================================================================
   ENCART RESSOURCE UTILE - Section Info (Bug #32)
   Masqué si vide (via PHP) + texte blanc sur fond bleu
   ========================================================================== */
.sante-section-info__ressource {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding: 20px 24px;
    background: var(--sante-epsytera-primary);
    border-radius: 12px;
}

.sante-section-info__ressource-icon {
    flex-shrink: 0;
    color: #FFFFFF;
    margin-top: 2px;
}

.sante-section-info__ressource-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sante-section-info__ressource-title {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.sante-section-info__ressource-link {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.sante-section-info__ressource-link:hover {
    opacity: 0.85;
}

.sante-section-info__ressource-link:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
    border-radius: 3px;
}

/* ==========================================================================
   BOUTONS - Styles
   ========================================================================== */
.sante-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px 14px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.sante-button__icon {
    display: flex;
    align-items: center;
}

.sante-button__icon svg {
    display: block;
}

.sante-button__icon svg path {
    transition: fill 0.25s ease;
}

/* Epsytera */
.sante-button--epsytera {
    background: var(--sante-epsytera-primary);
    color: var(--sante-white);
    border-color: var(--sante-epsytera-primary);
}

.sante-button--epsytera .sante-button__icon svg path {
    fill: var(--sante-white);
}

.sante-button--epsytera:hover {
    background: transparent;
    color: var(--sante-epsytera-primary);
}

.sante-button--epsytera:hover .sante-button__icon svg path {
    fill: var(--sante-epsytera-primary);
}

/* CPN */
.sante-button--cpn {
    background: var(--sante-cpn-primary);
    color: var(--sante-white);
    border-color: var(--sante-cpn-primary);
}

.sante-button--cpn .sante-button__icon svg path {
    fill: var(--sante-white);
}

.sante-button--cpn:hover {
    background: transparent;
    color: var(--sante-cpn-primary);
}

.sante-button--cpn:hover .sante-button__icon svg path {
    fill: var(--sante-cpn-primary);
}

/* CH Ravenel */
.sante-button--ravenel {
    background: var(--sante-ravenel-primary);
    color: var(--sante-white);
    border-color: var(--sante-ravenel-primary);
}

.sante-button--ravenel .sante-button__icon svg path {
    fill: var(--sante-white);
}

.sante-button--ravenel:hover {
    background: transparent;
    color: var(--sante-ravenel-primary);
}

.sante-button--ravenel:hover .sante-button__icon svg path {
    fill: var(--sante-ravenel-primary);
}

/* Focus states - Accessibilité */
.sante-button:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.sante-button:focus:not(:focus-visible) {
    outline: none;
}

.sante-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ==========================================================================
   RESPONSIVE - Tablette (max-width: 1024px)
   ========================================================================== */
@media screen and (max-width: 1024px) {
    /* Explication Focus */
    .sante-explication-focus {
        padding: 80px 40px;
    }

    .sante-explication-focus__title {
        font-size: 32px;
    }

    .sante-explication-focus__text {
        font-size: 18px;
    }

    /* Bloc Texte */
    .sante-bloc-texte {
        padding: 50px 40px;
    }

    .sante-bloc-texte__title {
        font-size: 26px;
    }

    /* Corps Texte */
    .sante-corps-texte__title {
        font-size: 32px;
    }

    /* Pathologie */
    .sante-pathologie__title {
        font-size: 26px;
    }

    /* Section Info */
    .sante-section-info__title {
        font-size: 26px;
    }
}

/* ==========================================================================
   RESPONSIVE - Mobile (max-width: 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* Explication Focus */
    .sante-explication-focus {
        padding: 60px 24px;
    }

    .sante-explication-focus__watermark {
        transform: scale(0.6);
        transform-origin: top left;
    }

    .sante-explication-focus__title {
        font-size: 28px;
    }

    .sante-explication-focus__text {
        font-size: 16px;
    }

    .sante-explication-focus__media img {
        max-width: 180px;
    }

    /* Bloc Texte */
    .sante-bloc-texte {
        padding: 40px 24px;
        border-radius: 16px;
    }

    .sante-bloc-texte__container {
        flex-direction: column;
        gap: 24px;
    }

    .sante-bloc-texte__title {
        font-size: 24px;
    }

    .sante-bloc-texte__text {
        font-size: 15px;
    }

    /* Corps Texte */
    .sante-corps-texte {
        padding: 24px;
    }

    .sante-corps-texte__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .sante-corps-texte__line {
        width: 100%;
    }

    .sante-corps-texte__title {
        font-size: 28px;
    }

    .sante-corps-texte__content {
        font-size: 16px;
    }

    /* Pathologie */
    .sante-pathologie__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sante-pathologie__content {
        padding-left: 0;
    }

    .sante-pathologie__title {
        font-size: 24px;
    }

    .sante-pathologie__text {
        font-size: 15px;
    }

    .sante-pathologie__back {
        margin-bottom: 16px;
    }

    /* Section Info - Ressource utile */
    .sante-section-info__ressource {
        padding: 16px 20px;
    }

    /* Section Info */
    .sante-section-info__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sante-section-info__content {
        padding-left: 0;
    }

    .sante-section-info__title {
        font-size: 24px;
    }

    .sante-section-info__text {
        font-size: 15px;
    }

    /* Boutons */
    .sante-button {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   RESPONSIVE - Petit mobile (max-width: 480px)
   ========================================================================== */
@media screen and (max-width: 480px) {
    /* Explication Focus */
    .sante-explication-focus {
        padding: 40px 16px;
    }

    .sante-explication-focus__watermark {
        transform: scale(0.4);
    }

    .sante-explication-focus__title {
        font-size: 24px;
    }

    .sante-explication-focus__text {
        font-size: 15px;
    }

    /* Bloc Texte */
    .sante-bloc-texte {
        padding: 32px 20px;
    }

    .sante-bloc-texte__title {
        font-size: 22px;
    }

    /* Corps Texte */
    .sante-corps-texte {
        padding: 20px 16px;
    }

    .sante-corps-texte__title {
        font-size: 24px;
    }

    .sante-corps-texte__content {
        font-size: 15px;
    }
}

/* ==========================================================================
   ACCESSIBILITÉ - Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .sante-button,
    .sante-button__icon svg path {
        transition: none;
    }
    
    /* Désactiver les animations d'icônes */
    .js-sante-anim .sante-pathologie__icon-wrapper,
    .js-sante-anim .sante-section-info__icon {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   BLOC FOCUS IMAGE (Epsytera uniquement)
   Bloc avec fond dégradé, titre, texte et image à droite
   ========================================================================== */
.sante-focus-image {
    position: relative;
    width: 100%;
    padding: 96px 64px 170px 64px;
    background: linear-gradient(46deg, var(--sante-epsytera-primary) 0%, var(--sante-epsytera-secondary) 100%);
    border-radius: 26px;
    overflow: hidden;
}

.sante-focus-image__watermark {
    position: absolute;
    opacity: 0.12;
    overflow: hidden;
}

.sante-focus-image__watermark--bottom-left {
    width: 157px;
    height: 144px;
    left: 0;
    bottom: 0;
    border-bottom-left-radius: 26px;
}

.sante-focus-image__watermark--top-right {
    width: 184px;
    height: 187px;
    right: 0;
    top: 0;
    border-top-right-radius: 26px;
}

.sante-focus-image__watermark-shape {
    position: absolute;
    top: -34px;
    height: 220px;
    width: 111px;
    border: 6px solid var(--sante-epsytera-secondary);
}

.sante-focus-image__watermark-shape--left {
    left: 0;
    background: linear-gradient(266deg, white 0%, rgba(0, 33, 73, 0.55) 100%);
}

.sante-focus-image__watermark-shape--right {
    left: 115px;
    background: linear-gradient(125deg, white 0%, rgba(0, 33, 73, 0.55) 100%);
}

.sante-focus-image__watermark--bottom-left .sante-focus-image__watermark-shape {
    width: 89px;
    height: 174px;
    top: 0;
    border-width: 4px;
}

.sante-focus-image__watermark--bottom-left .sante-focus-image__watermark-shape--left {
    left: -24px;
}

.sante-focus-image__watermark--bottom-left .sante-focus-image__watermark-shape--right {
    left: 69px;
}

.sante-focus-image__container {
    position: relative;
    z-index: 1;
    max-width: 65%;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.sante-focus-image__logo img {
    max-width: 289px;
    height: auto;
}

.sante-focus-image__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sante-focus-image__title {
    color: var(--sante-white);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.sante-focus-image__text {
    color: var(--sante-white);
    font-size: 16px;
    line-height: 21.76px;
}

.sante-focus-image__intro {
    font-weight: 600;
}

.sante-focus-image__body {
    font-weight: 500;
}

.sante-focus-image__body p {
    margin: 0 0 14px;
    display: inline;
}

.sante-focus-image__body p:last-child {
    margin-bottom: 0;
}

.sante-focus-image__image {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 40%;
    z-index: 2;
}

.sante-focus-image__image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom right;
}

/* Responsive tablette */
@media screen and (max-width: 1024px) {
    .sante-focus-image {
        padding: 60px 40px 120px 40px;
    }

    .sante-focus-image__container {
        max-width: 60%;
    }

    .sante-focus-image__title {
        font-size: 32px;
    }

    .sante-focus-image__image {
        max-width: 45%;
    }
}

/* Responsive mobile */
@media screen and (max-width: 768px) {
    .sante-focus-image {
        padding: 40px 24px 24px 24px;
    }

    .sante-focus-image__container {
        max-width: 100%;
    }

    .sante-focus-image__title {
        font-size: 28px;
    }

    .sante-focus-image__text {
        font-size: 15px;
    }

    .sante-focus-image__image {
        position: relative;
        max-width: 100%;
        margin-top: 24px;
    }

    .sante-focus-image__watermark--top-right {
        display: none;
    }
}

/* ==========================================================================
   BLOC DIAGNOSTIC FOCUS (Epsytera uniquement)
   Bloc avec fond dégradé bleu, titre, texte et image à droite
   ========================================================================== */
.sante-diagnostic-focus {
    position: relative;
    width: 100%;
    min-height: 400px;
    padding: 96px 220px 170px 64px;
    background: linear-gradient(46deg, var(--sante-epsytera-primary) 0%, var(--sante-epsytera-secondary) 100%);
    border-radius: 26px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Watermarks décoratifs */
.sante-diagnostic-focus__watermark {
    position: absolute;
    opacity: 0.12;
    overflow: hidden;
    pointer-events: none;
}

.sante-diagnostic-focus__watermark--bottom-left {
    width: 157px;
    height: 144px;
    left: 0;
    bottom: 0;
    border-bottom-left-radius: 26px;
}

.sante-diagnostic-focus__watermark--top-right {
    width: 184px;
    height: 187px;
    right: 0;
    top: 0;
    border-top-right-radius: 26px;
}

.sante-diagnostic-focus__watermark-shape {
    position: absolute;
    background: linear-gradient(266deg, white 0%, rgba(0, 33, 73, 0.55) 100%);
    border: 6px solid var(--sante-epsytera-secondary);
}

.sante-diagnostic-focus__watermark-shape--right {
    background: linear-gradient(125deg, white 0%, rgba(0, 33, 73, 0.55) 100%);
}

/* ==========================================================================
   BLOC VIDEO SECTION (Epsytera uniquement)
   ========================================================================== */
.sante-video-section {
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 110px 20px 80px 20px;
    background-color: #EDF6FB !important;
    border-radius: 12px;
    overflow: visible;
    margin-top: 44px;
}

/* Logo Epsytera centre en haut */
.sante-video-section__logo {
    position: absolute;
    top: -44px;
    left: 50%;
    transform: translateX(-50%);
    width: 87px;
    height: 87px;
    padding: 21px;
    box-sizing: border-box;
    background: #CAE4EE;
    border-top-left-radius: 26px;
    border-bottom-right-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.sante-video-section__logo img,
.sante-video-section__logo svg {
    display: block;
    width: 44px;
    height: 43px;
}

/* Watermark haut droite (logo Epsytera stylise, SVG inline) */
.sante-video-section__watermark--top-right {
    position: absolute;
    width: 284px;
    height: 268px;
    right: 0;
    top: 0;
    pointer-events: none;
    line-height: 0;
    overflow: hidden;
    border-top-right-radius: 12px;
}

.sante-video-section__watermark--top-right svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Watermark bas gauche (illustration lineaire, SVG inline) */
.sante-video-section__watermark--bottom-left {
    position: absolute;
    width: 287px;
    height: 321px;
    left: 0;
    bottom: 0;
    pointer-events: none;
    line-height: 0;
    overflow: hidden;
    border-bottom-left-radius: 12px;
}

.sante-video-section__watermark--bottom-left svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Container du contenu */
.sante-video-section__container {
    position: relative;
    z-index: 1;
    max-width: 1463px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
}

.sante-video-section__title {
    text-align: center;
    color: var(--sante-epsytera-primary);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    word-wrap: break-word;
}

/* Conteneur vidéo */
.sante-video-section__video {
    width: 100%;
    max-width: 1459px;
    aspect-ratio: 16 / 9;
    border-radius: 26px;
    overflow: hidden;
    background: #000;
}

.sante-video-section__video .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.sante-video-section__video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Message de consentement cookies */
.sante-video-section__video .youtube-consent-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 26px;
    padding: 20px;
    box-sizing: border-box;
    z-index: 10;
}

.sante-video-section__video .youtube-consent-message .consent-content {
    text-align: center;
    max-width: 400px;
}

.sante-video-section__video .youtube-consent-message .consent-icon {
    font-size: 48px;
    color: var(--sante-epsytera-primary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.sante-video-section__video .youtube-consent-message p {
    font-family: Inter, sans-serif;
    font-size: 16px;
    color: var(--sante-epsytera-primary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.sante-video-section__video .youtube-consent-message p strong {
    font-weight: 700;
}

.sante-video-section__video .youtube-consent-message .consent-button {
    background: var(--sante-epsytera-primary);
    color: white;
    padding: 14px 32px;
    border: 2px solid var(--sante-epsytera-primary);
    border-radius: 60px;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.sante-video-section__video .youtube-consent-message .consent-button:hover {
    background: white;
    color: var(--sante-epsytera-primary);
}

/* Responsive tablette */
@media screen and (max-width: 1024px) {
    .sante-video-section {
        padding: 130px 0 60px 0;
    }

    .sante-video-section__container {
        gap: 48px;
    }

    .sante-video-section__title {
        font-size: 32px;
    }

    .sante-video-section__watermark--top-right {
        width: 200px;
        height: 190px;
    }

}

/* Responsive mobile */
@media screen and (max-width: 768px) {
    .sante-video-section {
        padding: 110px 0 40px 0;
    }

    .sante-video-section__logo {
        width: 70px;
        height: 70px;
        padding: 16px;
    }

    .sante-video-section__logo svg {
        width: 36px;
        height: 35px;
    }

    .sante-video-section__container {
        gap: 32px;
        padding: 0 16px;
    }

    .sante-video-section__title {
        font-size: 26px;
    }

    .sante-video-section__video {
        border-radius: 16px;
    }

    .sante-video-section__watermark--top-right {
        display: none;
    }

    .sante-video-section__watermark--bottom-left {
        width: 150px;
        height: 170px;
    }

    .sante-video-section__video .youtube-consent-message .consent-icon {
        font-size: 36px;
    }

    .sante-video-section__video .youtube-consent-message p {
        font-size: 14px;
    }

    .sante-video-section__video .youtube-consent-message .consent-button {
        padding: 12px 28px;
        font-size: 13px;
    }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
    .sante-explication-focus,
    .sante-bloc-texte,
    .sante-corps-texte {
        break-inside: avoid;
    }

    .sante-button {
        border: 1px solid currentColor !important;
    }
}
