/* =====================================================
   PSY IMPACT CONSEIL — Feuille de styles principale
   Identité visuelle officielle :
   Bleu nuit  #0D1F3C  — Sérieux, confiance, professionnalisme
   Vert sauge #7A9E8E  — Apaisement, santé mentale, équilibre
   Blanc cassé #F7F4EF — Clarté, accessibilité
   Gris clair #E3E6E0  — Neutralité, sobriété
   Rouge ocre #B8552A  — Vitalité, humanité, attention (accent)
   ===================================================== */

/* --- Variables & Reset --- */
:root {
    --primary:    #B8552A;   /* Rouge ocre — accent, CTA, vitalité */
    --navy:       #0D1F3C;   /* Bleu nuit — sérieux, confiance     */
    --sage:       #7A9E8E;   /* Vert sauge — bien-être, équilibre   */
    --off-white:  #F7F4EF;   /* Blanc cassé — clarté, accessibilité */
    --gray-light: #E3E6E0;   /* Gris clair — neutralité, sobriété   */
    --light-bg:   #F7F4EF;   /* Alias blanc cassé (sections claires) */
    --text-dark:  #1C1F2A;
    --text-light: #ffffff;
    --border:     #DDE0DA;
    --font-heading: 'Montserrat', sans-serif;
    --font-body:    'Montserrat', sans-serif;
    --shadow-sm:    0 2px 8px rgba(13,31,60,0.08);
    --shadow-md:    0 5px 20px rgba(13,31,60,0.12);
    --radius:       10px;
    --transition:   all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    background: #fff;
}

.container      { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding{ padding: 110px 0; }
.text-center    { text-align: center; }
.text-white     { color: var(--text-light); }
.mt-10          { margin-top: 10px; }
.mt-20          { margin-top: 20px; }
.mt-40          { margin-top: 40px; }
.bg-light       { background-color: var(--light-bg); }
.bg-navy        { background-color: var(--navy); }
.bg-primary     { background-color: var(--primary); }
.bg-sage        { background-color: var(--sage); }

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; margin-bottom: 18px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }

p { margin-bottom: 14px; }

/* --- Logo --- */
.logo img {
    height: 60px;
    width: auto;
    display: block;
}
.logo-footer img {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
}

/* --- Typographie spéciale --- */
.subtitle {
    color: var(--sage);
    font-style: normal;
    font-weight: 500;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}
