/* =====================================================
   VARIABLES & RESET - CHARTE AVT SESAM
   ===================================================== */

:root {
    /* Couleurs principales AVT - d'après les visuels du site */
    --primary-color: #3d7edb;        /* Bleu monétique AVT (déduit de l'image 2) */
    --primary-dark: #2d5a99;         /* Bleu foncé pour hero/footer */
    --primary-light: #6ba0d9;        /* Bleu clair pour survol */
    --primary-lighter: #e8f1fb;      /* Bleu très clair pour fonds */

    --secondary-color: #01c78c;      /* Vert santé AVT (confirmé) */
    --secondary-dark: #01a073;       /* Vert foncé */
    --secondary-light: #33d4a3;      /* Vert clair */
    --secondary-lighter: #e6faf3;    /* Vert très clair pour fonds */

    --accent-color: #3d7edb;         /* Bleu accent */


    /* Couleurs neutres */
    --text-dark: #1C1D28;
    --text-medium: #4D5457;
    --text-light: #75777B;

    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-lighter: #ECF0F1;

    /* Couleurs sémantiques */
    --success: #01c78c;              /* Vert AVT */
    --warning: #F29005;
    --error: #E85E56;

    /* Bordures */
    --border-color: #E5E7EB;
    --border-radius: 12px;
    --border-radius-small: 8px;

    /* Ombres */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Espacements */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;

    /* Typographie - gérée par header.php */

    /* Transitions */
    --transition-base: all 0.3s ease;
}

* {
    box-sizing: border-box;
}
p { margin:0; }

/* Styles globaux pour les icônes Phosphor */
.ph, .ph-duotone {
    color: var(--accent-color);
}

body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #EEE !important;
}
#conteneur { background-color: #fff }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.main-container {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
}

/* =====================================================
   SECTIONS GÉNÉRALES
   ===================================================== */

section {
    margin-bottom: var(--spacing-sm);
}
section:not(.section-cta):has(+ section.section-cta) {
    margin-bottom: 0 !important;
    border-bottom:none;
}


/*section:first-of-type { padding-top:var(--spacing-xxl); }*/

/*section:first-of-type { padding-top:var(--spacing-xxl); }*/

section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 var(--spacing-md) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

section h2 i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
   BREADCRUMB
   ===================================================== */

.breadcrumb {
    background: white;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--text-medium);
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: var(--spacing-xs);
    color: var(--text-light);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition-base);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.service-hero {
    background: linear-gradient(135deg, #0A1C56 0%, #1a3d8f 100%);
    color: white;
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(640px, -50%);
    width: 640px;
    height: 100%;
	background-repeat: no-repeat;
	background-position: right center;
    background-size: contain;
    /*opacity: 0.85;*/
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 800px;
    margin:0 0 0;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: var(--spacing-sm);
}

.service-hero h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 var(--spacing-md) 0;
    line-height: 1.1;
    color: white;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 0 var(--spacing-lg) 0;
}

.hero-badges {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: var(--spacing-lg);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* CTA Hero */
.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
    /*justify-content: center;*/
}
.hero-cta i { color:#FFF; }

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 14px 32px;
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-hero-primary {
	color:#fff;
    background-color: var(--primary-color);
}

.btn-hero-primary:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-hero-outline, .btn-hero-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-hero-outline:hover, .btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-hero-tertiary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-hero-tertiary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-hero-tertiary:hover i {
    color: white;
}

/* =====================================================
   SECTIONS GÉNÉRALES
   ===================================================== */

.service-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.service-content section {
    padding: var(--spacing-lg) var(--spacing-xl) var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
}

.service-content section:nth-last-of-type(2) {
    border-bottom: none;
}

.service-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0e2362;
    margin: 0 auto 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.service-content h2 i {
    font-size: 4rem;
    margin-right: 0;
    color: var(--primary-dark);
    opacity: 1;
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 var(--spacing-md) 0;
}

.service-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    height:55px;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-top:5px;
}

