/* ==========================================================================
   Page "Qui sommes-nous ?" (page-qui-sommes-nous.php)
   Refonte éditoriale (claude-design-reference/Redesign qui sommes nous).
   Chargé UNIQUEMENT sur cette page (voir universim_enqueue_qui_sommes_nous_assets
   dans functions.php). Système de révélation au scroll et animations
   entièrement dédiés (Assets/JS/qui-sommes-nous.js) — ne dépend plus du
   système partagé de l'accueil (.reveal/.reveal-group + home-reveal.js).
   ========================================================================== */

.qsn-page {
    background: #000;
    color: #fff;
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    position: relative;
}

.qsn-page a {
    text-decoration: none;
}

.qsn-page [data-reveal] {
    opacity: 0;
    will-change: opacity, transform;
}

.qsn-page [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.qsn-accent {
    color: var(--universim-gold);
}

.qsn-accent-link {
    color: var(--universim-gold);
    font-weight: 600;
    transition: color 0.3s ease;
}

.qsn-accent-link:hover,
.qsn-accent-link:focus-visible {
    color: #fff;
}

/* Retour à la ligne forcé à un point précis (intro du hero, titre
   "Engagements et valeurs") : actif seulement à partir de la largeur où
   un vrai confort de lecture desktop est possible — sur tablette/mobile,
   le texte se réorganise naturellement (voir media query mobile). */
.qsn-break {
    display: none;
}

@media (min-width: 769px) {
    .qsn-break {
        display: inline;
    }
}

/* Les noms de marque ("Universim Télécom", "Global Investment") ne
   doivent jamais être coupés en fin de ligne, à aucune largeur : le
   navigateur peut renvoyer tout le bloc à la ligne suivante, mais jamais
   le scinder en interne. */
.qsn-nobreak {
    white-space: nowrap;
}

/* --------------------------------------------------------------------
   HERO — très épuré, la première ligne dorée naît ici
   -------------------------------------------------------------------- */
.qsn-hero {
    position: relative;
    padding: clamp(60px, 12vh, 150px) clamp(20px, 4vw, 64px) 0;
    overflow: hidden;
}

.qsn-hero__inner {
    max-width: 1680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vh, 36px);
}

.qsn-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
}

.qsn-hero__eyebrow-line {
    width: 26px;
    height: 1px;
    background: var(--universim-gold);
}

.qsn-hero__eyebrow span:last-child {
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.qsn-hero__title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 200;
    font-size: clamp(44px, 8vw, 140px);
    line-height: 0.92;
    letter-spacing: -0.045em;
    max-width: 18ch;
}

.qsn-hero__text {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 200;
    font-size: clamp(17px, 1.6vw, 25px);
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.7);
    max-width: 70ch;
}

/* point de germination : ligne + point respirant, deviendra visuellement
   la racine de l'arbre juste en dessous (section suivante) */
.qsn-hero__seed {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: clamp(40px, 7vh, 90px);
}

.qsn-hero__seed-line {
    width: 1px;
    height: clamp(70px, 14vh, 150px);
    background: linear-gradient(180deg, transparent, rgba(245, 179, 1, 0.55));
}

.qsn-hero__seed-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--universim-gold);
    animation: qsn-breathe 4.5s ease-in-out infinite;
}

@keyframes qsn-breathe {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.35); }
}

/* --------------------------------------------------------------------
   UNIVERSIM — composition éditoriale, grande typographie
   -------------------------------------------------------------------- */
.qsn-apropos {
    padding: clamp(56px, 9vh, 130px) clamp(20px, 4vw, 64px);
}

.qsn-apropos__inner {
    max-width: 1680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
    gap: clamp(28px, 5vw, 96px);
    align-items: start;
}

.qsn-apropos__col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2.4vh, 26px);
}

.qsn-apropos__eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--universim-gold);
}

.qsn-apropos__title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 200;
    font-size: clamp(32px, 4.4vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    max-width: 20ch;
}

.qsn-apropos__text {
    margin: 0;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.66);
    max-width: 60ch;
    text-wrap: pretty;
}

.qsn-apropos__facts {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(24px, 4vw, 64px);
    padding-top: clamp(18px, 2.6vh, 28px);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.qsn-apropos__fact-value {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(22px, 2.2vw, 34px);
    font-weight: 300;
    color: var(--universim-gold);
    line-height: 1;
}

.qsn-apropos__fact-label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 7px;
}

/* --------------------------------------------------------------------
   L'ARBRE — section signature. Image statique, fixe, sans animation ni
   canvas superposé (voir la note dans philosophie.php).
   -------------------------------------------------------------------- */
.qsn-philo {
    padding: clamp(50px, 8vh, 110px) 0 clamp(56px, 9vh, 120px);
}

.qsn-philo__header {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 64px);
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.2vh, 26px);
}

