/* ===============================================
   NQT Charte - Design moderne (beta.nqt.fr)
   Couleurs : bleu, gris, orange
   =============================================== */

:root {
    --nqt-bleu: #1e3a5f;
    --nqt-bleu-clair: #2c5282;
    --nqt-bleu-tres-clair: #4a90e2;
    --nqt-orange: #e85d00;
    --nqt-orange-hover: #c44e00;
    --nqt-gris: #4a5568;
    --nqt-gris-clair: #718096;
    --nqt-gris-tres-clair: #e2e8f0;
    --nqt-fond: #f7fafc;
    --nqt-blanc: #ffffff;
    --nqt-ombre: 0 2px 8px rgba(30, 58, 95, 0.08);
    --nqt-ombre-forte: 0 4px 20px rgba(30, 58, 95, 0.15);
    --nqt-rayon: 12px;
    --nqt-rayon-btn: 8px;
}

/* ===============================================
   GLOBAL
   =============================================== */

body {
    color: var(--nqt-gris);
    background-color: var(--nqt-fond);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    font-size: 16px;
}

/* ===============================================
   HEADER
   =============================================== */

.site-header,
.wp-block-template-part {
    background: var(--nqt-blanc);
    border-bottom: 4px solid var(--nqt-orange);
    box-shadow: var(--nqt-ombre);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ===============================================
   CONTENEUR PRINCIPAL
   =============================================== */

.entry-content,
.post-inner,
.type-page .entry-content,
main .entry-content {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 2rem;
}

@media (max-width: 768px) {
    .entry-content,
    .post-inner,
    .type-page .entry-content,
    main .entry-content {
        padding: 2rem 1.5rem;
    }
}

/* ===============================================
   TYPOGRAPHIE
   =============================================== */

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    color: var(--nqt-bleu);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.entry-content h1 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.entry-content h2 {
    font-size: 2rem;
    border-bottom: 4px solid var(--nqt-orange);
    padding-bottom: 0.75rem;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.entry-content h3 {
    font-size: 1.5rem;
    color: var(--nqt-bleu-clair);
    margin-bottom: 1rem;
}

.entry-content h4 {
    font-size: 1.25rem;
    color: var(--nqt-bleu-clair);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.entry-content p {
    margin-bottom: 1.25rem;
    color: var(--nqt-gris);
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-content strong {
    color: var(--nqt-bleu);
    font-weight: 600;
}

/* Paragraphe d'introduction (après h1 ou h2) */
.entry-content h1 + p,
.entry-content h2 + p {
    font-size: 1.15rem;
    color: var(--nqt-gris);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ===============================================
   LISTES
   =============================================== */

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.entry-content ul li::marker {
    color: var(--nqt-orange);
}

.entry-content ol li::marker {
    color: var(--nqt-bleu);
    font-weight: 600;
}

/* ===============================================
   BOUTONS CTA
   =============================================== */

.entry-content a.button,
.entry-content p a.button,
.entry-content .wp-block-button__link,
.entry-content .wp-block-button a {
    display: inline-block;
    background: var(--nqt-orange);
    color: var(--nqt-blanc) !important;
    padding: 1rem 2rem;
    border-radius: var(--nqt-rayon-btn);
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0.75rem 0.75rem 0.75rem 0;
    transition: all 0.3s ease;
    box-shadow: var(--nqt-ombre);
    text-align: center;
}

.entry-content a.button:hover,
.entry-content p a.button:hover,
.entry-content .wp-block-button__link:hover,
.entry-content .wp-block-button a:hover {
    background: var(--nqt-orange-hover);
    transform: translateY(-2px);
    box-shadow: var(--nqt-ombre-forte);
}

/* Bouton secondaire */
.entry-content a.button.secondary {
    background: var(--nqt-blanc);
    color: var(--nqt-bleu) !important;
    border: 2px solid var(--nqt-bleu);
}

.entry-content a.button.secondary:hover {
    background: var(--nqt-bleu);
    color: var(--nqt-blanc) !important;
}

/* ===============================================
   LIENS
   =============================================== */

.entry-content a:not(.button):not(.wp-block-button__link) {
    color: var(--nqt-bleu-clair);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.entry-content a:not(.button):hover {
    color: var(--nqt-orange);
}

/* ===============================================
   SÉPARATEURS
   =============================================== */

.entry-content hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, var(--nqt-orange), var(--nqt-bleu-clair));
    margin: 3rem 0;
    opacity: 0.5;
    border-radius: 2px;
}

/* ===============================================
   CARTES / BLOCS
   =============================================== */

.nqt-card,
.wp-block-group.nqt-card {
    background: var(--nqt-blanc);
    border-radius: var(--nqt-rayon);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--nqt-ombre);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nqt-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nqt-ombre-forte);
}

.nqt-card h3 {
    color: var(--nqt-bleu);
    margin-top: 0;
}

/* Grille de cartes (3 colonnes) */
.nqt-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .nqt-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ===============================================
   HERO / BANDEAU
   =============================================== */

.nqt-hero {
    background: linear-gradient(135deg, var(--nqt-bleu) 0%, var(--nqt-bleu-clair) 100%);
    color: var(--nqt-blanc);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: var(--nqt-rayon);
    margin-bottom: 3rem;
    box-shadow: var(--nqt-ombre-forte);
}

.nqt-hero h1 {
    color: var(--nqt-blanc);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nqt-hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.nqt-hero .button {
    background: var(--nqt-orange);
    font-size: 1.2rem;
    padding: 1.25rem 2.5rem;
}

@media (max-width: 768px) {
    .nqt-hero h1 {
        font-size: 2rem;
    }
    .nqt-hero p {
        font-size: 1.1rem;
    }
}

/* ===============================================
   BLOC MISE EN AVANT
   =============================================== */

.nqt-highlight {
    background: linear-gradient(135deg, #fff5eb 0%, #ffe8d6 100%);
    border-left: 5px solid var(--nqt-orange);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: var(--nqt-rayon);
}

.nqt-highlight p {
    margin-bottom: 0.5rem;
}

.nqt-highlight strong {
    color: var(--nqt-orange);
}

/* ===============================================
   CHIFFRES / STATS
   =============================================== */

.nqt-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 0;
}

.nqt-stat {
    text-align: center;
    min-width: 150px;
}

.nqt-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--nqt-orange);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.nqt-stat-label {
    font-size: 1rem;
    color: var(--nqt-gris);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===============================================
   IMAGES
   =============================================== */

.entry-content img {
    border-radius: var(--nqt-rayon);
    box-shadow: var(--nqt-ombre);
    max-width: 100%;
    height: auto;
}

.wp-block-image {
    margin: 2rem 0;
}

/* ===============================================
   BLOCKQUOTE / TÉMOIGNAGES
   =============================================== */

.entry-content blockquote {
    background: var(--nqt-blanc);
    border-left: 5px solid var(--nqt-bleu-clair);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--nqt-gris);
    border-radius: var(--nqt-rayon);
    box-shadow: var(--nqt-ombre);
}

.entry-content blockquote p {
    margin-bottom: 0.5rem;
}

.entry-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
    color: var(--nqt-bleu);
    font-size: 0.95rem;
}

/* ===============================================
   FOOTER
   =============================================== */

.site-footer {
    background: var(--nqt-bleu);
    color: var(--nqt-blanc);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
    border-top: 4px solid var(--nqt-orange);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--nqt-orange);
}