.highlight {
    background: linear-gradient(120deg, rgba(22, 181, 221, 0.2) 0%, rgba(22, 181, 221, 0.05) 100%);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

/* =====================================================
   CONTEXTE : LES DÉFIS
   ===================================================== */

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top:35px;
}

.problem-card {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--border-radius-small);
    border-left: 4px solid var(--warning);
    transition: var(--transition-base);
}

.problem-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.problem-icon {
    flex-shrink: 0;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
}

.problem-content h4 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.problem-content p {
    margin: 0;
    color: var(--text-medium);
}

/* =====================================================
   SOLUTION
   ===================================================== */

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    margin-top: 25px;
}

.solution-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition-base);
}

.solution-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.solution-card > i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    display: block;
}

.solution-card h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: var(--spacing-sm) 0;
    height:inherit;
}

.solution-card p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-medium);
}

.solution-note {
    text-align: center;
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* =====================================================
   POUR QUI
   ===================================================== */

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top:25px;
}

.audience-card {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition-base);
}

.audience-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.audience-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
}

.audience-card h3 {
    font-size: 1.1rem;
    margin: var(--spacing-sm) 0;
}

.audience-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.audience-texte {
    margin-top: var(--spacing-lg);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.audience-texte p {
    margin: 0 0 var(--spacing-md);
}

.audience-texte p:last-child {
    margin-bottom: 0;
}

/* =====================================================
   PARCOURS EN 4 ÉTAPES
   ===================================================== */

.journey-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.step {
    background: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    text-align: center;
    transition: var(--transition-base);
    border-right:1px solid lightgrey;
}

.step:hover {
    transform: translateY(-4px);
}

.step:last-of-type {
    border-right: 0;
}

.step-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 0;
    border-radius: var(--border-radius-small);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-md);
}

.step-title {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.step-description {
    color: var(--text-medium);
    font-size: 0.9375rem;
    margin: 0;
}

/* =====================================================
   BÉNÉFICES (3 COLONNES)
   ===================================================== */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: var(--spacing-md);
    margin-top:35px;
}

.benefit-column {
    background: var(--bg-light);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    border-top: 4px solid var(--secondary-color);
}

.benefit-revendeurs {
    border-top-color: var(--primary-color);
}

.benefit-commercants {
    border-top-color: var(--secondary-color);
}

.benefit-consommateurs {
    border-top-color: var(--warning);
}

.benefit-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    display:none;
}

.benefit-header h3 {
    font-size: 1.1rem;
    margin: 0 auto;
    line-height: 1.25;
    font-weight: 600;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-md) 0;
}

.benefit-list li {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    background: white;
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    font-size: 0.95rem;
}

.benefit-list li i {
    color: #666;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.benefit-content {
    flex: 1;
    line-height: 1.5;
}

.benefit-content strong {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.benefit-stat {
    background: white;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-small);
    margin-top: var(--spacing-sm);
    border-left: 3px solid var(--success);
}

.benefit-stat strong {
    color: var(--secondary-color);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 4px;
}

.benefit-stat p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* =====================================================
   FONCTIONNALITÉS (6 CARTES)
   ===================================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: var(--spacing-md);
    margin-top:35px;
}
.feature-card .in {
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
}
.feature-card .img { margin-top:15px; text-align: center}
.feature-card .img img { max-height: 180px }

/* Images insérées via l'éditeur WYSIWYG (TinyMCE) n'importe où dans le contenu
   éditorial (paragraphes des sections, réponses de FAQ, etc.) : elles arrivent avec
   des attributs width/height hardcodés qui débordent en mobile. On force le responsive.
   On exclut .feature-card .img img (vignette plafonnée à 180px par le gabarit).
   Les icônes sont des éléments <i> (Phosphor), donc non concernées par ce sélecteur img. */
.service-content img:not(.feature-card .img img) {
    max-width: 100%;
    height: auto;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition-base);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-medium);
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: var(--spacing-xs) 0;
    color: var(--text-medium);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
}

.feature-list li::before {
    content: '→';
    color: var(--secondary-color);
    font-weight: 700;
    flex-shrink: 0;
}

/* =====================================================
   CE QUE NOUS FOURNISSONS (4 CARTES)
   ===================================================== */

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: 25px;
}

