/*
|--------------------------------------------------------------------------
| Accueil SVsansT
|--------------------------------------------------------------------------
*/

.home-main {
    background: #fff;
    color: #0f172a;
}

.page-hero {
    min-height: 360px;
}

.page-hero .hero-content {
    padding: 50px 20px 135px;
}

.home-hero-actions {
    display: flex;
    justify-content: center;
    gap: .85rem;
    margin-top: -105px;
    padding: 0 1rem 4.25rem;
    position: relative;
    z-index: 3;
}

.button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: .98rem;
    font-weight: 700;
    justify-content: center;
    min-height: 46px;
    padding: .78rem 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .25);
    outline-offset: 3px;
}

.button-primary {
    background: #2864ef;
    box-shadow: 0 10px 25px rgba(37, 99, 235, .18);
    color: #fff;
}

.button-primary:hover {
    background: #1f57db;
}

.button-secondary {
    background: #fff;
    border-color: #b9c7da;
    color: #17315b;
}

.button-secondary:hover {
    border-color: #2864ef;
    color: #1f57db;
}

.button-block {
    width: 100%;
}

/*
|--------------------------------------------------------------------------
| Disponible maintenant
|--------------------------------------------------------------------------
*/

.home-availability {
    align-items: center;
    background: #fff;
    border: 1px solid #d7e1ee;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
    display: grid;
    gap: 1rem;
    grid-template-columns: 190px 1fr;
    margin: 2rem auto 3.5rem;
    max-width: 1040px;
    padding: .95rem 1rem;
}

.home-availability-intro {
    padding: .15rem .25rem;
}

.home-availability-eyebrow {
    color: #2563eb;
    display: block;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .055em;
    margin-bottom: .2rem;
    text-transform: uppercase;
}

.home-availability-intro strong {
    color: #0f172a;
    display: block;
    font-size: 1rem;
    line-height: 1.3;
}

.home-statistics {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-width: 0;
}

