/* ============================================
   SARTHEWEBCONSULTING - Site sur mesure 2026
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* === VARIABLES === */
:root {
    --primary: #1e3a5f;
    --primary-dark: #142942;
    --primary-light: #2a5a8f;
    --accent-orange: #f4a261;
    --accent-orange-dark: #e07b3a;
    --gradient-orange: linear-gradient(135deg, #f4a261 0%, #e07b3a 100%);
    --gradient-blue: linear-gradient(135deg, #b8c6db 0%, #1e3a5f 100%);
    --gradient-hero: linear-gradient(135deg, #dbe4f0 0%, #f0e6d8 50%, #c8d8f0 100%);
    --text: #2d3748;
    --text-light: #718096;
    --text-lighter: #a0aec0;
    --bg: #ffffff;
    --bg-light: #f7fafc;
    --bg-alt: #edf2f7;
    --border: #e2e8f0;
    --success: #48bb78;
    --error: #fc8181;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 6px 10px rgba(0,0,0,0.08);
    --max-width: 1200px;
    --header-height: 80px;
}

/* === RESET === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-orange);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-orange);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-orange);
    color: #fff;
    box-shadow: 0 4px 14px rgba(244, 162, 97, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 162, 97, 0.45);
    color: #fff;
}

.btn-secondary {
    background: var(--primary);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    z-index: 99999;
    transition: box-shadow 0.3s;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo img {
    height: 48px;
    width: auto;
}

.header-logo span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav .btn {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 6px;
    white-space: nowrap;
}

.nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 4px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s;
}

.nav a.btn::after {
    display: none;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav .btn {
    margin-left: 8px;
}

/* Mobile menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === HERO === */
.hero {
    padding: 140px 0 80px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    white-space: nowrap;
}

.hero-content h1 span {
    color: var(--accent-orange);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 28px;
    max-width: 520px;
}

.hero-badges {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--text-light);
    background: rgba(255,255,255,0.8);
    padding: 7px 13px;
    border-radius: 20px;
    border: 1px solid var(--border);
    white-space: nowrap;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    fill: var(--success);
}

a.hero-badge {
    text-decoration: none;
    transition: all 0.3s;
}

a.hero-badge:hover {
    background: rgba(255,255,255,1);
    border-color: var(--accent-orange);
    color: var(--primary);
}

/* Hero compact pour pages internes */
.hero.hero-sm {
    padding: 130px 0 50px;
}

.hero.hero-sm .hero-content h1 {
    font-size: 2.2rem;
}

.hero-image {
    flex: 0 0 400px;
}

.hero-image img {
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

/* === ENGAGEMENTS === */
.engagements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.engagement-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.engagement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-orange);
}

.engagement-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--gradient-hero);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.engagement-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.engagement-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    margin: 0;
}

/* === SERVICES === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-orange);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f0e6d8 0%, #dbe4f0 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 16px;
    flex: 1;
}

.service-card a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-orange);
}

/* === AVIS / TRUSTINDEX === */
.avis-section {
    background: linear-gradient(135deg, #2a5080 0%, #1e3a5f 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.avis-section h2 {
    color: #fff;
    margin-bottom: 8px;
}

.avis-section h2::after {
    background: var(--accent-orange);
}

.avis-section p {
    color: rgba(255,255,255,0.7);
}

/* Trustindex : conteneur avec fond degrade semi-transparent */
.avis-section #trustindex-widget {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border-radius: 16px;
    padding: 20px 12px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Trustindex : texte blanc sur le resume lateral (Excellent, Basee sur X avis) */
.avis-section .ti-widget .ti-reviews-container-left,
.avis-section .ti-widget .ti-reviews-container-left * {
    color: #fff !important;
}
.avis-section .ti-widget .ti-header,
.avis-section .ti-widget .ti-header * {
    color: #fff !important;
}

/* === FAQ === */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    transition: transform 0.3s;
    color: var(--accent-orange);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    padding: 0 24px 18px;
    max-height: 500px;
}

/* === PORTFOLIO === */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.portfolio-filter {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text);
}

.portfolio-filter:hover,
.portfolio-filter.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

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

.portfolio-item {
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    transition: all 0.3s;
    overflow: hidden;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-orange);
}

.portfolio-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* === PRICING === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 2px var(--accent-orange);
}

.pricing-card.featured::before {
    content: 'Populaire';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-orange);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 12px;
}

.pricing-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.pricing-price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
}

.pricing-period {
    font-size: 0.85rem;
    color: var(--text-lighter);
    margin-bottom: 24px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 24px;
}

