/* ==========================================================================
   CYPRIEN EKRA — PAGE ATLAS (LIVRE & CONVICTION)
   Feuille de style spécifique : Esthétique Éditoriale Statutaire Lancement
   Palette conforme à designmd/design_pour_atlas.md :
   - Primary: #f9f8f6 (Surface claire / Crème Édition)
   - Secondary: #093c72 (Bleu Institutionnel / Structurel)
   - Tertiary: #031426 (Bleu Nuit Souverain)
   - Neutral: #E6E6E6 (Bordures & Filets)
   - Surface: #00C48C (Vert Validation)
   - Accent: #f69a59ff (Accent Cuivré Vibrant)
   ========================================================================== */

.page-atlas {
    background-color: #f9f8f6;
    color: #1e293b;
    --atlas-cream: #f9f8f6;
    --atlas-blue-dark: #031426;
    --atlas-blue-mid: #093c72;
    --atlas-copper: #f69a59;
    --atlas-copper-hover: #e08342;
    --atlas-copper-light: #fbeee4;
    --atlas-border: #e2e8f0;
    --atlas-card-bg: #ffffff;
    --atlas-text-main: #0f172a;
    --atlas-text-body: #334155;
    --atlas-text-muted: #64748b;
}

/* ==========================================================================
   01. HERO LIVRE & PROMESSE ÉDITORIALE (Fond Crème & Typo Bleue Institutionnelle)
   ========================================================================== */

.atlas-hero {
    position: relative;
    padding: 70px 0 65px;
    background: radial-gradient(circle at 80% 30%, rgba(246, 154, 89, 0.08) 0%, rgba(9, 60, 114, 0.04) 50%, #f9f8f6 100%);
    border-bottom: 1px solid var(--atlas-border);
}

.atlas-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.atlas-hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.atlas-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
}

.atlas-category-badge .badge-copper {
    background: rgba(246, 154, 89, 0.15);
    color: #b85918;
    border: 1px solid var(--atlas-copper);
    font-weight: 700;
}

.atlas-category-badge .badge-blue {
    background: rgba(9, 60, 114, 0.1);
    color: var(--atlas-blue-mid);
    border: 1px solid var(--atlas-blue-mid);
    font-weight: 700;
}

.atlas-main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 4.2vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--atlas-blue-mid);
    letter-spacing: -0.5px;
}

.atlas-subtitle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: #b85918;
    line-height: 1.4;
}

.atlas-editorial-promise {
    font-family: var(--font-editorial);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--atlas-text-main);
    border-left: 4px solid var(--atlas-copper);
    padding: 16px 22px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(9, 60, 114, 0.05);
    border-radius: 0 4px 4px 0;
}

.atlas-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
}

/* ==========================================================================
   Boutons RÉSERVER spécifiques à la page Atlas (Couleur de fond #f69a59)
   ========================================================================== */

.page-atlas .nav-cta,
.page-atlas #cta-hero-precommander,
.page-atlas .btn-atlas-primary,
.page-atlas a[href*="commander.html"].btn,
.page-atlas a[href*="commander.html"].nav-cta {
    background-color: #f69a59 !important;
    border-color: #e08342 !important;
    color: #ffffff !important;
}

.page-atlas .nav-cta:hover,
.page-atlas #cta-hero-precommander:hover,
.page-atlas .btn-atlas-primary:hover,
.page-atlas a[href*="commander.html"].btn:hover,
.page-atlas a[href*="commander.html"].nav-cta:hover {
    background-color: #e08342 !important;
    border-color: #d07435 !important;
    box-shadow: 0 6px 20px rgba(246, 154, 89, 0.4) !important;
}

.btn-atlas-primary {
    background-color: var(--atlas-copper);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 15px 30px;
    border-radius: 0px;
    border: 1px solid #e08342;
    transition: all var(--transition-fast);
}

.btn-atlas-primary:hover {
    background-color: var(--atlas-copper-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(246, 154, 89, 0.35);
    color: #ffffff;
}

.atlas-price-teaser {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--atlas-text-muted);
}

.atlas-price-teaser strong {
    color: var(--atlas-blue-dark);
    font-size: 1.15rem;
    font-weight: 700;
}

.atlas-price-teaser s {
    color: #94a3b8;
    margin-left: 4px;
}

/* Vitrine de Couverture HD */
.atlas-cover-showcase {
    position: relative;
    display: flex;
    justify-content: center;
}

.atlas-book-frame {
    position: relative;
    max-width: 370px;
    background: #031426;
    padding: 10px;
    box-shadow: 
        0 20px 45px rgba(3, 20, 38, 0.22),
        0 0 35px rgba(246, 154, 89, 0.12);
    transition: transform 300ms ease-out, box-shadow 300ms ease-out;
    border: 1px solid rgba(9, 60, 114, 0.25);
}

