/* ============================================================
   GM.OR — Section "Qui sommes-nous"
   Fichier : /css/qui-sommes-nous.css
   VERSION COMPLÈTE — Design modale premium
   ============================================================ */

/* ── Décoration fond ── */
.qui-section {
    position: relative;
    overflow: hidden;
}

.qui-bg-orb {
    position: absolute;
    top: -200px;
    right: -250px;
    width: 700px;
    height: 700px;
    background: radial-gradient(
        circle,
        hsla(43, 72%, 53%, 0.07) 0%,
        transparent 65%
    );
    pointer-events: none;
    z-index: 0;
}

.qui-section .container {
    position: relative;
    z-index: 1;
}

/* ── Texte intro ── */
.qui-intro-text {
    margin-top: 1.25rem;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Label de bloc ── */
.qui-block-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.qui-block-label svg {
    stroke: var(--gold);
    flex-shrink: 0;
}

/* ════════════════════════════════════════
   BLOC VIDÉO
   ════════════════════════════════════════ */

#qui-video-wrapper {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#qui-video-wrapper.popup-visible {
    opacity: 0;
    transform: scale(0.97);
    pointer-events: none;
}

.qui-video-wrapper {
    max-width: 1100px;
    width: 95%;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.qui-video-frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #080807;
    aspect-ratio: 16 / 9;
    box-shadow:
        0 0 0 1px hsla(43, 72%, 53%, 0.22),
        0 32px 64px -16px rgba(0, 0, 0, 0.6);
}

.qui-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.qui-video-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
    pointer-events: none;
    z-index: 2;
}

.qui-video-caption {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.04em;
    font-style: italic;
}

/* ════════════════════════════════════════
   GRILLE PRESSE — 2 colonnes côte à côte
   ════════════════════════════════════════ */

.qui-press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.qui-press-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.3s ease;
}

.qui-press-card:hover {
    border-color: hsla(43, 72%, 53%, 0.35);
    box-shadow:
        0 12px 40px -10px rgba(0, 0, 0, 0.5),
        0 0 0 1px hsla(43, 72%, 53%, 0.12);
    transform: translateY(-4px);
}

.qui-press-card--gold {
    background: hsla(43, 72%, 53%, 0.04);
    border-color: hsla(43, 72%, 53%, 0.15);
}

.qui-press-card-top {
    padding: 1.75rem 1.75rem 1.25rem;
    flex: 1;
}

/* Badge */
.qui-press-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.9rem;
}

.qui-press-badge--gold {
    color: var(--gold);
    background: hsla(43, 72%, 53%, 0.08);
    border-color: hsla(43, 72%, 53%, 0.22);
}

/* Titre */
.qui-press-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.qui-press-title em {
    font-style: italic;
    color: var(--gold-light);
}

.qui-press-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 0.9rem;
}

.qui-press-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
}

/* ════════════════════════════════════════
   BOUTONS PDF — style bouton
   ════════════════════════════════════════ */

.qui-pdf-link-container {
    margin-top: auto;
}

.qui-pdf-download-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.1rem 1.5rem;
    background: none;
    border: none;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.qui-pdf-download-box:hover {
    background: hsla(220, 10%, 20%, 0.6);
    color: var(--text);
}

/* Variante dorée */
.qui-pdf-download-box.gold {
    color: var(--gold);
    border-top-color: hsla(43, 72%, 53%, 0.2);
}

.qui-pdf-download-box.gold:hover {
    background: hsla(43, 72%, 53%, 0.08);
    color: var(--gold-light);
}

/* Icône PDF */
.qui-pdf-download-box .pdf-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: hsla(220, 10%, 18%, 0.8);
    border: 1px solid var(--border);
    color: inherit;
}

.qui-pdf-download-box.gold .pdf-icon {
    background: hsla(43, 72%, 53%, 0.1);
    border-color: hsla(43, 72%, 53%, 0.25);
}

.qui-pdf-download-box svg {
    stroke: currentColor;
}

/* ════════════════════════════════════════
   CTA BAS DE SECTION
   ════════════════════════════════════════ */

.qui-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding-top: 1rem;
}

.qui-cta .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.qui-cta .btn-outline svg {
    stroke: var(--gold);
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */

@media (max-width: 768px) {
    .qui-press-grid { grid-template-columns: 1fr; }
    .qui-video-wrapper { margin-bottom: 3rem; }
    .qui-cta { flex-direction: column; align-items: stretch; }
    .qui-cta .btn-gold,
    .qui-cta .btn-outline {
        justify-content: center;
        width: 100%;
        max-width: 18rem;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .qui-press-card-top { padding: 1.25rem; }
}

/* ════════════════════════════════════════════════════════════
   ★★★ MODALE POP-UP — DESIGN PREMIUM ★★★
   ════════════════════════════════════════════════════════════ */

/* Overlay sombre */
.gmor-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gmor-modal.open {
    opacity: 1;
    visibility: visible;
}

/* Fond sombre avec effet */
.gmor-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

/* Boîte principale — pleine taille sans bandes grises */
.gmor-modal-box {
    position: relative;
    z-index: 1;
    width: 95vw;
    max-width: 1100px;
    height: 92vh;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        
        0 50px 100px -20px rgba(0, 0, 0, 0.9);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gmor-modal.open .gmor-modal-box {
    transform: scale(1) translateY(0);
}

/* Bordure dorée animée en haut */
.gmor-modal-box::before {
    display: none;
}

/* Bouton fermer ✕ — doré et élégant */
.gmor-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: hsla(43, 72%, 53%, 0.15);
    border: 1px solid hsla(43, 72%, 53%, 0.4);
    color: var(--gold, #c9a227);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.gmor-modal-close:hover {
    background: var(--gold, #c9a227);
    color: #0d0c08;
    transform: scale(1.1) rotate(90deg);
    border-color: var(--gold, #c9a227);
}

.gmor-modal-close svg {
    width: 20px;
    height: 20px;
}

/* ════════════════════════════════════════════════════════════
   CONTENU AJAX — FORCER FOND NOIR PARTOUT
   ════════════════════════════════════════════════════════════ */




/* Supprimer les marges/paddings gris du contenu */
.gmor-modal-content body,
.gmor-modal-content html {
    margin: 0 !important;
    padding: 0 !important;
background: transparent !important;
}

/* Si le contenu chargé a un fond gris implicite */
.gmor-modal-content > * {
    background: transparent !important;
}

/* Forcer les images à s'adapter */
.gmor-modal-content img {
    max-width: 100%;
    height: auto;
    display: block;
}



/* Scrollbar personnalisée dorée */
.gmor-modal-content::-webkit-scrollbar {
    width: 6px;
}

.gmor-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.gmor-modal-content::-webkit-scrollbar-thumb {
    background: hsla(43, 72%, 53%, 0.3);
    border-radius: 3px;
}

.gmor-modal-content::-webkit-scrollbar-thumb:hover {
    background: hsla(43, 72%, 53%, 0.5);
}

/* Chargement */
.gmor-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gold, #c9a227);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gmor-modal-loading::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid hsla(43, 72%, 53%, 0.2);
    border-top-color: var(--gold, #c9a227);
    border-radius: 50%;
    margin-left: 1rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Erreur */
.gmor-modal-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #999;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .gmor-modal-box {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        border-radius: 0;
    }
    
    .gmor-modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .gmor-modal-box {
        width: 100vw;
        height: 100vh;
    }
}
