/* ===========================
   HUMANISTAS - STYLESHEET
   Accompagnement Psychosocial
   =========================== */

/* Variables CSS - Mode Clair */
:root {
    --primary-color: #5a7d6f;
    --secondary-color: #3a5a7d;
    --accent-color: #8fa998;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* Variables CSS - Mode Sombre (Auto-détection) */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #a8c5b3;
        --secondary-color: #6b9dc4;
        --accent-color: #c5dccf;
        --text-dark: #ffffff;
        --text-light: #e0e0e0;
        --bg-light: #1a1d23;
        --bg-white: #252931;
        --border-color: #3a3f4a;
        --success: #4ade80;
        --warning: #fbbf24;
        --danger: #f87171;
        --info: #38bdf8;
    }
    
    /* RÈGLE GLOBALE ULTRA FORTE - Éliminer TOUT fond blanc/clair */
    * {
        background-color: inherit !important;
    }
    
    *[style*="background: white"],
    *[style*="background: #fff"],
    *[style*="background: #FFF"],
    *[style*="background: #FFFFFF"],
    *[style*="background: #ffffff"],
    *[style*="background-color: white"],
    *[style*="background-color: #fff"],
    *[style*="background-color: #FFF"],  
    *[style*="background-color: #FFFFFF"],
    *[style*="background-color: #ffffff"],
    *[style*="background:#fff"],
    *[style*="background:#FFF"],
    *[style*="background:#FFFFFF"],
    *[style*="background:#ffffff"] {
        background: #252931 !important;
        background-color: #252931 !important;
    }
    
    body {
        background-color: #0f1115 !important;
        color: #ffffff !important;
    }
    
    /* Texte BLANC par défaut sur fond SOMBRE */
    h1, h2, h3, h4, h5, h6, p, li, span, div {
        color: #ffffff;
    }
    
    /* Liens */
    a {
        color: #a8c5b3;
    }
    
    a:hover {
        color: #c5dccf;
    }
    
    /* CARTES et ÉLÉMENTS avec fond SOMBRE = texte BLANC */
    .service-card,
    .expertise-card,
    .philosophie-card,
    .competence-item,
    .modalite-card,
    .ebook-card,
    .offre-card,
    .qualite-item,
    .highlight-item,
    .service-detail-card,
    .parcours-card,
    .affiliation-box,
    .step-card,
    .approche-card,
    .ressource-card {
        background: #252931 !important;
        border: 2px solid #4a5568 !important;
    }
    
    .service-card *,
    .expertise-card *,
    .philosophie-card *,
    .competence-item *,
    .modalite-card *,
    .ebook-card *,
    .offre-card *,
    .qualite-item *,
    .highlight-item *,
    .service-detail-card *,
    .parcours-card *,
    .affiliation-box *,
    .step-card *,
    .approche-card *,
    .ressource-card * {
        color: #ffffff !important;
    }
    
    /* Sections avec fond sombre */
    .section {
        background-color: #0f1115 !important;
    }
    
    .bg-light {
        background-color: #1a1d23 !important;
    }
    
    .section * {
        color: #ffffff;
    }
    
    /* Navigation */
    .navbar {
        background: #252931 !important;
        border-bottom: 2px solid #4a5568 !important;
    }
    
    .navbar *,
    .nav-menu *,
    .logo * {
        color: #ffffff !important;
    }
    
    .nav-menu a:hover {
        color: #a8c5b3 !important;
    }
    
    /* Footer */
    .footer {
        background: #1a1d23 !important;
        border-top: 2px solid #4a5568 !important;
    }
    
    .footer * {
        color: #ffffff !important;
    }
    
    /* Inputs et formulaires */
    input, 
    textarea, 
    select,
    .form-control {
        background: #252931 !important;
        color: #ffffff !important;
        border: 2px solid #4a5568 !important;
    }
    
    input::placeholder,
    textarea::placeholder {
        color: #9ca3af !important;
    }
    
    /* Boutons */
    .btn-primary {
        background: #a8c5b3 !important;
        color: #000000 !important;
        font-weight: 600 !important;
        border: none !important;
    }
    
    .btn-secondary {
        border: 2px solid #a8c5b3 !important;
        color: #a8c5b3 !important;
        background: transparent !important;
    }
    
    .btn-secondary:hover {
        background: #a8c5b3 !important;
        color: #000000 !important;
    }
    
    /* Hero section - GARDER L'IMAGE DE FOND VISIBLE */
    .hero {
        background: linear-gradient(135deg, #1a1d23 0%, #252931 100%) !important;
    }
    
    /* Hero avec image - forcer visibilité */
    .hero-with-image {
        background-image: url('../images/hero-humanitas.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
    
    /* Overlay plus clair pour voir l'image */
    .hero-overlay {
        background: rgba(15, 17, 21, 0.6) !important;
    }
    
    .hero *,
    .hero-title,
    .hero-subtitle,
    .hero-description {
        color: #ffffff !important;
    }
    
    /* Page header */
    .page-header {
        background: linear-gradient(135deg, #1a1d23 0%, #252931 100%) !important;
    }
    
    .page-header *,
    .page-title,
    .page-subtitle {
        color: #ffffff !important;
    }
    
    /* Blockquotes */
    blockquote,
    .quote-special {
        background: #252931 !important;
        border-left: 4px solid #a8c5b3 !important;
    }
    
    blockquote *,
    .quote-special * {
        color: #ffffff !important;
    }
    
    /* Timeline */
    .timeline-item {
        border-left: 3px solid #4a5568 !important;
    }
    
    .timeline-dot {
        background: #a8c5b3 !important;
        border: 3px solid #252931 !important;
    }
    
    .timeline-content * {
        color: #ffffff !important;
    }
    
    /* Prix et badges */
    .service-price,
    .price {
        color: #a8c5b3 !important;
        font-weight: 700 !important;
    }
    
    /* EXCEPTION : Sections avec FOND CLAIR/COLORÉ = texte NOIR */
    /* Bandeau orange ebook */
    section[style*="background: linear-gradient(135deg, #E76F51"],
    section[style*="background: linear-gradient(135deg, #e76f51"],
    .section[style*="linear-gradient(135deg, #E76F51"],
    div[style*="background: linear-gradient(135deg, #E76F51"] {
        background: linear-gradient(135deg, #E76F51 0%, #F4A261 100%) !important;
    }
    
    section[style*="background: linear-gradient(135deg, #E76F51"] *,
    section[style*="background: linear-gradient(135deg, #e76f51"] *,
    .section[style*="linear-gradient(135deg, #E76F51"] *,
    div[style*="background: linear-gradient(135deg, #E76F51"] * {
        color: #ffffff !important;
    }
    
    /* Bandeau beige/crème ebook */
    section[style*="background: linear-gradient(135deg, #FFF4E6"],
    section[style*="background: linear-gradient(135deg, #fff4e6"],
    div[style*="background: linear-gradient(135deg, #FFF4E6"] {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
    }
    
    section[style*="background: linear-gradient(135deg, #FFF4E6"] *,
    section[style*="background: linear-gradient(135deg, #fff4e6"] *,
    div[style*="background: linear-gradient(135deg, #FFF4E6"] * {
        color: #ffffff !important;
    }
    
    /* Ebook status badges - garder leur couleur d'origine */
    .ebook-status {
        background-color: inherit !important;
        color: #000000 !important;
        font-weight: 700 !important;
    }
    
    /* Encadrés avec fond clair - FORCER EN SOMBRE */
    div[style*="background: #F8F9FA"],
    div[style*="background: #f8f9fa"],
    div[style*="background: white"],
    div[style*="background: #FFF"],
    div[style*="background: #fff"],
    div[style*="background: #FFFFFF"],
    div[style*="background: #ffffff"],
    div[style*="background:#F8F9FA"],
    div[style*="background:#f8f9fa"],
    div[style*="background:#FFF"],
    div[style*="background:#fff"],
    div[style*="background:#FFFFFF"],
    div[style*="background:#ffffff"],
    div[style*="background-color: white"],
    div[style*="background-color: #FFF"],
    div[style*="background-color: #fff"],
    div[style*="background-color: #FFFFFF"],
    div[style*="background-color: #ffffff"],
    div[style*="background-color:#FFF"],
    div[style*="background-color:#fff"],
    div[style*="background-color:#FFFFFF"],
    div[style*="background-color:#ffffff"] {
        background: #252931 !important;
        background-color: #252931 !important;
    }
    
    div[style*="background: #F8F9FA"] *,
    div[style*="background: #f8f9fa"] *,
    div[style*="background: white"] *,
    div[style*="background: #FFF"] *,
    div[style*="background: #fff"] *,
    div[style*="background: #FFFFFF"] *,
    div[style*="background: #ffffff"] *,
    div[style*="background:#F8F9FA"] *,
    div[style*="background:#f8f9fa"] *,
    div[style*="background:#FFF"] *,
    div[style*="background:#fff"] *,
    div[style*="background:#FFFFFF"] *,
    div[style*="background:#ffffff"] *,
    div[style*="background-color: white"] *,
    div[style*="background-color: #FFF"] *,
    div[style*="background-color: #fff"] *,
    div[style*="background-color: #FFFFFF"] *,
    div[style*="background-color: #ffffff"] *,
    div[style*="background-color:#FFF"] *,
    div[style*="background-color:#fff"] *,
    div[style*="background-color:#FFFFFF"] *,
    div[style*="background-color:#ffffff"] * {
        color: #ffffff !important;
    }
    
    /* FORCER tous les éléments inline avec style blanc */
    *[style*="background: white"],
    *[style*="background: #fff"],
    *[style*="background: #FFF"],
    *[style*="background: #FFFFFF"],
    *[style*="background: #ffffff"],
    *[style*="background-color: white"],
    *[style*="background-color: #fff"],
    *[style*="background-color: #FFF"],
    *[style*="background-color: #FFFFFF"],
    *[style*="background-color: #ffffff"] {
        background: #252931 !important;
        background-color: #252931 !important;
    }
    
    /* Messages de formulaire */
    .form-message-success {
        background: #1e3a29 !important;
        color: #4ade80 !important;
        border: 2px solid #4ade80 !important;
    }
    
    .form-message-error {
        background: #3a1e1e !important;
        color: #f87171 !important;
        border: 2px solid #f87171 !important;
    }
    
    /* Onglets ressources */
    .ressources-nav {
        background: #252931 !important;
        border-bottom: 2px solid #4a5568 !important;
    }
    
    .ressources-tab {
        background: #1a1d23 !important;
        color: #ffffff !important;
        border: 1px solid #4a5568 !important;
    }
    
    .ressources-tab.active {
        background: #a8c5b3 !important;
        color: #000000 !important;
        font-weight: 600 !important;
    }
    
    .ressources-content {
        background: #252931 !important;
    }
    
    .ressources-content * {
        color: #ffffff !important;
    }
    
    /* FAQ */
    .faq-item {
        background: #252931 !important;
        border: 2px solid #4a5568 !important;
    }
    
    .faq-question,
    .faq-question * {
        color: #ffffff !important;
    }
    
    .faq-answer,
    .faq-answer * {
        color: #e0e0e0 !important;
    }
    
    /* Icônes - rester colorées */
    .fas,
    .far,
    .fab,
    i[class*="fa-"] {
        color: #a8c5b3 !important;
    }
    
    /* CTA Section */
    .section-cta {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
    }
    
    .section-cta *,
    .cta-content * {
        color: #ffffff !important;
    }
    
    /* Images - s'assurer qu'elles restent visibles */
    img {
        opacity: 0.9;
        border-radius: 8px;
    }
    
    /* Tables */
    table {
        background: #252931 !important;
        border: 1px solid #4a5568 !important;
    }
    
    th, td {
        border: 1px solid #4a5568 !important;
        color: #ffffff !important;
    }
}

/* Reset & Base - Optimisé et regroupé */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, 
body {
    margin: 0 !important;
    padding: 0 !important;
    scroll-behavior: smooth;
}

body { 
    font-family: var(--font-secondary); 
    color: var(--text-dark); 
    line-height: 1.6; 
    font-size: 16px;
}

/* S'assurer que le premier élément n'a pas de marge */
body > *:first-child {
    margin-top: 0 !important;
}

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: var(--transition); 
}
a:hover { color: var(--primary-color); }

/* Container */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-primary); margin-bottom: 1rem; line-height: 1.2; }
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
.lead { font-size: 1.25rem; font-weight: 300; line-height: 1.8; }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block; padding: 12px 30px; border-radius: 5px;
    font-weight: 500; transition: var(--transition); border: none;
    cursor: pointer; text-align: center;
}
.btn-primary { 
    background: var(--primary-color); 
    color: white; 
}
.btn-primary:hover { 
    background: #4a6d5f; 
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 125, 111, 0.3);
}
.btn-secondary { 
    background: transparent; 
    border: 2px solid var(--primary-color); 
    color: var(--primary-color); 
}
.btn-secondary:hover { 
    background: var(--primary-color); 
    color: white; 
}

