/**
 * Pages solution produit — Zimbra, Nextcloud, Sauvegarde Cloud
 *
 * Mise en page commune aux trois fiches, dont la structure est identique.
 * Reprend la charte : navy en fond de section sombre, bleu en accent,
 * Chillax sur les titres, container 1200px, ruptures a 1024 / 768 / 480.
 *
 * @package ldsolutions
 */

/* =========================================================================
   HERO

   .page-hero n'est defini par aucune feuille commune : chaque page du theme
   en redonne les regles sous son propre prefixe. Sans elles, .page-hero__bg
   reste dans le flux, l'image s'affiche a sa taille reelle et le texte blanc
   se retrouve sur fond blanc. Ces regles reprennent celles des autres pages.
   ========================================================================= */

.page-solution .page-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 200px 2rem 120px;
    overflow: hidden;
}

.page-solution .page-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.page-solution .page-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-solution .page-hero__bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 27, 80, 0.7);
}

/* Conteneur a la largeur des sections (1200px) et contenu cale a gauche :
   le titre demarre ainsi sur la meme colonne que le contenu qui suit. */
.page-solution .page-hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.page-solution .page-hero__title {
    margin: 0 0 1.5rem;
    font-family: var(--lds-font-heading, 'Chillax', Arial, sans-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--lds-white, #ffffff);
}

.page-solution .page-hero__desc {
    margin: 0;
    max-width: 640px;
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* Baseline : seconde ligne du H1, pour que la balise porte autre chose que
   le seul nom du produit. */
.sol-hero__baseline {
    display: block;
    margin-top: 0.75rem;
    font-size: clamp(0.875rem, 1.6vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75);
}

.sol-hero__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.sol-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--lds-white, #ffffff);
    font-size: 0.875rem;
    line-height: 1.3;
}

.sol-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke-width: 2;
}

/* =========================================================================
   CHAPO
   ========================================================================= */

.sol-chapo {
    padding: 4rem 1.5rem 0;
    background: var(--lds-white, #ffffff);
}

.sol-chapo__container {
    max-width: 900px;
    margin: 0 auto;
}

.sol-chapo__text {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--lds-gray, #6B7280);
}

.sol-chapo__text strong {
    color: var(--lds-black, #151E28);
    font-weight: 700;
}

/* =========================================================================
   SECTIONS
   ========================================================================= */

.sol-section {
    padding: 4.5rem 1.5rem;
    background: var(--lds-white, #ffffff);
}

/* Alternance des fonds posee par classe, et non par nth-of-type : l'ordre des
   sections ne doit pas changer la couleur si un bloc est insere plus tard. */
.sol-usages,
.sol-offres {
    background: var(--lds-light, #F8F9FA);
}

.sol-section__container {
    max-width: 1200px;
    margin: 0 auto;
}

.sol-section__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.6rem;
    margin: 0 0 2.5rem;
    font-family: var(--lds-font-heading, 'Chillax', Arial, sans-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--lds-black, #151E28);
}

.sol-section__title span {
    color: var(--lds-blue, #125AF8);
}

/* Taille relative au titre (em, pas rem) : le titre suit un clamp(), un
   numero en taille fixe paraissait minuscule a cote sur grand ecran. */
.sol-section__num {
    font-family: var(--lds-font-heading, 'Chillax', Arial, sans-serif);
    font-size: 1em;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--lds-blue, #125AF8);
}

/* =========================================================================
   01 — SOUVERAINETE
   ========================================================================= */

.sol-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sol-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--lds-black, #151E28);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.sol-checklist__item.is-visible {
    opacity: 1;
    transform: none;
}

.sol-checklist__item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--lds-blue, #125AF8);
    stroke-width: 2.5;
}

.sol-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 2.5rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--lds-platinium, #EBEBEB);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--lds-gray, #6B7280);
}

.sol-note svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--lds-blue, #125AF8);
}

.sol-note strong {
    color: var(--lds-navy, #021B50);
}

/* =========================================================================
   02 — GRILLE D'USAGES

   Meme motif que les listes « Ce que nous operons » de /solutions-expertises :
   grille a filets, numero en italique bleu, icone dans le titre. Pas de boite
   arrondie ni de bordure coloree, pour rester dans la ligne du site.
   ========================================================================= */

.sol-feat-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid rgba(2, 27, 80, 0.12);
}

.sol-feat {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 24px;
    row-gap: 6px;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(2, 27, 80, 0.12);
    align-items: start;
    transition: background 0.25s ease, opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: translateY(12px);
}

.sol-feat.is-visible {
    opacity: 1;
    transform: none;
}

.sol-feat:hover {
    background: rgba(18, 90, 248, 0.04);
}

.sol-feat:nth-child(odd) {
    border-right: 1px solid rgba(2, 27, 80, 0.12);
}

.sol-feat__num {
    grid-row: 1 / span 2;
    align-self: start;
    width: 36px;
    padding-top: 2px;
    font-family: var(--lds-font-heading, 'Chillax', Arial, sans-serif);
    font-weight: 600;
    font-style: italic;
    font-size: 1.0625rem;
    letter-spacing: -0.02em;
    text-align: right;
    color: var(--lds-blue, #125AF8);
}

.sol-feat__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--lds-font-heading, 'Chillax', Arial, sans-serif);
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: -0.005em;
    color: var(--lds-navy, #021B50);
}

.sol-feat__title svg,
.sol-feat__title i[data-lucide] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-width: 1.6;
    stroke: var(--lds-navy, #021B50);
}

.sol-feat__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(21, 30, 40, 0.68);
}