.subtitle-red {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}
.label-tag {
    display: inline-block;
    background: rgba(184,85,42,0.1);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

/* --- Boutons --- */
.btn-primary, .btn-outline, .btn-sage, .btn-white, .btn-small-primary {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}
.btn-primary:hover { background-color: #8F3E1A; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(184,85,42,0.3); }

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}
.btn-outline:hover { background-color: var(--text-light); color: var(--navy); }

.btn-sage { background-color: var(--sage); color: var(--text-light); }
.btn-sage:hover { background-color: #5C8272; }

.btn-white { background-color: white; color: var(--navy); font-weight: 700; }
.btn-white:hover { background-color: var(--light-bg); }

.btn-small-primary {
    padding: 8px 16px;
    font-size: 0.82rem;
    background-color: var(--primary);
    color: white;
}
.btn-small-primary:hover { background-color: #8F3E1A; }

.btn-small-navy {
    background-color: var(--navy);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: var(--transition);
}
.btn-small-navy:hover { background-color: #162840; }

/* --- Top Bar --- */
.top-bar {
    background-color: var(--navy);
    color: var(--text-light);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.85em;
}
.top-bar a { color: #fff; text-decoration: underline; }

/* --- Header / Navigation --- */
.main-header {
    background-color: #fff;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 22px;
    align-items: center;
}
.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--primary); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Off-canvas nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13,31,60,0.45);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}
.nav-overlay.visible { display: block; opacity: 1; }

/* --- Grilles --- */
.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5  { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.grid-3-uneven { display: grid; grid-template-columns: 1fr 1fr 300px; gap: 30px; align-items: stretch; }
.flex-between  { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; flex-wrap: wrap; gap: 20px; }
.flex-around   { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 20px; }

/* --- Hero --- */
.hero {
    background-image: linear-gradient(135deg, rgba(13,31,60,0.92) 0%, rgba(13,31,60,0.75) 100%), url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 160px 0 120px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(184,85,42,0.08);
}
.hero h1 { max-width: 820px; line-height: 1.2; color: #fff; }
.hero p   { font-size: 1.1rem; max-width: 600px; opacity: 0.9; margin-top: 10px; }
.hero-buttons { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Barre de défilement problèmes */
.problems-ticker {
    background: var(--primary);
    color: white;
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
}
.ticker-inner {
    display: inline-block;
    animation: ticker 30s linear infinite;
    font-size: 0.9rem;
    font-weight: 500;
}
.ticker-inner span { margin: 0 40px; }
.ticker-inner span::before {  }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Section À Propos --- */
.about-images { position: relative; }
.img-large   { width: 100%; border-radius: var(--radius); }
.img-stack   { position: absolute; right: -20px; bottom: -20px; display: flex; flex-direction: column; gap: 10px; }
.stat-box    { padding: 20px; border-radius: var(--radius); text-align: center; }

/* --- Cartes Expertise / Services --- */

.card {
    background: #fff;
    padding: 42px 34px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card:hover::before { transform: scaleX(1); }
.card .icon { font-size: 2.4rem; margin-bottom: 16px; display: block; }

/* --- Section Stats --- */
.stats-section { background: var(--navy); color: white; padding: 70px 0; }
.stat-item h3 { font-size: 3rem; color: var(--primary); border-bottom: 2px solid rgba(255,255,255,0.15); padding-bottom: 10px; margin-bottom: 8px; }
.stat-item p  { opacity: 0.85; font-size: 0.9rem; }

/* --- Bg Sections --- */
.bg-image-center {
    background-image: linear-gradient(rgba(13,31,60,0.82), rgba(13,31,60,0.82)), url('img/bg-1.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
}
.bg-image-dark {
    background-image: linear-gradient(rgba(13,31,60,0.93), rgba(13,31,60,0.93)), url('img/bg-2.jpg');
    background-size: cover;
    background-position: center;
}

/* --- Cartes Services (avec couleur de fond) --- */
.service-card {
    padding: 40px 28px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
}
.service-card.light  { background: var(--light-bg); border: 1px solid var(--border); }
.service-card.dark   { background: var(--navy); color: white; }
.service-card.accent { background: var(--primary); color: white; }

/* --- Boîte stats vedette --- */
.bg-navy-box { background: var(--navy); color: white; padding: 32px; border-radius: var(--radius); }
.bg-sage-box { background: var(--sage); color: white; padding: 32px; border-radius: var(--radius); }
.date-box    { background: rgba(255,255,255,0.15); padding: 14px 18px; border-radius: 6px; font-weight: 600; margin-bottom: 20px; }
.stats-list  { list-style: none; }
.stats-list li { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.2); font-size: 0.88rem; display: flex; align-items: center; gap: 8px; }
.stats-list li::before {  color: var(--sage); font-weight: 700; }
.stats-list li:last-child { border-bottom: none; }

/* --- Cartes projets --- */
.project-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project-card img   { width: 100%; height: 210px; object-fit: cover; }
.p-content { padding: 22px; }
.tag { font-size: 0.78rem; color: var(--sage); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 8px; }

/* --- Help Cards --- */
.help-card {
    padding: 44px 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.help-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.icon-red  { font-size: 42px; color: var(--primary); margin-bottom: 16px; }
.icon-sage { font-size: 42px; color: var(--sage);    margin-bottom: 16px; }
.icon-gold { font-size: 42px; color: #d4af37;        margin-bottom: 16px; }

/* --- Section Valeurs --- */
.value-item { padding: 30px 20px; }
.value-item .icon-circle {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

/* --- Partners --- */
.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}
.partner-logo {
    width: 120px;
    height: 70px;
    background: var(--light-bg);
    border: 1px dashed var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    padding: 10px;
}
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* --- Pagination --- */
.pagination-dots { margin-top: 40px; }
.dot { display: inline-block; width: 10px; height: 10px; background: var(--border); border-radius: 50%; margin: 0 4px; transition: var(--transition); }
.dot.active { background: var(--primary); width: 24px; border-radius: 6px; }

/* --- Social Bar --- */
.social-bar {
    background: var(--navy);
    padding: 14px 20px;
    text-align: center;
    color: white;
    font-size: 0.9rem;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    margin-left: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}
.social-icon:hover { background: #8F3E1A; transform: scale(1.1); }

/* --- Footer --- */
.main-footer { background-color: var(--navy); color: var(--text-light); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 80px 0 50px; }
.footer-col h4 { color: var(--primary); font-family: var(--font-heading); font-weight: 700; margin-bottom: 20px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.75); text-decoration: none; transition: var(--transition); font-size: 0.9rem; }
.footer-col a:hover { color: var(--primary); padding-left: 4px; }
.footer-col p { color: rgba(255,255,255,0.75); font-size: 0.9rem; line-height: 1.8; }
.footer-contact-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.footer-contact-item .ci { font-size: 1.1rem; flex-shrink: 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}

/* --- Page intérieure hero --- */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #162840 100%);
    color: white;
    padding: 100px 0 70px;
    text-align: center;
}
.page-hero .breadcrumb { font-size: 0.85rem; opacity: 0.6; margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

/* --- Formulaire contact --- */
.form-group    { margin-bottom: 22px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.92rem; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: border-color 0.3s;
    background: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--navy); }
.form-group textarea { min-height: 140px; resize: vertical; }

/* --- Carte info contact --- */
.contact-info-card {
    background: var(--navy);
    color: white;
    padding: 44px 36px;
    border-radius: 14px;
    height: 100%;
}
.contact-info-card h3 { color: var(--sage); }
.contact-detail { display: flex; gap: 14px; margin-bottom: 24px; align-items: flex-start; }
.contact-detail .c-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-detail h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--sage); margin-bottom: 4px; font-family: var(--font-body); font-weight: 600; }
.contact-detail p  { color: rgba(255,255,255,0.8); font-size: 0.92rem; margin: 0; }

/* --- Divider --- */
.section-divider { height: 1px; background: var(--border); margin: 0; }
.border-bottom { border-bottom: 1px solid var(--border); padding-bottom: 40px; }

/* ======================================================
   RESPONSIVE — MOBILE OFFCANVAS NAV
   ====================================================== */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3-uneven { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }

    /* Show hamburger */
    .hamburger { display: flex; }

    /* Off-canvas nav */
    .main-nav {
        position: fixed;
        top: 0; right: 0;
        width: 290px;
        height: 100vh;
        background: var(--navy);
        z-index: 999;
        padding: 80px 30px 40px;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.77,0,0.18,1);
        overflow-y: auto;
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul   { flex-direction: column; gap: 6px; }
    .main-nav a    { color: rgba(255,255,255,0.85); font-size: 1rem; padding: 12px 0; display: block; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .main-nav a:hover,
    .main-nav a.active { color: var(--primary); }
    .main-nav a::after { display: none; }
    .header-cta    { display: none; }

    /* Close X button inside offcanvas */
    .nav-close {
        display: flex;
        position: absolute;
        top: 22px; right: 22px;
        font-size: 1.5rem;
        color: rgba(255,255,255,0.7);
        background: none;
        border: none;
        cursor: pointer;
    }

    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .flex-between { flex-direction: column; align-items: flex-start; }
    .img-stack { position: static; }
    .hero { padding: 100px 0 70px; }
    .hero h1 { font-size: 2rem; }
    .problems-ticker { display: none; }

    .page-hero { padding: 70px 0 50px; }
}

@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; }
    .grid-5 { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .btn-primary, .btn-outline { width: 100%; text-align: center; }
}

/* === AMÉLIORATIONS LAYOUT & TITRES === */
.stats-list li::before { content: '—'; color: var(--sage); font-weight: 700; }
.ticker-inner span::before { content: '— '; }

/* Hero plus imposant */
.hero { padding: 180px 0 140px; }
.hero p { font-size: 1.15rem; }

/* Page hero intérieure agrandie */
.page-hero { padding: 120px 0 90px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }

/* Grilles avec plus d'espace */
.grid-2 { gap: 60px; }
.grid-3 { gap: 36px; }
.grid-4 { gap: 28px; }

/* Meilleure lisibilité des cartes */
.card h3 { margin-bottom: 14px; color: var(--navy); }
.card p   { font-size: 0.95rem; line-height: 1.75; }

/* Sections fond image */
.bg-image-center { padding: 140px 0; }

/* Footer espacé */
.footer-grid { padding: 100px 0 60px; }

/* Bouton plus visible */
.btn-primary, .btn-outline, .btn-sage, .btn-white { padding: 14px 32px; font-size: 0.88rem; }

/* Section padding mobile */
@media (max-width: 768px) {
    .section-padding { padding: 70px 0; }
    .hero { padding: 110px 0 80px; }
    .page-hero { padding: 80px 0 60px; }
    .bg-image-center { padding: 80px 0; }
}