/* Boutons blancs pour CTA sur fond foncé */
.btn-white {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    font-weight: 600;
}
.btn-white:hover {
    background: transparent;
    color: white;
    border: 2px solid white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(5px);
}
.btn-outline-white:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-large { padding: 15px 40px; font-size: 1.1rem; }
.btn-danger { background: var(--danger); color: white; }
.btn-warning { background: var(--warning); color: var(--text-dark); }
.btn-info { background: var(--info); color: white; }

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 0;
    margin: 0;
}
.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.5rem 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: 60px;
    gap: 3rem;
}
.logo { 
    cursor: pointer;
    line-height: 1;
    margin: 0;
    padding: 0;
}
.logo a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    gap: 0.1rem;
    text-decoration: none;
}
.logo-text {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    line-height: 1;
    margin: 0;
    padding: 0;
}
.logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1;
    margin: 0;
    padding: 0;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100%;
}
.nav-menu li {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}
.nav-menu a {
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-color);
}
.btn-contact-nav {
    background: var(--primary-color);
    color: white !important;
    padding: 8px 20px; /* Garde le padding du bouton */
    border-radius: 5px;
}
.btn-contact-nav:hover {
    transform: translateY(-2px);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}
.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    overflow: hidden;
}

/* Hero avec image de fond */
.hero-with-image {
    background-image: url('../images/hero-humanitas.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.hero-title {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}
.hero-tagline {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}
.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Bouton téléphone spécial dans hero */
.btn-phone {
    background: white !important;
    color: #2C3E50 !important;
    border: 3px solid white !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-phone:hover {
    background: #2C3E50 !important;
    color: white !important;
    border-color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.btn-phone i {
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Sections - espacements réduits pour condenser */
.section {
    padding: 3.5rem 0;
}
.bg-light {
    background: var(--bg-light);
}
.section-header {
    text-align: left;
    margin-bottom: 2.5rem;
}
.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.title-underline {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0;
}
.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Intro boxes et textes */
.intro-box, .lead {
    text-align: left;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.intro-box p, .lead {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 0;
    text-align: left;
    margin: 0;
}
.page-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}
.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

/* Grids */
.content-grid, .intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .content-grid, .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
.content-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.image-caption {
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Cards */
.expertise-grid, .services-detail-grid, .pourquoi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

/* Grille fixe pour les services (8 cartes : 3-3-2) */
.services-detail-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 968px) {
    .services-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .expertise-grid, .services-detail-grid, .pourquoi-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Sections plus compactes sur mobile */
    .section {
        padding: 2.5rem 0;
    }
    
    /* Cartes plus compactes sur mobile */
    .expertise-card, .service-detail-card, .pourquoi-item, .approche-card {
        padding: 1.2rem;
    }
    
    .service-icon, .approche-icon {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }
}
.expertise-card, .service-detail-card, .pourquoi-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.expertise-card h3, .service-detail-card h3, .pourquoi-item h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.3;
    min-height: 2.6rem;
}

.expertise-card p, .service-detail-card p, .pourquoi-item p {
    flex-grow: 1;
    line-height: 1.6;
}
.expertise-card:hover, .service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Carte CTA */
.cta-card {
    background: linear-gradient(135deg, #6B8E7F 0%, #5a7d6f 100%) !important;
}
.cta-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 35px rgba(107, 142, 127, 0.4) !important;
}
.cta-card .btn {
    transition: all 0.3s ease;
}
.cta-card .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
    background: #f8f9fa !important;
}

.icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}
.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}
.service-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}
.service-features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
    padding-left: 0;
}
.service-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.5;
}
.service-features i {
    color: var(--success);
    margin-top: 0.25rem;
}
.featured {
    border: 3px solid var(--primary-color);
    position: relative;
}
.featured-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Consultation individuelle - catégories de services */
.consultation-card .service-intro {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.service-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
    text-align: left;
}