.atlas-book-frame:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 28px 55px rgba(3, 20, 38, 0.3),
        0 0 45px rgba(246, 154, 89, 0.25);
}

.atlas-book-img {
    width: 100%;
    height: auto;
    display: block;
}

.atlas-cover-badge {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--atlas-blue-dark);
    border: 1px solid var(--atlas-copper);
    padding: 6px 16px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--atlas-copper);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* ==========================================================================
   02. LES 10 PAYS ANALYSÉS (Fond parchemin & Fiches blanches nettes)
   ========================================================================== */

.atlas-countries-section {
    padding: 85px 0;
    border-bottom: 1px solid var(--atlas-border);
    background: #f2efe9;
}

.section-editorial-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px;
}

.section-kicker {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: #b85918;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-editorial-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--atlas-blue-mid);
    margin-bottom: 14px;
}

.section-editorial-lead {
    font-family: var(--font-editorial);
    font-size: 1.1rem;
    color: var(--atlas-text-body);
    line-height: 1.65;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.country-card {
    background: #ffffff;
    border: 1px solid var(--atlas-border);
    padding: 22px 18px;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 10px rgba(9, 60, 114, 0.04);
}

.country-card:hover {
    border-color: var(--atlas-copper);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(246, 154, 89, 0.16);
}

.country-code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--atlas-copper);
    font-weight: 700;
    margin-bottom: 6px;
}

.country-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--atlas-blue-dark);
    margin-bottom: 10px;
}

.country-card-info {
    display: flex;
    flex-direction: column;
}

.country-flag-wrap {
    margin-top: 16px;
    display: flex;
    align-items: center;
}

.country-flag {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.country-card:hover .country-flag {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.country-topics {
    font-size: 0.8rem;
    color: var(--atlas-text-muted);
    line-height: 1.5;
}

.countries-disclaimer {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    padding: 18px 24px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--atlas-text-muted);
    margin-top: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   03. MÉTHODE ACAI™ (Bloc Contraste Statutaire en Bleu Nuit #031426)
   ========================================================================== */

.acai-section {
    padding: 85px 0;
    background: linear-gradient(180deg, #031426 0%, #07192d 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.acai-card {
    background: #031426;
    border: 1px solid var(--atlas-blue-mid);
    padding: 50px 48px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.acai-card::before {
    content: 'MÉTHODOLOGIE SCIENTIFIQUE PROPRIÉTAIRE';
    position: absolute;
    top: -12px;
    left: 48px;
    background: var(--atlas-copper);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    letter-spacing: 1px;
}

.acai-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.acai-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.acai-eight-lines {
    font-family: var(--font-editorial);
    font-size: 1.05rem;
    line-height: 1.85;
    color: #f1f5f9;
}

.acai-eight-lines p {
    margin-bottom: 14px;
}

.acai-pillars-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.acai-pillar-item {
    background: #07192d;
    border: 1px solid rgba(246, 154, 89, 0.3);
    padding: 16px 20px;
}

.acai-pillar-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--atlas-copper);
    margin-bottom: 4px;
}

.acai-pillar-desc {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* ==========================================================================
   04. À QUI S'ADRESSE L'OUVRAGE (Surfaces Blanches Épurées)
   ========================================================================== */

.audience-section {
    padding: 85px 0;
    border-bottom: 1px solid var(--atlas-border);
    background: #f9f8f6;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.audience-card {
    background: #ffffff;
    border: 1px solid var(--atlas-border);
    padding: 30px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
    box-shadow: 0 4px 14px rgba(9, 60, 114, 0.04);
}

.audience-card:hover {
    border-color: var(--atlas-copper);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(246, 154, 89, 0.12);
}

.audience-icon {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--atlas-copper);
}

.audience-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--atlas-blue-mid);
}

.audience-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--atlas-text-body);
}

/* ==========================================================================
   05. VOIX INVITÉES & EXTRAIT / KIT PRESSE
   ========================================================================== */

.editorial-assets-section {
    padding: 85px 0;
    background: #ffffff;
    border-bottom: 1px solid var(--atlas-border);
}

.assets-dual-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
}

.quote-box {
    background: #f9f8f6;
    border-left: 4px solid var(--atlas-copper);
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.quote-statement {
    font-family: var(--font-editorial);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.75;
    color: var(--atlas-text-main);
    margin-bottom: 16px;
}

.quote-clarification {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--atlas-text-muted);
}

/* ==========================================================================
   Contributeurs & Relecteurs (Sous-blocs 1 à 5)
   ========================================================================== */

.contributions-intro-lead {
    font-family: var(--font-editorial);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--atlas-text-main);
    margin-bottom: 32px;
    max-width: 960px;
}

/* Sous-bloc 1 : Auteur */
.subblock-author {
    background: #ffffff;
    border: 1px solid var(--atlas-border);
    border-left: 4px solid var(--atlas-copper);
    padding: 24px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.subblock-author-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--atlas-border);
}