.home-statistic {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    color: #0f172a;
    display: flex;
    gap: .65rem;
    min-height: 72px;
    padding: .72rem .75rem;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.home-statistic:hover {
    background: #fff;
    border-color: #bfdbfe;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .11);
    transform: translateY(-2px);
}

.home-statistic-icon {
    align-items: center;
    background: #eaf2ff;
    border-radius: 12px;
    color: #2563eb;
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.home-statistic-icon svg {
    display: block;
    height: 20px;
    width: 20px;
}

.home-statistic-body {
    min-width: 0;
}

.home-statistic-body strong {
    color: #2563eb;
    display: block;
    font-size: 1.35rem;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1;
}

.home-statistic-body small {
    color: #475569;
    display: block;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: .2rem;
}

/*
|--------------------------------------------------------------------------
| Sections
|--------------------------------------------------------------------------
*/

.home-section {
    padding: 3.25rem 1rem 4rem;
}

.home-section-white {
    background: #fff;
}

.home-section-activities {
    background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 50%, #fff 100%);
}

.home-section-laboratory {
    background: linear-gradient(180deg, #f3edff 0%, #faf7ff 54%, #fff 100%);
}

.home-section-container {
    margin: 0 auto;
    max-width: 1120px;
}

.home-section-header {
    margin: 0 auto 2.4rem;
    max-width: 760px;
    text-align: center;
}

.home-section-header h2 {
    color: #0f172a;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    line-height: 1.15;
    margin: 0;
}

.home-section-header p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 1rem auto 0;
}

.home-section-action {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/*
|--------------------------------------------------------------------------
| Cartes de contenus
|--------------------------------------------------------------------------
*/

.home-card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-content-card {
    background: #fff;
    border: 1px solid #dce4ef;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
    display: flex;
    flex-direction: column;
    height: 300px;
    min-height: 300px;
    max-height: 300px;
    overflow: hidden;
    padding: 1.45rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-content-card:hover {
    border-color: #bfd1eb;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .11);
    transform: translateY(-3px);
}

.home-card-tags {
    align-items: center;
    display: flex;
    gap: .55rem;
    justify-content: space-between;
    margin-bottom: 1.1rem;
    min-height: 28px;
}

.home-tag {
    border-radius: 999px;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1;
    padding: .45rem .7rem;
}

.home-tag-level {
    background: #dcfce7;
    color: #15803d;
}

.home-tag-neutral {
    background: #f1f5f9;
    border: 1px solid #dce4ef;
    color: #475569;
}

.home-tag-lab {
    background: #ede9fe;
    color: #6d28d9;
}

.subject-biology {
    background: #dcfce7;
    color: #166534;
}

.subject-chemistry {
    background: #cffafe;
    color: #0e7490;
}

.subject-physics {
    background: #dbeafe;
    color: #1d4ed8;
}

.subject-geology {
    background: #f5eadc;
    color: #8b5e34;
}

.subject-mathematics {
    background: #ede9fe;
    color: #6d28d9;
}

.subject-default {
    background: #eef2f7;
    color: #475569;
}

.home-content-card h3 {
    color: #0f172a;
    display: -webkit-box;
    font-size: 1.3rem;
    line-height: 1.3;
    margin: 0;
    min-height: 3.38rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-content-card p {
    color: #475569;
    display: -webkit-box;
    font-size: 1rem;
    line-height: 1.5;
    margin: .65rem 0 1rem;
    min-height: 4.5rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Même gabarit que les cartes de contenu : les visuels publicitaires restent calés sur 300 px. */
.home-card-grid > .sv-ad-card {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
    overflow: hidden;
}

.home-content-card .button {
    margin-top: auto;
}

.home-lab-card {
    border-top: 4px solid #7c3aed;
}

/*
|--------------------------------------------------------------------------
| Tarifs
|--------------------------------------------------------------------------
*/

.home-pricing-section {
    background: #f7f8fa;
    padding-bottom: 4.5rem;
    padding-top: 4.25rem;
}

.home-pricing-container {
    max-width: 1200px;
}

.home-launch-offer {
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    color: #9a3412;
    font-size: .94rem;
    line-height: 1.55;
    margin: 0 0 1.5rem;
    padding: .9rem 1rem;
}

.home-launch-offer strong {
    color: #7c2d12;
}

.home-launch-offer code {
    background: #ffedd5;
    border-radius: 6px;
    color: #9a3412;
    font-family: inherit;
    font-weight: 800;
    padding: .16rem .38rem;
}

.home-pricing-grid {
    align-items: stretch;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-plan-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
    display: flex;
    flex-direction: column;
    min-height: 485px;
    overflow: hidden;
    padding: 1.55rem;
    position: relative;
    text-align: center;
}

.home-plan-card-launch {
    border-color: #fecaca;
}

.home-plan-ribbon {
    background: linear-gradient(180deg, #ef4444, #dc2626);
    box-shadow: 0 10px 24px rgba(220, 38, 38, .22);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    padding: 8px 54px;
    pointer-events: none;
    position: absolute;
    right: -48px;
    top: 18px;
    transform: rotate(45deg);
}

.home-plan-badge {
    align-self: flex-start;
    background: #dbeafe;
    border-radius: 999px;
    color: #1d4ed8;
    font-size: .76rem;
    font-weight: 800;
    padding: .35rem .7rem;
}

.home-plan-card h3 {
    color: #0f172a;
    font-size: 1.4rem;
    margin: 1rem 0 .9rem;
}

.home-plan-price {
    align-items: baseline;
    display: flex;
    justify-content: center;
    margin: .2rem 0;
}

.home-plan-price strong {
    color: #2563eb;
    font-size: 2.25rem;
    letter-spacing: -.04em;
    line-height: 1;
}

.home-plan-price span {
    color: #64748b;
    font-size: .92rem;
    font-weight: 600;
    margin-left: .35rem;
}

.home-plan-yearly {
    color: #64748b;
    font-size: .9rem;
    margin: .7rem 0 1.1rem;
}

.home-plan-features {
    list-style: none;
    margin: .7rem 0 1.2rem;
    padding: 0;
    text-align: left;
}

.home-plan-features li {
    color: #475569;
    font-size: .94rem;
    line-height: 1.5;
    padding: .52rem 0 .52rem 1.45rem;
    position: relative;
}

.home-plan-features li::before {
    color: #10b981;
    content: "✓";
    font-weight: 900;
    left: 0;
    position: absolute;
}

.home-plan-action {
    margin-top: auto;
}

/*
|--------------------------------------------------------------------------
| Soutien et newsletter
|--------------------------------------------------------------------------
*/

.home-support-section {
    background: #fff;
    padding: 3rem 1rem;
}

.home-support-card {
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
    margin: 0 auto;
    max-width: 920px;
    padding: 1.9rem;
    text-align: center;
}

.home-support-card h2,
.home-newsletter-card h2 {
    color: #0f172a;
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    margin: 0;
}

.home-support-card > p,
.home-newsletter-card > p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    margin: .65rem auto 1.25rem;
}

.home-support-card ul {
    display: grid;
    gap: .7rem;
    list-style: none;
    margin: 0 auto 1.35rem;
    max-width: 760px;
    padding: 0;
}

.home-support-card li {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    color: #334155;
    font-size: .98rem;
    font-weight: 500;
    padding: .95rem 1rem;
}

.home-support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    justify-content: center;
}

.home-newsletter-section {
    background: #eaf3ff;
    padding: 3.5rem 1rem;
}

.home-newsletter-card {
    background: #fff;
    border: 1px solid #d5e0ef;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(32, 61, 107, .1);
    margin: 0 auto;
    max-width: 720px;
    padding: 2rem;
    text-align: center;
}

.home-newsletter-field {
    display: flex;
    gap: .65rem;
    justify-content: center;
}

.home-newsletter-field input {
    background: #fff;
    border: 1px solid #bfcadb;
    border-radius: 999px;
    color: #172033;
    font: inherit;
    min-height: 46px;
    padding: 0 1.1rem;
    width: min(100%, 340px);
}

.home-newsletter-field input:focus {
    border-color: #2864ef;
    box-shadow: 0 0 0 3px rgba(40, 100, 239, .14);
    outline: none;
}

.sr-only {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1024px) {
    .home-availability {
        grid-template-columns: 1fr;
    }

    .home-statistics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .home-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .page-hero {
        min-height: 430px;
    }

    .page-hero .hero-content {
        padding: 44px 20px 190px;
    }

    .home-hero-actions {
        flex-direction: column;
        margin-top: -175px;
        padding: 0 1rem 3.2rem;
    }

    .home-hero-actions .button {
        width: 100%;
    }

    .home-availability {
        border-left: 0;
        border-radius: 0;
        border-right: 0;
        margin-bottom: 2.5rem;
    }

    .home-statistics {
        display: flex;
        margin-right: -1rem;
        overflow-x: auto;
        padding-bottom: .6rem;
        scroll-snap-type: x mandatory;
    }

    .home-statistic {
        flex: 0 0 150px;
        scroll-snap-align: start;
    }

    .home-pricing-grid {
        display: flex;
        margin-left: -1rem;
        margin-right: -1rem;
        overflow-x: auto;
        padding: 0 1rem 1rem;
        scroll-snap-type: x mandatory;
    }

    .home-plan-card {
        flex: 0 0 min(84vw, 330px);
        scroll-snap-align: center;
    }

    .home-support-actions,
    .home-newsletter-field {
        flex-direction: column;
    }

    .home-support-actions .button,
    .home-newsletter-field input,
    .home-newsletter-field .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .home-content-card,
    .home-statistic {
        transition: none;
    }

    .button:hover,
    .home-content-card:hover,
    .home-statistic:hover {
        transform: none;
    }
}


/* Newsletter fonctionnelle */
.home-newsletter-consent{align-items:flex-start;color:#475569;display:flex;font-size:.88rem;gap:.6rem;line-height:1.45;margin:1rem auto 0;max-width:560px;text-align:left}.home-newsletter-consent input{accent-color:#2864ef;flex:0 0 auto;height:18px;margin-top:.08rem;width:18px}.home-newsletter-unsubscribe{color:#315fba;display:inline-block;font-size:.86rem;font-weight:650;margin-top:.8rem;text-decoration:underline}.home-newsletter-card .form-alert{margin:1rem auto;max-width:560px;text-align:left}.newsletter-public-page{padding-bottom:4rem;padding-top:4rem}.newsletter-public-card{margin:0 auto;max-width:680px;padding:2rem}.newsletter-public-card h1{margin-top:0}.newsletter-public-form{margin-top:1.5rem}.newsletter-public-form .btn{margin-top:1rem}.hp-field{height:0!important;left:-10000px!important;overflow:hidden!important;position:absolute!important;width:0!important}


/* ==========================================================================\n   Responsive accueil — carrousels et tarifs mobiles\n   ========================================================================== */
.home-statistics-dots{display:none}

@media (max-width: 768px){
    /* Les trois cartes restent sur une seule ligne et se parcourent au doigt. */
    .home-mobile-carousel{
        display:flex !important;
        gap:1rem;
        grid-template-columns:none !important;
        margin-left:-1rem;
        margin-right:-1rem;
        overflow-x:auto;
        overflow-y:hidden;
        padding:0 1rem 1rem;
        scroll-behavior:smooth;
        scroll-padding-inline:1rem;
        scroll-snap-type:x mandatory;
        scrollbar-width:none;
        -webkit-overflow-scrolling:touch;
    }
    .home-mobile-carousel::-webkit-scrollbar{display:none}
    .home-mobile-carousel > .home-content-card{
        flex:0 0 86%;
        min-width:86%;
        scroll-snap-align:start;
        scroll-snap-stop:always;
    }

    /* Disponible maintenant : même présentation que l'ancien accueil. */
    .home-availability{
        border-radius:16px;
        margin-left:1rem;
        margin-right:1rem;
        overflow:hidden;
        padding:.85rem;
    }
    .home-availability-intro{
        padding:0 .35rem;
        text-align:center;
    }
    .home-availability-eyebrow{font-size:.68rem}
    .home-availability-intro strong{font-size:.95rem}
    .home-statistics{
        display:flex;
        gap:.7rem;
        margin:0;
        overflow-x:auto;
        overflow-y:hidden;
        padding:.15rem .15rem .2rem;
        scroll-behavior:smooth;
        scroll-snap-type:x mandatory;
        scrollbar-width:none;
        -webkit-overflow-scrolling:touch;
    }
    .home-statistics::-webkit-scrollbar{display:none}
    .home-statistic{
        flex:0 0 76%;
        min-height:78px;
        padding:.8rem .85rem;
        scroll-snap-align:center;
        scroll-snap-stop:always;
    }
    .home-statistic-body strong{font-size:1.5rem}
    .home-statistic-body small{font-size:.78rem;white-space:nowrap}
    .home-statistics-dots{
        display:flex;
        gap:.35rem;
        justify-content:center;
        margin-top:.65rem;
    }
    .home-statistics-dot{
        background:#cbd5e1;
        border-radius:999px;
        height:6px;
        transition:width .18s ease,background-color .18s ease;
        width:6px;
    }
    .home-statistics-dot.is-active{
        background:#2563eb;
        width:18px;
    }

    /* Tarifs : cartes compactes empilées, sans carrousel horizontal. */
    .home-pricing-grid{
        display:grid !important;
        gap:.9rem;
        grid-template-columns:1fr !important;
        margin:0 !important;
        overflow:visible !important;
        padding:0 !important;
    }
    .home-plan-card{
        display:grid;
        grid-template-columns:minmax(0,1fr) auto;
        grid-template-rows:auto auto auto auto;
        min-height:0;
        overflow:hidden;
        padding:1rem;
        text-align:left;
        width:100%;
    }
    .home-plan-card h3{
        align-self:end;
        font-size:1.15rem;
        grid-column:1;
        grid-row:1;
        margin:0;
        padding-right:.5rem;
    }
    .home-plan-badge{
        align-self:start;
        grid-column:2;
        grid-row:1;
        justify-self:end;
        margin:0 2.7rem 0 0;
    }
    .home-plan-price{
        grid-column:1;
        grid-row:2;
        justify-content:flex-start;
        margin:.25rem 0 0;
    }
    .home-plan-price strong{font-size:1.55rem}
    .home-plan-price span{font-size:.9rem}
    .home-plan-yearly{
        grid-column:1 / -1;
        grid-row:3;
        margin:.15rem 0 .7rem;
    }
    .home-plan-features{
        grid-column:1 / -1;
        grid-row:4;
        margin:.1rem 0 .9rem;
    }
    .home-plan-features li{
        font-size:.9rem;
        padding:.35rem 0 .35rem 1.35rem;
    }
    .home-plan-action{
        grid-column:1 / -1;
        grid-row:5;
        margin-top:0;
    }
    .home-plan-action .button{min-height:44px}
    .home-plan-ribbon{
        font-size:.72rem;
        padding:7px 50px;
        right:-49px;
        top:14px;
    }
}

@media (max-width: 420px){
    .home-mobile-carousel > .home-content-card{flex-basis:88%;min-width:88%}
    .home-statistic{flex-basis:84%}
}

@media (max-width: 680px) {
    .home-availability {
        margin-top: 1.5rem;
    }
}