.service-category {
    background: linear-gradient(135deg, rgba(107, 142, 127, 0.05) 0%, rgba(107, 142, 127, 0.02) 100%);
    padding: 1rem 1.2rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.service-category:hover {
    background: linear-gradient(135deg, rgba(107, 142, 127, 0.1) 0%, rgba(107, 142, 127, 0.05) 100%);
    transform: translateX(5px);
}

.service-category h4 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.service-category h4 i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.service-category p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-extras {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(107, 142, 127, 0.15);
}

.service-extras li {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .service-categories {
        gap: 0.8rem;
    }
    .service-category {
        padding: 0.9rem 1rem;
    }
    .service-category h4 {
        font-size: 0.95rem;
    }
    .service-category p {
        font-size: 0.85rem;
    }
}


/* Process Steps */
.step-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}
.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    position: absolute;
    top: 2rem;
    right: 2rem;
}
.step-card h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.step-subtitle {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}
.step-content ul {
    list-style: none;
    margin: 1.5rem 0;
}
.step-content li {
    padding: 0.5rem 0;
    display: flex;
    gap: 0.5rem;
}
.step-card.highlight {
    border-left: 5px solid var(--primary-color);
}
.info-box {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

/* Approach Cards */
.approches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

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

.approche-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.approche-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateX(5px);
}
.approche-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}
.approche-finalite {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.approche-effet {
    color: var(--primary-color);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Resources Tabs */
.ressources-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.ressources-tab {
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}
.ressources-tab:hover, .ressources-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.ressources-tab-content {
    display: none;
}
.ressources-tab-content.active {
    display: block;
}
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.resource-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    align-items: flex-start;
}

@media (max-width: 768px) {
    .resource-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
.resource-item i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}
.resource-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.resource-content a {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.avertissement-box {
    background: #fff3cd;
    border-left: 5px solid var(--warning);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}
.urgence-box {
    background: #f8d7da;
    border-left: 5px solid var(--danger);
    padding: 2rem;
    border-radius: 8px;
}
.urgent-link {
    color: var(--danger);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

@media (max-width: 768px) {
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
}
.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-secondary);
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(90, 125, 111, 0.1);
}
.checkbox-label {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

/* Quotes */
.quote, .quote-special {
    background: var(--bg-light);
    padding: 2rem;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    margin: 2rem 0;
    font-style: italic;
}
.quote i, .quote-special i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Timeline */
.formations-timeline {
    position: relative;
    padding-left: 3rem;
}
.timeline-item {
    position: relative;
    padding: 1.5rem 0;
}
.timeline-dot {
    position: absolute;
    left: -40px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}
.timeline-year {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.institution {
    color: var(--text-light);
    font-style: italic;
}

/* CTA Section */
.section-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}
.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Section Mon Parcours */
.section-mon-parcours {
    padding: 4rem 0;
}

.section-mon-parcours .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

.parcours-intro {
    margin-bottom: 3rem;
    text-align: center;
}

.parcours-intro .lead {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-dark);
}

.parcours-qualites {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 3rem;
}

.qualite-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .qualite-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
}