.subblock-author-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--atlas-blue-mid);
    margin-bottom: 4px;
}

.subblock-author-role {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--atlas-copper);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 700;
}

.subblock-author-bio {
    font-size: 0.88rem;
    color: var(--atlas-text-body);
    line-height: 1.6;
}

/* Grille Préface & Carte Blanche (Sous-blocs 2 & 3) */
.subblocks-duo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.contributor-duo-card {
    background: #ffffff;
    border: 1px solid var(--atlas-border);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.contributor-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contributor-avatar-initials {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #093c72 0%, #7c3aed 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--atlas-border);
    overflow: hidden;
}

.contributor-avatar-img,
.regard-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contributor-header-meta h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--atlas-blue-mid);
    margin-bottom: 2px;
}

.contributor-role-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--atlas-copper);
    text-transform: uppercase;
    font-weight: 700;
}

.contributor-function {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--atlas-text-muted);
}

.contributor-quote-text {
    font-family: var(--font-editorial);
    font-size: 0.92rem;
    font-style: italic;
    color: var(--atlas-text-main);
    line-height: 1.6;
}

/* Sous-bloc 4 : Sept regards croisés */
.subblock-regards-section {
    margin-bottom: 24px;
}

.subblock-section-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--atlas-blue-mid);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--atlas-border);
}

.regards-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.regard-card {
    background: #ffffff;
    border: 1px solid var(--atlas-border);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.regard-card:hover {
    border-color: var(--atlas-copper);
    transform: translateY(-2px);
}

.regard-initials {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #07192d;
    color: var(--atlas-copper);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(246, 154, 89, 0.4);
    overflow: hidden;
}

.regard-initials.pending-initials {
    background: #e2e8f0;
    color: #64748b;
    border-color: #cbd5e1;
}

.regard-info-name {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--atlas-blue-mid);
    margin-bottom: 2px;
}

.regard-info-angle {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--atlas-copper);
    font-weight: 600;
}

.regard-info-function {
    font-size: 0.78rem;
    color: var(--atlas-text-body);
    line-height: 1.4;
    margin-top: 4px;
}

.regard-quote-text {
    font-family: var(--font-editorial);
    font-size: 0.82rem;
    font-style: italic;
    color: var(--atlas-text-main);
    line-height: 1.45;
    margin-top: 6px;
    border-left: 2px solid var(--atlas-copper);
    padding-left: 8px;
}

/* Sous-bloc 5 : Experts et relecteurs nationaux */
.subblock-relecteurs-box {
    background: #ffffff;
    border: 1px solid var(--atlas-border);
    border-left: 4px solid var(--atlas-blue-mid);
    padding: 20px 22px;
    margin-bottom: 24px;
}

.relecteurs-box-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--atlas-blue-mid);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.relecteurs-box-text {
    font-size: 0.88rem;
    color: var(--atlas-text-body);
    line-height: 1.6;
}

@media (max-width: 850px) {
    .subblock-author {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .subblock-author-photo {
        margin: 0 auto;
    }
    .subblocks-duo-grid {
        grid-template-columns: 1fr;
    }
    .regards-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .regards-cards-grid {
        grid-template-columns: 1fr;
    }
}

.downloads-box {
    background: var(--atlas-blue-mid);
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(9, 60, 114, 0.2);
}

.downloads-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.downloads-desc {
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 24px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-download-primary {
    background-color: var(--atlas-copper);
    color: #ffffff;
    border: 1px solid #e08342;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-align: center;
    transition: all var(--transition-fast);
}

.btn-download-primary:hover {
    background-color: var(--atlas-copper-hover);
    color: #ffffff;
}

.btn-download-ghost {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 14px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-align: center;
    transition: all var(--transition-fast);
}

.btn-download-ghost:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   06. BANDEAU DE CONVERSION FINAL
   ========================================================================== */

.atlas-cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, #031426 0%, #093c72 100%);
    text-align: center;
    border-bottom: 1px solid var(--atlas-border);
    color: #ffffff;
}

.atlas-cta-inner {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.atlas-cta-title {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    color: #ffffff;
}

.atlas-cta-price {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--atlas-copper);
}

.atlas-cta-price strong {
    color: #ffffff;
    font-size: 1.35rem;
}

.atlas-cta-price s {
    color: #94a3b8;
    margin-right: 8px;
}

/* ==========================================================================
   Responsive Page Atlas
   ========================================================================== */

@media (max-width: 1024px) {
    .countries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .atlas-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .acai-content-grid {
        grid-template-columns: 1fr;
    }
    .assets-dual-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .countries-grid {
        grid-template-columns: 1fr 1fr;
    }
    .audience-grid {
        grid-template-columns: 1fr;
    }
    .atlas-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-atlas-primary {
        width: 100%;
    }
}