.pricing-features li {
    padding: 6px 0;
    font-size: 0.88rem;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pricing-features li::before {
    content: '\2713';
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-features li.not-included {
    text-decoration: line-through;
    opacity: 0.5;
}

.pricing-features li.not-included::before {
    content: '\2717';
    color: var(--text-lighter);
}

.pricing-separator {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 16px 0 8px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
    text-align: left;
}

/* === CONTACT === */
.contact-section {
    background: var(--primary);
    color: #fff;
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    color: #fff;
    margin-bottom: 16px;
}

.contact-info p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
}

.contact-details {
    margin-bottom: 24px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 16px;
}

.contact-map iframe {
    width: 100%;
    height: 200px;
    border: none;
}

/* Form */
.contact-form {
    background: var(--bg);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.3s;
    background: var(--bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-antispam {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.form-antispam label {
    font-size: 0.88rem;
    color: var(--text);
    margin: 0;
}

.form-message {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #c6f6d5;
    display: block;
}

.form-message.error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
    display: block;
}

/* === ABOUT PAGE === */
.about-hero {
    padding: 140px 0 60px;
    background: var(--gradient-hero);
}

.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
}

.about-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
}

.about-photo img {
    width: 100%;
}

.about-content h1 {
    margin-bottom: 20px;
}

.about-content h2 {
    font-size: 1.4rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

/* Skills bars */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
}

.skill-bar {
    background: var(--bg-alt);
    border-radius: 20px;
    overflow: hidden;
    height: 32px;
    position: relative;
}

.skill-bar-fill {
    height: 100%;
    background: var(--gradient-orange);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding-left: 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    transition: width 1s ease-out;
}

/* Certifications */
.certifications {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.certification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.88rem;
    font-weight: 500;
}

.certification img {
    height: 32px;
}

/* === FOOTER === */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-brand img {
    height: 48px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    padding: 4px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
}

.footer h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    padding: 4px 0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
    color: var(--accent-orange);
}

/* === PAGES INTERNES === */
.page-header {
    padding: 140px 0 50px;
    background: var(--gradient-hero);
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Service detail page */
.service-detail {
    padding: 60px 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.service-steps {
    counter-reset: step;
}

.service-step {
    padding: 20px 24px;
    margin-bottom: 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-left: 3px solid var(--accent-orange);
    cursor: pointer;
    transition: all 0.3s;
}

.service-step:hover {
    background: var(--bg-alt);
}

.service-step h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-step p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.service-step.active p {
    max-height: 200px;
    margin-top: 8px;
}

/* Pricing detail */
.pricing-creation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.pricing-creation-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s;
}

.pricing-creation-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-creation-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.pricing-creation-card .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 4px;
}

.pricing-creation-card .price-note {
    font-size: 0.8rem;
    color: var(--text-lighter);
    margin-bottom: 16px;
}

.pricing-creation-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Mentions / Confidentialite */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.legal-content h2 {
    font-size: 1.3rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content p {
    font-size: 0.92rem;
    color: var(--text-light);
}

/* === CTA BANNER === */
.cta-banner {
    background: var(--gradient-orange);
    padding: 48px 0;
    text-align: center;
}

.cta-banner h2 {
    color: #fff;
    margin-bottom: 8px;
}

.cta-banner p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 24px;
}

.cta-banner .btn {
    background: #fff;
    color: var(--primary);
}

.cta-banner .btn:hover {
    background: var(--primary);
    color: #fff;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .engagements-grid,
    .services-grid,
    .portfolio-grid,
    .pricing-grid,
    .pricing-creation-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 28px;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-image {
        flex: none;
        max-width: 350px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-photo {
        max-width: 250px;
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero { padding: 120px 0 60px; }
    .hero-content h1 { font-size: 1.8rem; white-space: normal; }
    .hero-content { text-align: center; }
    .hero-content p { text-align: center; }
    .hero-content > div { justify-content: center; }
    .section { padding: 60px 0; }

    .nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 32px 24px;
        gap: 16px;
        border-top: 1px solid var(--border);
        z-index: 10000;
        overflow-y: auto;
        align-items: center;
        -webkit-overflow-scrolling: touch;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        font-size: 1.1rem;
    }

    /* Dropdown mobile : pas de hover, afficher directement */
    .nav-dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .nav-dropdown-menu {
        display: none;
        flex-direction: column;
        position: static;
        box-shadow: none;
        border: none;
        padding: 8px 0;
        min-width: auto;
        align-items: center;
        background: transparent;
        width: 100%;
        text-align: center;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: flex !important;
    }

    .nav-dropdown-menu a {
        font-size: 0.92rem;
        color: var(--text-light);
        padding: 6px 12px;
        width: 100%;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .engagements-grid,
    .services-grid,
    .portfolio-grid,
    .pricing-grid,
    .pricing-creation-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 { font-size: 1.75rem; }
    .pricing-price { font-size: 2rem; }
    .contact-form { padding: 24px; }
}

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

.animate-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu { display:none; position:absolute; top:100%; left:0; background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:8px 0; min-width:220px; box-shadow:var(--shadow-lg); z-index:100; }
.nav-dropdown:hover .nav-dropdown-menu { display:block; }

/* ================================================================
   RESPONSIVE OVERHAUL 2026 — typographie fluide, breakpoint tablette,
   touch targets 44px, hero flexible, paddings mobiles
   ================================================================ */

/* --- 1. TYPOGRAPHIE FLUIDE — clamp(min, fluid, max) ---
   Chaque taille s'adapte continûment de 320px à 1440px,
   sans saut brutal entre breakpoints. */
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem,  1.1rem + 1.8vw, 2rem); }
h3 { font-size: clamp(1.2rem,  1rem   + 1vw,   1.5rem); }
h4 { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); }