.qualite-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.qualite-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    color: white;
    font-size: 2rem;
}

.qualite-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.qualite-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

.qualite-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Citation spéciale dans section Mon Parcours */
.section-mon-parcours .quote-special {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2.5rem;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    margin: 3rem auto;
    max-width: 900px;
    position: relative;
}

.section-mon-parcours .quote-special i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-mon-parcours .quote-special p {
    font-family: var(--font-primary);
    color: var(--text-dark);
    margin: 0;
}

.section-mon-parcours .quote-special footer {
    text-align: right;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

.footer h3, .footer h4 {
    color: white;
    margin-bottom: 1rem;
}
.footer-tagline {
    font-style: italic;
    opacity: 0.8;
}
.footer ul {
    list-style: none;
}
.footer ul li {
    padding: 0.3rem 0;
}
.footer a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}
.footer a:hover {
    color: white;
}
.footer-contact i {
    margin-right: 0.5rem;
}
.logo-otstcfq {
    max-width: 100px;
    margin-top: 1rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}
.footer-legal {
    margin-top: 0.5rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    z-index: 999;
    font-size: 1.2rem;
}
.back-to-top.visible {
    opacity: 1;
}
.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.6s ease-out;
}
.fade-in-up {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.4rem 15px;
        height: 55px;
    }
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 55px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 1rem 0;
        gap: 0.3rem;
    }
    .nav-menu li {
        width: 100%;
    }
    .nav-menu a {
        display: block;
        padding: 0.6rem 1rem;
        width: 100%;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-toggle {
        display: flex;
    }
    .logo-text {
        font-size: 1.4rem;
    }
    .logo-subtitle {
        font-size: 0.7rem;
    }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-tagline { font-size: 1.4rem; }
    .hero-description { font-size: 1.05rem; padding: 0 1rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 90%; max-width: 300px; }
    .content-grid, .intro-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .expertise-grid, .services-detail-grid {
        grid-template-columns: 1fr;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section { padding: 2.5rem 0; }
    .page-header { padding: 2rem 0; }
    .step-number { 
        position: static; 
        margin: 0 auto 1rem; 
    }
    
    /* Mon Parcours responsive */
    .qualite-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .qualite-icon {
        margin: 0 auto 1.5rem;
    }
    
    .qualite-content h3 {
        font-size: 1.3rem;
    }
    
    .section-mon-parcours .quote-special {
        padding: 1.5rem;
    }
    
    .section-mon-parcours .quote-special p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .ressources-nav {
        flex-direction: column;
    }
    .ressources-tab {
        width: 100%;
    }
    
    /* Ebooks responsive */
    .ebook-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===========================
   SECTION PUBLICATIONS - EBOOKS
   =========================== */

.section-publications {
    padding: 4rem 0;
}

.ebook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    align-items: stretch;
}

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

.ebook-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ebook-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.ebook-cover {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-primary);
    font-weight: 600;
}