.qsn-philo__eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--universim-gold);
}

.qsn-philo__title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 200;
    font-size: clamp(34px, 5vw, 84px);
    line-height: 1;
    letter-spacing: -0.04em;
    max-width: 24ch;
}

.qsn-philo__text {
    margin: 0;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.62);
    max-width: 50%;
}

.qsn-philo__tree {
    position: relative;
    width: 100%;
    max-width: 1680px;
    margin: clamp(10px, 2vh, 26px) auto 0;
    aspect-ratio: 1536 / 1024;
}

.qsn-philo__tree img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qsn-philo__concepts {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 64px);
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 54px);
    justify-content: center;
}

.qsn-philo__concept {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qsn-philo__concept-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--universim-gold);
    flex: 0 0 auto;
}

.qsn-philo__concept span:last-child {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------
   NOS SERVICES — ramifications vers la gamme (lignes, comme "le reste
   de la gamme" sur les pages produit)
   -------------------------------------------------------------------- */
.qsn-services {
    padding: clamp(60px, 10vh, 140px) clamp(20px, 4vw, 64px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.qsn-services__inner {
    max-width: 1680px;
    margin: 0 auto;
}

.qsn-services__header {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.2vh, 26px);
    margin-bottom: clamp(34px, 5vh, 64px);
}

.qsn-services__eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--universim-gold);
}

.qsn-services__title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 200;
    font-size: clamp(32px, 4.6vw, 76px);
    line-height: 1;
    letter-spacing: -0.035em;
}

.qsn-services__text {
    margin: 0;
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.62);
    max-width: 95ch;
}

.qsn-services__list {
    display: flex;
    flex-direction: column;
}

.qsn-services__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(160px, 45%), 1fr));
    align-items: center;
    gap: clamp(14px, 2.4vw, 40px);
    padding: clamp(22px, 3.2vh, 36px) clamp(6px, 1.4vw, 20px);
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    color: #fff;
    transition: background 0.45s ease;
    transform: translateX(0);
}

.qsn-services__row:hover {
    background: rgba(245, 179, 1, 0.05);
    color: #fff;
}

@media (hover: hover) and (pointer: fine) {
    .qsn-services__row {
        transition: background 0.45s ease, transform 0.4s ease;
    }

    .qsn-services__row:hover {
        transform: translateX(10px);
    }
}

.qsn-services__row-name {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.6vw, 22px);
}

.qsn-services__row-dash {
    flex: 0 0 auto;
    width: 26px;
    height: 1px;
    background: rgba(245, 179, 1, 0.6);
}

.qsn-services__row-name span:last-child {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(24px, 2.7vw, 40px);
    font-weight: 300;
    letter-spacing: -0.02em;
}

.qsn-services__row-tag {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    text-align: left;
}

.qsn-services__row-specs {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    text-align: left;
}

.qsn-services__row-price {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(19px, 1.8vw, 27px);
    font-weight: 400;
    color: var(--universim-gold);
    text-align: right;
}

/* --------------------------------------------------------------------
   ENGAGEMENTS ET VALEURS — nœuds issus du réseau
   -------------------------------------------------------------------- */
.qsn-valeurs {
    padding: clamp(60px, 10vh, 145px) clamp(20px, 4vw, 64px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.qsn-valeurs__inner {
    max-width: 1680px;
    margin: 0 auto;
}

.qsn-valeurs__header {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.2vh, 26px);
    margin-bottom: clamp(40px, 6vh, 80px);
}

.qsn-valeurs__eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--universim-gold);
}

.qsn-valeurs__title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 200;
    font-size: clamp(32px, 4.6vw, 76px);
    line-height: 1;
    letter-spacing: -0.035em;
}

.qsn-valeurs__text {
    margin: 0;
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.62);
    max-width: 50%;
    text-wrap: pretty;
}

.qsn-valeurs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(32px, 4vw, 72px);
}

.qsn-valeur {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2.2vh, 24px);
}

.qsn-valeur__scene {
    position: relative;
    height: clamp(96px, 11vh, 130px);
}

.qsn-valeur__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    -webkit-mask-image: radial-gradient(ellipse 92% 96% at 30% 50%, #000 54%, transparent 100%);
    mask-image: radial-gradient(ellipse 92% 96% at 30% 50%, #000 54%, transparent 100%);
}

.qsn-valeur__title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(22px, 2.2vw, 32px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.qsn-valeur__text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.52);
    max-width: 36ch;
}

/* --------------------------------------------------------------------
   GLOBAL INVESTMENT — bande institutionnelle sobre, fond noir uni (sans
   carte/cadre autour du logo, qui repose directement dessus)
   -------------------------------------------------------------------- */
.qsn-gi {
    padding: clamp(56px, 9vh, 130px) clamp(20px, 4vw, 64px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, #000, #040404);
}

.qsn-gi__inner {
    max-width: 1680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(28px, 5vw, 90px);
    align-items: center;
}

.qsn-gi__col {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vh, 22px);
    min-width: 0;
}