/* =========================================================================
   03 — TABLEAU COMPARATIF
   ========================================================================= */

.sol-table__wrap {
    overflow-x: auto;
    border-radius: 10px;
}

.sol-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background: var(--lds-white, #ffffff);
    font-size: 0.9375rem;
}

.sol-table thead th {
    padding: 1rem 1.25rem;
    background: var(--lds-navy, #021B50);
    color: var(--lds-white, #ffffff);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    vertical-align: middle;
}

.sol-table thead th.sol-table__highlight {
    background: var(--lds-blue, #125AF8);
}

.sol-table tbody th,
.sol-table tbody td {
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid var(--lds-platinium, #EBEBEB);
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
}

.sol-table tbody th {
    font-weight: 700;
    color: var(--lds-navy, #021B50);
}

.sol-table tbody td {
    color: var(--lds-gray, #6B7280);
}

.sol-table tbody td.sol-table__highlight {
    background: rgba(18, 90, 248, 0.06);
    font-weight: 600;
    color: var(--lds-navy, #021B50);
}

.sol-table tbody tr:last-child th,
.sol-table tbody tr:last-child td {
    border-bottom: none;
}

/* =========================================================================
   04 — OFFRES

   Meme motif que les cartes « nos preconisations » de /solutions-expertises :
   en-tete avec icone et index, corps avec liste et pastille.
   ========================================================================= */

.sol-offres__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.sol-offre {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    background: linear-gradient(145deg, var(--lds-white, #ffffff) 0%, #F8FAFF 50%, var(--lds-white, #ffffff) 100%);
    border-radius: var(--lds-radius-lg, 24px);
    border: 1.5px solid transparent;
    background-clip: padding-box;
    box-shadow:
        0 4px 20px rgba(2, 27, 80, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease,
                transform 0.35s var(--lds-ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

.sol-offre.is-visible {
    opacity: 1;
    transform: none;
}

/* Contour degrade en masque : meme finition que .se-solution */
.sol-offre::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--lds-radius-lg, 24px);
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(2, 27, 80, 0.15), rgba(18, 90, 248, 0.3), rgba(2, 27, 80, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
}

/* Trait bleu accent en haut a gauche */
.sol-offre::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 4px;
    height: 60px;
    background: linear-gradient(180deg, var(--lds-blue, #125AF8) 0%, var(--lds-navy, #021B50) 100%);
    border-radius: 0 4px 4px 0;
    z-index: 4;
    pointer-events: none;
}

.sol-offre:hover {
    transform: translateY(-4px);
    border-color: rgba(18, 90, 248, 0.4);
    box-shadow:
        0 8px 32px rgba(2, 27, 80, 0.12),
        0 0 0 1px rgba(18, 90, 248, 0.1);
}

.sol-offre__head {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--lds-surface-cool, #F8FAFF) 0%, var(--lds-white, #ffffff) 100%);
    border-bottom: 1px solid rgba(2, 27, 80, 0.08);
}

.sol-offre__logo-card {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: var(--lds-navy, #021B50);
}

.sol-offre__logo-card svg,
.sol-offre__logo-card i[data-lucide] {
    width: 44px;
    height: 44px;
    stroke-width: 1.4;
}

.sol-offre__index {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(2, 27, 80, 0.5);
}

.sol-offre__name {
    margin: 0 0 4px;
    font-family: var(--lds-font-heading, 'Chillax', Arial, sans-serif);
    font-weight: 700;
    font-size: 1.375rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--lds-navy, #021B50);
}

.sol-offre__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 28px 28px;
}

.sol-offre__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sol-offre__list li {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: rgba(21, 30, 40, 0.72);
}

.sol-offre__list li:last-child {
    margin-bottom: 0;
}

.sol-offre__list li::before {
    content: '';
    position: absolute;
    top: 0.65rem;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lds-blue, #125AF8);
}

.sol-offre__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
}

/* .tag n'est declare que dans solutions-expertises.css, qui n'est pas charge
   sur ces pages : on le redonne ici, aux memes valeurs. */
.page-solution .tag {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--lds-navy, #021B50);
    background: rgba(2, 27, 80, 0.06);
    border: 1px solid rgba(2, 27, 80, 0.12);
    border-radius: 100px;
}

/* =========================================================================
   05 — METHODE
   ========================================================================= */

.sol-etapes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sol-etape {
    padding-top: 1.25rem;
    border-top: 2px solid var(--lds-platinium, #EBEBEB);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.sol-etape.is-visible {
    opacity: 1;
    transform: none;
}

.sol-etape__num {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--lds-blue, #125AF8);
}

.sol-etape__title {
    margin: 0 0 0.5rem;
    font-family: var(--lds-font-heading, 'Chillax', Arial, sans-serif);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--lds-black, #151E28);
}

.sol-etape__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--lds-gray, #6B7280);
}

/* =========================================================================
   AUTRES SOLUTIONS — maillage croise
   ========================================================================= */

.sol-autres__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.sol-autre {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.75rem 2rem;
    border: 1px solid rgba(2, 27, 80, 0.12);
    border-radius: var(--lds-radius-lg, 24px);
    background: var(--lds-white, #ffffff);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Meme trait bleu accent que les cartes de deploiement */
.sol-autre::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 4px;
    height: 48px;
    background: linear-gradient(180deg, var(--lds-blue, #125AF8) 0%, var(--lds-navy, #021B50) 100%);
    border-radius: 0 4px 4px 0;
}

.sol-autre:hover,
.sol-autre:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(18, 90, 248, 0.4);
    box-shadow: 0 8px 32px rgba(2, 27, 80, 0.12);
}

/* Sans libelle de lien, le survol doit rester lisible : le nom passe au bleu */
.sol-autre:hover .sol-autre__name,
.sol-autre:focus-visible .sol-autre__name {
    color: var(--lds-blue, #125AF8);
}

.sol-autre__name {
    transition: color 0.25s ease;
}

.sol-autre__name {
    font-family: var(--lds-font-heading, 'Chillax', Arial, sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--lds-navy, #021B50);
}

.sol-autre__baseline {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(21, 30, 40, 0.68);
}


/* =========================================================================
   BANDEAU CHIFFRES CLES

   Le composant est dimensionne pour la page d'accueil, ou il chevauche
   volontairement la section precedente (margin-top negatif) et affiche des
   chiffres tres grands. Sur ces pages il suit une section classique : on
   annule le chevauchement, on aere le haut et on reduit l'echelle.
   Surcharge locale, pour ne pas toucher a l'accueil.
   ========================================================================= */

.page-solution .lds-chiffres {
    margin-top: 0;
    padding: 4.5rem 2rem;
    background: var(--lds-light, #F8F9FA);
    border-top: 1px solid rgba(2, 27, 80, 0.08);
}

.page-solution .lds-chiffres__grid {
    gap: 3.5rem 5rem;
}

.page-solution .lds-chiffres__number {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.page-solution .lds-chiffres__label {
    font-size: 0.8125rem;
}

/* =========================================================================
   APPEL A L'ACTION
   ========================================================================= */

.sol-cta {
    padding: 3.5rem 1.5rem;
    background: var(--lds-navy, #021B50);
}

.sol-cta__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sol-cta__content {
    flex: 1 1 420px;
}

.sol-cta__title {
    margin: 0 0 0.75rem;
    font-family: var(--lds-font-heading, 'Chillax', Arial, sans-serif);
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--lds-white, #ffffff);
}

.sol-cta__text {
    margin: 0;
    max-width: 52ch;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.8);
}

.sol-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.sol-cta__btn svg {
    width: 18px;
    height: 18px;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 1024px) {
    .page-solution .page-hero {
        padding: 160px 1.5rem 100px;
    }

    .sol-etapes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-solution .page-hero {
        min-height: 50vh;
        padding: 140px 1rem 80px;
    }

    .page-solution .page-hero__desc {
        font-size: 1rem;
    }

    .sol-section {
        padding: 3rem 1.25rem;
    }

    .sol-chapo {
        padding: 3rem 1.25rem 0;
    }

    .sol-chapo__text {
        font-size: 1.0625rem;
    }

    .sol-checklist {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Une seule colonne : le filet vertical entre colonnes n'a plus lieu d'etre */
    .sol-feat-list {
        grid-template-columns: 1fr;
    }

    .sol-feat:nth-child(odd) {
        border-right: none;
    }

    .sol-feat {
        padding: 20px 0;
    }

    .sol-offres__grid,
    .sol-autres__grid {
        grid-template-columns: 1fr;
    }

    .page-solution .lds-chiffres {
        padding: 3rem 1.25rem;
    }

    .page-solution .lds-chiffres__grid {
        gap: 2.25rem 3rem;
    }

    .sol-cta {
        padding: 3rem 1.25rem;
    }

    .sol-cta__container {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .page-solution .page-hero {
        min-height: 45vh;
        padding: 120px 1rem 60px;
    }

    .page-solution .page-hero__title {
        font-size: 1.5rem;
    }

    .page-solution .page-hero__desc {
        font-size: 0.9375rem;
    }

    .sol-hero__baseline {
        letter-spacing: 0.1em;
    }

    .sol-hero__badges {
        gap: 0.5rem;
    }

    .sol-badge {
        padding: 0.45rem 0.85rem;
        font-size: 0.8125rem;
    }

    .sol-etapes {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sol-feat__num {
        width: 28px;
    }

    .sol-offre__head {
        gap: 14px;
        padding: 18px 20px;
    }

    .sol-offre__logo-card {
        width: 60px;
        height: 60px;
    }

    .sol-offre__logo-card svg,
    .sol-offre__logo-card i[data-lucide] {
        width: 32px;
        height: 32px;
    }

    .sol-offre__name {
        font-size: 1.125rem;
    }

    .sol-offre__body {
        padding: 18px 20px 22px;
    }

    .sol-cta__btn {
        width: 100%;
        justify-content: center;
    }
}

/* Respect de la preference systeme : pas d'animation d'apparition */
@media (prefers-reduced-motion: reduce) {
    .sol-checklist__item,
    .sol-feat,
    .sol-offre,
    .sol-etape {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