.ebook-status {
    color: white;
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ebook-card h3 {
    padding: 0 1.5rem;
    color: var(--text-dark);
}

.ebook-card .subtitle {
    padding: 0 1.5rem;
    font-size: 0.95rem;
}

.ebook-details {
    padding: 0 1.5rem;
    margin-top: 1rem;
}

.ebook-details ul {
    list-style: none;
    padding: 0;
}

.ebook-details li {
    padding: 0.4rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.price {
    padding: 0 1.5rem;
}

.form-newsletter {
    padding: 0 1.5rem 1.5rem;
}

.form-newsletter h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.offre-card {
    transition: all 0.3s ease;
}

.offre-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Messages de formulaire newsletter */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: slideIn 0.3s ease-out;
}

.form-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   PARCOURS NARRATIVE SECTION
   Styles pour la version humanisée
   =========================== */

.parcours-narrative { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 0 1rem;
}

.parcours-narrative p { 
    font-size: 1.1rem; 
    line-height: 1.9; 
    margin-bottom: 1.8rem; 
    text-align: justify;
    color: var(--text-dark);
}

.parcours-narrative .lead { 
    font-size: 1.3rem; 
    font-weight: 400; 
    margin-bottom: 2rem;
    color: var(--text-dark);
    line-height: 1.9;
}

.parcours-highlights { 
    margin-top: 4rem; 
}

.parcours-highlights h3 {
    text-align: center; 
    margin-top: 0;
    margin-bottom: 2.5rem; 
    color: #2C3E50;
    font-size: 2rem;
}

.highlights-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem; 
    margin-top: 2rem;
}