.qsn-gi__col--logo {
    align-items: flex-start;
}

.qsn-gi__eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.qsn-gi__title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 200;
    font-size: clamp(26px, 3vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 36ch;
}

.qsn-gi__text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
    max-width: 62ch;
    text-wrap: pretty;
}

/* Le logo (fond transparent) repose directement sur le fond de la
   section — jamais de background/border/box-shadow ici. Le nom "Global
   Investment" étant déjà intégré graphiquement au logo, aucun mot-symbole
   texte ne l'accompagne plus. Agrandi fortement pour rester lisible et
   bien visible dans la composition ; le ratio est préservé nativement
   par object-fit:contain (largeur = hauteur ici ne déforme jamais un
   logo carré/rond, ils bornent juste la boîte dans laquelle il se cadre). */
.qsn-gi__logo {
    display: block;
    width: clamp(140px, 14vw, 220px);
    height: clamp(140px, 14vw, 220px);
    object-fit: contain;
    background: transparent;
}

/* --------------------------------------------------------------------
   CTA FINAL — le réseau se prolonge
   -------------------------------------------------------------------- */
.qsn-closing {
    position: relative;
    padding: clamp(64px, 11vh, 150px) clamp(20px, 4vw, 64px) clamp(72px, 12vh, 160px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    text-align: center;
}

.qsn-closing__line {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 1px;
    height: clamp(60px, 10vh, 120px);
    background: linear-gradient(180deg, rgba(245, 179, 1, 0.5), transparent);
    pointer-events: none;
}

.qsn-closing__glow {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    width: min(1100px, 120vw);
    aspect-ratio: 2 / 1;
    background: radial-gradient(ellipse at center, rgba(255, 180, 20, 0.12), transparent 64%);
    pointer-events: none;
}

.qsn-closing__inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(22px, 3.2vh, 36px);
}

.qsn-closing__eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.qsn-closing__statement {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 200;
    font-size: clamp(30px, 4.6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    max-width: 26ch;
}

.qsn-closing__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 19px 44px;
    border-radius: 999px;
    background: var(--universim-gold);
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 18px 50px -16px rgba(245, 179, 1, 0.65);
    transition: background 0.3s ease, transform 0.3s ease;
}

.qsn-closing__cta:hover,
.qsn-closing__cta:focus-visible {
    background: var(--universim-gold-hover);
    color: #000;
    transform: translateY(-2px);
}

.qsn-closing__cta-arrow {
    transition: transform 0.3s ease;
}

.qsn-closing__cta:hover .qsn-closing__cta-arrow {
    transform: translateX(4px);
}

.qsn-closing__note {
    margin: 0;
    font-size: 12.5px;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Responsive — tablette
   ========================================================================== */
@media (max-width: 1024px) {
    .qsn-gi__col--logo {
        align-items: flex-start;
    }

    /* Les largeurs "environ 50% de la section" (desktop) redeviennent une
       largeur de lecture confortable en ch dès la tablette, plutôt que de
       continuer à se baser sur 50% d'un viewport déjà étroit. */
    .qsn-services__text {
        max-width: 70ch;
    }

    .qsn-valeurs__text,
    .qsn-philo__text {
        max-width: 60ch;
    }
}

/* ==========================================================================
   Responsive — mobile : réorganisation réelle, pas une simple réduction
   ========================================================================== */
@media (max-width: 768px) {
    .qsn-hero__title {
        font-size: clamp(40px, 12vw, 64px);
    }

    .qsn-philo__tree {
        /* L'arbre reste grand et lisible sur mobile plutôt que réduit au
           point de devenir minuscule : on relâche le ratio fixe pour lui
           laisser prendre toute la hauteur disponible raisonnable. */
        aspect-ratio: auto;
        min-height: 320px;
    }

    .qsn-services__row {
        grid-template-columns: 1fr 1fr;
        row-gap: 6px;
    }

    .qsn-services__row-price {
        text-align: left;
    }

    .qsn-gi__inner {
        gap: 32px;
    }

    .qsn-gi__col--logo {
        align-items: flex-start;
    }

    /* Les paragraphes élargis sur desktop (point 7) se réorganisent
       naturellement sur mobile : plus de contrainte de largeur, juste les
       marges latérales déjà posées par le padding de chaque section. */
    .qsn-services__text,
    .qsn-valeurs__text,
    .qsn-philo__text {
        max-width: none;
    }
}

/* ==========================================================================
   Accessibilité : prefers-reduced-motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .qsn-page [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }

    .qsn-hero__seed-dot {
        animation: none !important;
    }

    .qsn-services__row:hover,
    .qsn-closing__cta:hover {
        transform: none !important;
    }
}