.site-footer h3 {
    color: var(--nqt-blanc);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* ===============================================
   PAGE D'ACCUEIL
   =============================================== */

.page .entry-content h2:first-of-type {
    margin-top: 0;
}

.home .entry-content {
    max-width: 1200px;
}

/* ===============================================
   FORMULAIRES
   =============================================== */

.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content textarea,
.entry-content select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--nqt-gris-tres-clair);
    border-radius: var(--nqt-rayon-btn);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.entry-content input[type="text"]:focus,
.entry-content input[type="email"]:focus,
.entry-content input[type="tel"]:focus,
.entry-content textarea:focus {
    border-color: var(--nqt-bleu-clair);
    outline: none;
}

.entry-content input[type="submit"],
.entry-content button[type="submit"] {
    background: var(--nqt-orange);
    color: var(--nqt-blanc);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--nqt-rayon-btn);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--nqt-ombre);
}

.entry-content input[type="submit"]:hover,
.entry-content button[type="submit"]:hover {
    background: var(--nqt-orange-hover);
    transform: translateY(-2px);
    box-shadow: var(--nqt-ombre-forte);
}

/* ===============================================
   RESPONSIVE
   =============================================== */

@media (max-width: 768px) {
    .entry-content h1 {
        font-size: 2rem;
    }
    
    .entry-content h2 {
        font-size: 1.5rem;
    }
    
    .entry-content h3 {
        font-size: 1.25rem;
    }
    
    .nqt-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ===============================================
   ANIMATIONS
   =============================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.entry-content > * {
    animation: fadeInUp 0.6s ease-out;
}