.highlight-item { 
    background: white; 
    padding: 2rem 1.5rem; 
    border-radius: 12px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.highlight-item i { 
    font-size: 2.8rem; 
    color: #6B8E7F; 
    margin-bottom: 1.2rem;
    flex-shrink: 0;
}

.highlight-item h4 { 
    color: #2C3E50; 
    margin-bottom: 0.8rem; 
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
}

.highlight-item p { 
    color: #6B7280; 
    font-size: 0.95rem; 
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Modalités section - uniformisation */
/* Section Modalités - espacements réduits */
.section-modalites {
    padding: 3rem 0 !important;
}

.section-modalites .section-header {
    margin-bottom: 2rem;
}

.section-modalites .section-title {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

/* Modalités grid - espacements réduits */
.modalites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Cartes Modalités - plus compactes */
.modalite-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.modalite-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.modalite-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.modalite-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.modalite-logo {
    margin-top: 1rem;
    width: 100%;
}

@media (max-width: 768px) {
    .section-modalites {
        padding: 2rem 0 !important;
    }
    .modalites-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-top: 1.2rem;
    }
    .modalite-card {
        min-height: auto;
        padding: 1.3rem;
    }
    .modalite-card i {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }
    .modalite-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
}

/* Section Modalités Info */
    background: var(--bg-light);
    padding: 5rem 0;
}

/* SUPPRIMÉ - règles maintenant regroupées dans .section-modalites */

.modalites-info-grid {
    color: #2C3E50 !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

a[href^="tel"]:hover {
    color: #5a7d6f !important;
}

/* Téléphone dans les boutons CTA */
.btn-secondary[href^="tel"],
.btn-secondary[href^="tel"]:hover {
    border-color: #2C3E50;
    color: #2C3E50;
    font-weight: 600;
}

.btn-secondary[href^="tel"]:hover {
    background: #2C3E50;
    color: white !important;
}

/* Téléphone dans footer et sections contact */
.footer-contact a[href^="tel"],
.contact-item a[href^="tel"] {
    color: #2C3E50 !important;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-contact a[href^="tel"] {
    color: rgba(255,255,255,0.95) !important;
}

.footer-contact a[href^="tel"]:hover {
    color: white !important;
}

.contact-item a[href^="tel"]:hover {
    color: #5a7d6f !important;
}

/* Téléphone en strong (texte en gras) */
strong:has(+ strong) {
    color: #2C3E50;
}

/* Numéros en évidence dans le texte */
p strong {
    color: #2C3E50;
}

/* Modalités card - téléphone */
.modalites-card strong {
    color: #2C3E50;
    font-size: 1.05rem;
}

/* Bouton téléphone amélioré - CTA */
.btn-secondary[href^="tel"] {
    border-color: #2C3E50 !important;
    color: #2C3E50 !important;
    font-weight: 700 !important;
    background: white;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

.btn-secondary[href^="tel"]:hover {
    background: #2C3E50 !important;
    color: white !important;
    border-color: #2C3E50 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
}

.btn-secondary[href^="tel"] i {
    margin-right: 0.5rem;
}

/* Numéro de téléphone dans la page Contact - ultra visible */
.contact-item h3 + p a[href^="tel"] {
    color: #2C3E50 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #2C3E50;
    transition: all 0.3s ease;
}

.contact-item h3 + p a[href^="tel"]:hover {
    background: #2C3E50;
    color: white !important;
    transform: translateX(5px);
    border-left-color: #5a7d6f;
}

/* ===========================
   ALIGNEMENT ET MISE EN PAGE - AMÉLIORATIONS
   =========================== */

/* Uniformisation des espacements verticaux */
.section {
    padding: 5rem 0;
}

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

/* Centrage et alignement des contenus */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Grilles uniformisées - toutes avec align-items: stretch */
.expertise-grid,
.services-detail-grid,
.pourquoi-grid,
.modalites-grid,
.philosophie-grid,
.competences-grid,
.approches-grid,
.ebook-grid,
.highlights-grid,
.modalites-info-grid {
    align-items: stretch;
}

/* Cartes avec hauteur uniforme */
.expertise-card,
.service-detail-card,
.pourquoi-item,
.modalite-card,
.philosophie-card,
.competence-item,
.approche-card,
.ebook-card,
.highlight-item,
.modalites-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Contenu des cartes avec flex-grow pour remplir l'espace */
.expertise-card > *:last-child,
.service-detail-card > *:last-child,
.pourquoi-item > *:last-child,
.modalite-card > *:last-child,
.philosophie-card > *:last-child,
.competence-item > *:last-child,
.approche-card > *:last-child {
    margin-top: auto;
}

/* Services grid - alignement spécifique */
.services-brief-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
}

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

.service-brief-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.service-brief-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-brief-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-brief-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.service-brief-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* FAQ items - alignement */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* Philosophie grid */
.philosophie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

.philosophie-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: var(--transition);
}

.philosophie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.philosophie-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.philosophie-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.philosophie-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Compétences grid */
.competences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

.competence-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: var(--transition);
}

.competence-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.competence-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.competence-item h3 {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.competence-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Modalités grid */
/* SUPPRIMÉ - règle maintenant regroupée plus haut */

/* Intro photo et contenu - meilleur alignement */
.intro-grid {
    align-items: center;
}

.intro-image {
    position: relative;
}

.intro-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.credentials-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.credentials-logo {
    max-width: 60px;
    height: auto;
}

/* Affiliation box */
.affiliation-box {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .affiliation-box {
        flex-direction: column;
        text-align: center;
    }
}

.affiliation-logo {
    max-width: 120px;
    height: auto;
    flex-shrink: 0;
}

.affiliation-text {
    flex: 1;
}

.affiliation-number {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0.5rem 0;
}

/* Alignement texte justifié seulement sur desktop */
@media (min-width: 769px) {
    .parcours-narrative p,
    .qualite-content p {
        text-align: justify;
    }
}

/* Fix pour éviter les débordements */
img {
    max-width: 100%;
    height: auto;
}

/* Tous les conteneurs doivent être centrés */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Uniformisation des marges de titres */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
}

h2 + p, h3 + p, h4 + p {
    margin-top: 0.5rem;
}

/* Boutons alignés et uniformes */
.hero-buttons,
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
        max-width: 350px;
    }
}