.deliverable-card {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    text-align: center;
    transition: var(--transition-base);
}

.deliverable-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.deliverable-card > i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    display: block;
}

.deliverable-card h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: var(--spacing-sm) 0;
}

.deliverable-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.deliverable-card li {
    padding: var(--spacing-xs) 0;
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.deliverable-card li::before {
    content: '✓ ';
    color: var(--success);
    font-weight: 700;
    margin-right: var(--spacing-xs);
}

/* =====================================================
   PRÉREQUIS & COMPATIBILITÉS
   ===================================================== */

.prerequisites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.prereq-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    transition: var(--transition-base);
}

.prereq-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.prereq-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--bg-lighter);
    min-height: 74px;
}

.prereq-header i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.prereq-header h3 {
    margin: 0;
    font-size: 1.1rem;

}

.prereq-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prereq-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-lighter);
    font-size: 0.95rem;
    color: var(--text-medium);
}

.prereq-card li:last-child {
    border-bottom: none;
}

.prereq-card strong {
    color: var(--text-dark);
    font-weight: 600;
}

.limits-note {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: #fff3cd;
    border-left: 4px solid var(--warning);
    border-radius: var(--border-radius-small);
}

.limits-note i {
    font-size: 1.5rem;
    color: var(--warning);
    flex-shrink: 0;
}

.limits-note strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.limits-note p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* =====================================================
   MISE EN ŒUVRE - TIMELINE
   ===================================================== */

.timeline {
    position: relative;
    padding-left: 0;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
    padding-left: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 0 0 4px white, 0 0 0 6px var(--border-color);
}

.timeline-content {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    border-left: 3px solid var(--accent-color);
}

.timeline-content h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.duration {
    font-size: 0.9rem;
    font-weight: 500;
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-md) 0;
}

.timeline-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-medium);
    font-size: 0.95rem;
}

.timeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.deliverable {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: white;
    border-radius: var(--border-radius-small);
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.deliverable i {
    color: var(--secondary-color);
    flex-shrink: 0;
}

/* =====================================================
   TARIFICATION - PACKS
   ===================================================== */

.pricing-packs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.pack-card {
    position: relative;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-base);
    /*display: flex;*/
    flex-direction: column;
}

.pack-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.pack-featured {
    border-color: var(--primary-color);
    border-width: 3px;
}

.pack-badge {
    position: absolute;
    top: 1rem;
    right: -2.9rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 2.5rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
}

.pack-header {
    padding: var(--spacing-lg);
    text-align: center;
    color: white;
}