.section-title h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2rem); }
.section-title p  { font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.1rem); }

.hero-content h1 {
    font-size: clamp(1.85rem, 1.1rem + 3.5vw, 2.8rem);
    /* Empêche les coupures forcées sur mobile */
    white-space: normal;
}
.hero-content p { font-size: clamp(0.98rem, 0.92rem + 0.5vw, 1.15rem); }
.hero.hero-sm .hero-content h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem); }

p { font-size: clamp(0.95rem, 0.92rem + 0.2vw, 1rem); }

/* --- 2. BREAKPOINT TABLETTE (intermédiaire 769–1024px) ---
   Évite la transition brutale 4→2 colonnes et les surfaces vides. */
@media (min-width: 769px) and (max-width: 1024px) {
    .engagements-grid,
    .services-grid,
    .portfolio-grid,
    .pricing-grid,
    .pricing-creation-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    /* Si la dernière ligne contient 1 ou 2 cartes, elles restent centrées correctement
       grâce à la logique grid native — pas de bidouille nécessaire. */

    .container { padding: 0 32px; }
    .section { padding: 70px 0; }
}

/* --- 3. TOUCH TARGETS — 44×44px minimum (norme Apple HIG / Material Design) --- */
@media (max-width: 1024px) {
    .nav a:not(.btn) {
        padding: 12px 8px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .hamburger {
        min-width: 44px;
        min-height: 44px;
        padding: 12px;
        display: none; /* géré ailleurs : flex en <768px */
        align-items: center;
        justify-content: center;
    }
    .footer-links a {
        padding: 8px 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .nav-dropdown > a,
    .nav-dropdown-menu a {
        min-height: 44px;
        padding: 12px 16px;
    }
}

/* Empêche que le hamburger en mobile (flex) perde sa taille minimale */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        min-width: 44px;
        min-height: 44px;
    }
}

/* --- 4. HERO IMAGE FLEXIBLE ---
   Avant : flex 0 0 400px → ne scalle pas. Maintenant : largeur fluide. */
.hero-image {
    flex: 1 1 320px;
    max-width: clamp(220px, 32vw, 420px);
}
.hero-image img,
.hero-image svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1024px) {
    .hero-image { max-width: min(420px, 70vw); }
}
@media (max-width: 480px) {
    .hero-image { max-width: 80vw; }
}

/* --- 5. GAPS & PADDINGS MOBILES ---
   .hero, .container, sections : valeurs adaptées sous 480px et 360px. */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero { padding: 110px 0 50px; }
    .hero .container { gap: 32px; }
    .section { padding: 56px 0; }
    .section-title { margin-bottom: 36px; }

    .footer-grid { gap: 28px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 100px 0 40px; }
    .hero .container { gap: 24px; }
    .section { padding: 44px 0; }
    .section-title { margin-bottom: 28px; }

    .engagement-card,
    .service-card { padding: 24px 18px; }

    .btn { padding: 12px 22px; min-height: 44px; }
    .btn-lg { padding: 14px 28px; min-height: 48px; }
}

@media (max-width: 360px) {
    .container { padding: 0 14px; }
    .hero-content h1 { font-size: 1.6rem; }
    .section { padding: 36px 0; }
}

/* --- BONUS : préviens les débordements horizontaux (cause #1 des problèmes mobile) --- */
html, body { overflow-x: hidden; }
img, video, iframe, svg { max-width: 100%; height: auto; }
table { display: block; max-width: 100%; overflow-x: auto; }

/* --- BONUS : champs de formulaire 16px min (empêche le zoom auto iOS) --- */
input, select, textarea { font-size: max(16px, 1rem); }
.nav-dropdown-menu a { display:block; padding:8px 20px; font-size:0.88rem; white-space:nowrap; }
.nav-dropdown-menu a:hover { background:var(--bg-light); }