.pack-start {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.pack-premium {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

.pack-pro, .pack-gold {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
}

/* Formules spécifiques (Réparation, etc.) */
.pack-niveau-1 {
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
}

.pack-niveau-2 {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

.pack-relooking {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
}

/* Formules génériques (fallback) */
.pack-indirectes {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.pack-directes {
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
}

.pack-header h3 {
    margin: 0;
    font-size: 1.35rem;
    color: white;
}

.pack-subtitle {
    margin: 3px 0 0 0;
    opacity: 0.9;
    font-size: 0.90rem;
}

.pack-features {
    list-style: none;
    padding: var(--spacing-lg);
    background: #FFF;
    margin: 0;
    flex: 1;
}

.pack-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-lighter);
}

.pack-features li:last-child {
    border-bottom: none;
}

.pack-features i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pack-footer {
    padding: var(--spacing-lg);
    text-align: center;
    margin-top: auto;
}

.pack-price {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-note {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: #e3f2fd;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius-small);
}

.pricing-note i {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.pricing-note p {
    margin: 0;
    font-size: 0.95rem;
}

/* TABLEAUX TARIFAIRES (mode tableau) */
.pricing-tables {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-md);
}

.pricing-table {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.pricing-table h3 {
    margin: 0;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.table-tarifs {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.table-tarifs thead {
    background: var(--bg-light);
}

.table-tarifs th {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
}

.table-tarifs td {
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-medium);
}

.table-tarifs tbody tr:hover {
    background: var(--bg-lighter);
    transition: var(--transition-base);
}

.table-tarifs tbody tr:last-child td {
    border-bottom: none;
}

.table-tarifs td:first-child {
    font-weight: 500;
}

.table-tarifs td:nth-child(3),
.table-tarifs td:nth-child(4) {
    font-weight: 600;
    color: var(--primary-color);
}

/* Responsive tableaux */
@media (max-width: 768px) {
    .table-tarifs {
        font-size: 0.85rem;
    }

    .table-tarifs th,
    .table-tarifs td {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* TABLEAU HORAIRES (livraison 24h) */
.horaires-table {
    background: var(--bg-white);
    padding: 0 var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.table-horaires {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 var(--spacing-md) 0;
}

.table-horaires th {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
}

.table-horaires td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.table-horaires tbody tr:hover {
    background: var(--bg-lighter);
    transition: var(--transition-base);
}

.table-horaires .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.table-horaires .badge-success {
    background: #4CAF50;
    color: white;
}

.table-horaires .badge-warning {
    background: #FF9800;
    color: white;
}

.note-horaires {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-lighter);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.note-horaires i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* =====================================================
   DOCUMENTATION & TÉLÉCHARGEMENTS
   ===================================================== */

.section-downloads {
    /* Hérite des styles généraux de section */
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: 25px;
}

.download-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    position: relative;
}

.download-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.download-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--border-radius-small);
    margin: 0 auto;
}

.download-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.download-content {
    flex: 1;
    text-align: center;
}

.download-content h4 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.4;
    height: auto;
    min-height: 45px;
}

.download-description {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: 0;
    line-height: 1.5;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-base);
    margin-top: auto;
}

.download-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.download-btn i {
    font-size: 1.2rem;
    color: white;
}

/* =====================================================
   FAQ - ACCORDÉON
   ===================================================== */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top:35px;

}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    color: var(--text-dark);
    transition: var(--transition-base);
}

.faq-question:hover {
    background: var(--bg-lighter);
    color: var(--primary-color);
}

.faq-item.active .faq-question {
    background: var(--primary-color);
    color: white;
}

.faq-question i {
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: white;
}

.faq-answer {
    display: none;
    padding: var(--spacing-md);
    background: white;
    color: var(--text-medium);
    line-height: 1.7;
    font-size:15px;
}

.faq-item.active .faq-answer {
    display: block;
    animation: slideDown 0.3s ease;
}
section ul { margin-left:20px; margin-bottom:15px; }
section li { margin:5px 0; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-answer p {
    margin: 0 0 var(--spacing-sm) 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* =====================================================
   CTA FINAL
   ===================================================== */

.section-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 0;
    margin:0 !important;
}

.cta-box {
    text-align: center;
    color: white;
}

.cta-box h2 {
    color: white;
    justify-content: center;
    line-height: 1.3;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 600px;
    margin: 40px auto var(--spacing-md) auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 1rem 2rem;
    border-radius: var(--border-radius-small);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn i {
    font-size: 1.2rem;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary i {
    color: white;
}

.btn-secondary:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-tertiary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-tertiary i {
    color: var(--primary-color);
}

.btn-tertiary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-tertiary:hover i {
    color: white;
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline i {
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.btn-outline:hover i {
    color: var(--primary-color);
}

.cta-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* =====================================================
   TOC STICKY (SOMMAIRE)
   ===================================================== */

.toc {
    position: sticky;
    top: 16px;
    height: fit-content;
    background: white;
    border: 1px solid var(--border-color);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.toc h3 {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 1rem;
    color: var(--primary-color);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--border-color);
}

.toc a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--spacing-xs) var(--spacing-sm) var(--spacing-xs) 11px;
    color: var(--text-medium);
    text-decoration: none;
    border-radius: var(--border-radius-small);
    font-size: 0.9rem;
    transition: var(--transition-base);
    margin-bottom: 4px;
}

.toc a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.toc a i {
    font-size: 1.1rem;
    width: 16px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .toc {
        order: -1;
        position: relative;
        top: auto;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: var(--spacing-xl) 0;
    }
    .service-hero::before { 
		background-repeat: no-repeat !important;
		/*background-size: cover !important;*/
		background-position: 35% 50% !important;
    }


    /* ORDRE MOBILE : TAGS > TITRE > IMAGE > TEXTE > CTA */
    .service-hero .container {
        display: flex;
        flex-direction: column-reverse;
    }

    /* 1. BADGES en premier */
    .service-hero .container > div:first-child {
        order: 1;
    }

    /* 2. TITRE */
    .hero-content {
        display: flex;
        flex-direction: column;
        text-align: center;
        margin: var(--spacing-md) 0;
    }

    .hero-content h1 {
        order: 2;
    }

    /* 3. IMAGE hero (::before) */
    .service-hero::before {
        order: 3;
        position: relative;
        transform: none;
        top: auto;
        right: auto;
        width: 100%;
        max-width: 400px;
        height: 250px;
        margin: 0 auto var(--spacing-lg);
        display: block;

    }

    /* 4. TEXTE (subtitle) */
    .hero-subtitle {
        order: 4;
    }

    /* 5. CTA en dernier */
    .hero-cta {
        order: 5;
    }

    /* Badges : alignés à gauche */
    .hero-badges {
        justify-content: flex-start;
    }

    .service-hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* 3. CTA MOBILE : Réduire espacement icône + aligner texte à gauche */
    .hero-cta {
        flex-direction: column;
    }

    .btn-hero {
        gap: var(--spacing-xs);
        text-align: left;
        justify-content: flex-start;
    }

    .btn-hero i {
        margin-right: 4px;
    }

    .service-content section {
        padding: var(--spacing-lg);
    }

    .service-content h2 {
        font-size: 1.75rem;
    }

    .problems-grid,
    .solution-grid,
    .audience-grid,
    .journey-steps,
    .features-grid,
    .deliverables-grid,
    .prerequisites-grid,
    .pricing-packs {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        left: 16px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-marker {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    /* 4. SUPPRIMER CTA GRILLE TARIF SUR MOBILE */
    .pricing-packs .btn,
    .pricing-packs .btn-hero,
    .pricing-packs .cta-button,
    .section-pricing .btn,
    .section-pricing .btn-hero,
    .section-pricing .cta-button {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .service-hero {
        padding: 0 !important;
    }
    .service-hero h1 {
        font-size: 1.75rem;
        margin-top:0;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom:0;
    }

    .service-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 468px) {
    /* TIMELINE MOBILE : Centrer le numéro au-dessus, supprimer la ligne */
    .timeline::before {
        display: none;
    }

    .timeline-item {
        padding-left: 0;
        text-align: center;
        margin-bottom: 0;
    }

    .timeline-marker {
        position: relative;
        left: auto;
        margin: 0 auto var(--spacing-md);
        box-shadow: none;
        width:50px;
        height:50px;
        font-size:36px;
        top:46px;
    }

    .timeline-content {
        text-align: left;
        padding-top:  var(--spacing-xl);
    }

    .timeline-content h3 {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    .pricing-note { 
    	gap: var(--spacing-sm); 
    	padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) var(--spacing-sm);
    }
    .service-content h4 { height:inherit; }
}

/* ============================================================================
   CORRECTIONS CSS APPLIQUÉES LE 2025-11-19
   Correction des problèmes d'affichage service consommables-accessoires
   ============================================================================ */

/* CORRECTION 1 : Afficher les émojis dans benefit-icon */
.benefit-icon {
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    font-size: 1.5rem !important;
    box-shadow: var(--shadow-sm) !important;
}

/* CORRECTION 2 : Labels des caractéristiques sur ligne séparée */
.feature-list li {
    display: block !important;
    position: relative !important;
    padding-left: 20px !important;
    line-height: 1.6 !important;
}

.feature-list li::before {
    position: absolute !important;
    left: 0 !important;
    top: var(--spacing-xs) !important;
}

/* Forcer les labels (strong) sur une ligne séparée */
.feature-list li strong {
    display: block !important;
    color: var(--text-dark) !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}

/* Espacement entre les items */
.feature-list li + li {
    margin-top: var(--spacing-sm) !important;
}
