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

:root {
    --primary: #9eb2fb;
    --primary-dark: #6e85d3;
    --primary-soft: #dce4ff;
    --accent-yellow: #ffeb99;
    --bg-cream: #fffaf6;
    --text-dark: #2d2d42;
    --text-body: #555566;
    --text-light: #777777;
    --white: #ffffff;
    --border-light: #f0f0f8;
    --radius: 16px;
    --shadow-sm: 0 4px 12px rgba(158, 178, 251, 0.1);
    --shadow-hover: 0 12px 32px rgba(158, 178, 251, 0.2);
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body { font-family: 'Inter', -apple-system, sans-serif; color: var(--text-body); background-color: var(--bg-cream); line-height: 1.7; font-size: 16px; overflow-x: hidden; }

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; color: var(--text-dark); line-height: 1.25; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }

/* ===========================
   2. UTILITAIRES & ANIMATIONS
   =========================== */
.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 4rem; }
.mt-auto { margin-top: auto; }
.bg-white { background-color: var(--white); }

.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1.5rem; letter-spacing: -1px; }
.badge-title { display: inline-block; background-color: transparent; color: var(--text-dark); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1rem; }

/* --- Handwritten accent font (Caveat Brush) --- */
.handwritten { font-family: 'Caveat Brush', cursive; }
.handwritten-accent {
    font-family: 'Caveat Brush', cursive;
    color: var(--primary-dark);
    font-size: 1.15em;
}

/* --- Animated highlight underline --- */
.highlight-word {
    position: relative;
    display: inline;
    white-space: nowrap;
}
.highlight-word::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -2px;
    right: -2px;
    height: 35%;
    background: var(--accent-yellow);
    z-index: -1;
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.highlight-word.is-highlighted::after {
    transform: scaleX(1);
}

/* --- Animations d'entrée (Hero) --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.fade-in { opacity: 0; animation: fadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.fade-in-up { opacity: 0; animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.8s; }
.delay-3 { animation-delay: 1.4s; }
.delay-4 { animation-delay: 1.8s; }

/* --- Animations au Scroll (Reveal) --- */
.reveal-up, .reveal-left, .reveal-zoom {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-zoom { transform: scale(0.9); }

.reveal-up.is-visible, 
.reveal-left.is-visible, 
.reveal-zoom.is-visible {
    opacity: 1;
    transform: none;
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* --- Floating emojis --- */
@keyframes floatEmoji { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes floatEmoji2 { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes floatEmoji3 { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-6px) rotate(-2deg); } }
.float-1 { animation: floatEmoji 3s ease-in-out infinite; }
.float-2 { animation: floatEmoji2 3.5s ease-in-out infinite; }
.float-3 { animation: floatEmoji3 4s ease-in-out infinite; }

/* ===========================
   3. COMPOSANTS (Boutons CTA)
   =========================== */
.btn {
    display: inline-block; padding: 0.9rem 2.2rem; border-radius: 50px;
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    transition: var(--transition); border: 2px solid transparent;
    text-align: center; letter-spacing: 0.3px; position: relative; overflow: hidden;
}
.btn--primary {
    background-color: var(--primary); color: var(--white);
    box-shadow: 0 4px 15px rgba(158, 178, 251, 0.4);
}
.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(158, 178, 251, 0.5);
}
.btn--outline {
    background-color: var(--white); color: var(--text-dark);
    border-color: var(--border-light);
}
.btn--outline:hover {
    border-color: var(--primary); color: var(--primary);
    transform: translateY(-3px); box-shadow: var(--shadow-sm);
}
.btn--full { width: 100%; }

/* --- Button particle burst effect --- */
.btn-particles {
    position: absolute; top: 50%; left: 50%;
    width: 4px; height: 4px; border-radius: 50%;
    pointer-events: none; z-index: 10;
}

/* --- Card 3D tilt --- */
.card {
    background: var(--white); border-radius: var(--radius);
    padding: 3.5rem 2.5rem; transition: all var(--transition);
    border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
    position: relative; overflow: hidden;
    transform-style: preserve-3d; perspective: 800px;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover); border-color: var(--primary-soft);
}
/* Subtle gradient shimmer on cards */
.card::before {
    content: '';
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(158,178,251,0.04), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}
.card:hover::before { left: 100%; }

/* ===========================
   4. HEADER STICKY & LOGO IMAGE
   =========================== */
.header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 250, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 0.8rem 0; transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(158, 178, 251, 0.15); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.nav__menu { display: flex; align-items: center; gap: 2rem; flex: 1; }
.nav__menu--left { justify-content: flex-start; }
.nav__menu--right { justify-content: flex-end; }
.nav__link { font-size: 0.95rem; font-weight: 600; color: var(--text-body); position: relative; z-index: 1; }
.nav__link:hover, .nav__link.active { color: var(--primary-dark); }
.nav__link.active::after {
    content: ''; position: absolute; bottom: -6px; left: 0;
    width: 100%; height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M 2 5 Q 50 8 98 3' stroke='%236e85d3' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
    background-size: 100% 100%; z-index: -1;
}

.nav__link--cta {
    background-color: var(--primary-soft); color: var(--primary-dark) !important;
    padding: 0.6rem 1.5rem; border-radius: 12px;
}
.nav__link--cta:hover { background-color: var(--primary); color: var(--white) !important; }
.nav__link--cta.active {
    background-color: var(--primary); color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(158, 178, 251, 0.4);
}
.nav__link--cta.active::after { display: none; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 1001; }
.nav__toggle span { width: 24px; height: 2px; background-color: var(--text-dark); border-radius: 2px; transition: var(--transition); }
.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav__logo { display: flex; align-items: center; transition: transform var(--transition); }
.nav__logo img { height: 60px; width: auto; object-fit: contain; }
.nav__logo:hover { transform: scale(1.05); }

/* ===========================
   5. PAGE TRANSITION OVERLAY
   =========================== */
.page-transition {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--primary-soft);
    z-index: 9999; pointer-events: none;
    transform: scaleY(0); transform-origin: top;
}

/* ===========================
   6. PAGE HEADERS
   =========================== */
.page-header { padding: 6rem 0 3rem; position: relative; }
.page-header__text { font-size: 1.15rem; max-width: 800px; margin: 0 auto; color: var(--text-body); line-height: 1.6; }

/* ===========================
   7. PRICING SECTION
   =========================== */
.pricing-section { padding: 2rem 0 5rem; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: stretch; }
.pricing-card {
    background: var(--white); border-radius: var(--radius); padding: 2.5rem;
    border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
    transition: var(--transition); display: flex; flex-direction: column; position: relative;
}
.pricing-card--featured {
    border: 1px solid var(--primary); background-color: var(--white);
    transform: scale(1.02); box-shadow: 0 12px 32px rgba(158, 178, 251, 0.15);
}
.pricing-card:hover { transform: translateY(-5px) scale(1.02); }
.pricing-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary-soft); color: var(--primary-dark);
    padding: 4px 15px; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
}
.pricing__title { font-size: 1.4rem; margin-bottom: 1rem; }
.pricing__desc { color: var(--text-body); font-size: 0.85rem; margin-bottom: 1.5rem; line-height: 1.6; }
.pricing__price-block { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-light); }
.pricing__price-block .price {
    display: block; font-family: 'Sora', sans-serif; font-size: 1.5rem;
    font-weight: 800; color: var(--primary-dark); line-height: 1.2;
}
.pricing__price-block .price-unit { font-size: 0.85rem; color: var(--text-light); font-weight: 500; }

/* Animated counter */
.price-counter { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); }

.pricing__features { flex-grow: 1; margin-bottom: 3.5rem; }
.features-title { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1.5rem; }
.pricing__features ul { list-style: none; }
.pricing__features li { display: flex; flex-direction: column; gap: 4px; margin-bottom: 1rem; }
.feature-header { font-size: 0.85rem; display: flex; align-items: center; gap: 8px; color: var(--text-dark); }
.feature-desc { font-size: 0.85rem; padding-left: 28px; color: var(--text-body); line-height: 1.5; }

/* ===========================
   8. EXPERTISE & AVANTAGES
   =========================== */
.expertise { padding: 6rem 0; position: relative; }
.avantages { padding: 4rem 0 6rem; position: relative; }
.expertise__grid, .avantages__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 4rem; }
.expertise__header { display: flex; align-items: center; gap: 15px; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-light); }
.expertise__icon {
    font-size: 2.2rem; background: var(--primary-soft);
    width: 60px; height: 60px; display: flex; align-items: center;
    justify-content: center; border-radius: 12px;
}
.expertise__card h3 { margin-bottom: 0; font-size: 1.1rem; line-height: 1.4; }

/* Card 3D tilt on hover */
.expertise__card { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.expertise__card.is-tilted { transition: none; }

.emoji-list { list-style: none; }
.emoji-list li { display: flex; gap: 10px; margin-bottom: 0.4rem; font-size: 0.9rem; line-height: 1.4; }
.emoji-list li span { flex-shrink: 0; }

.avantage {
    text-align: center; padding: 3rem 2rem; background: var(--white);
    border-radius: var(--radius); border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.avantage:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--primary-soft); }
.avantage h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.avantage__icon { font-size: 4rem; margin: 1.5rem 0; display: inline-block; }

/* ===========================
   9. FAQ (Accordéon)
   =========================== */
.faq-section { padding: 2rem 0 6rem; }
.faq-container { max-width: 850px; margin: 0 auto; }
.faq-item {
    background-color: var(--white); border: 1px solid var(--border-light);
    border-radius: var(--radius); margin-bottom: 1.2rem;
    box-shadow: var(--shadow-sm); transition: var(--transition); overflow: hidden;
}
.faq-item:hover { border-color: var(--primary-soft); box-shadow: 0 6px 16px rgba(158, 178, 251, 0.1); }
.faq-question {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 2rem; background: transparent; border: none;
    font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.05rem;
    color: var(--text-dark); text-align: left; cursor: pointer; transition: color var(--transition);
}
.faq-question:hover { color: var(--primary-dark); }
.faq-chevron { flex-shrink: 0; color: var(--primary-dark); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); margin-left: 1rem; }
.faq-answer {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
    opacity: 0; padding: 0 2rem;
}
.faq-answer-inner { overflow: hidden; padding-bottom: 0; color: var(--text-body); font-size: 0.95rem; line-height: 1.7; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; opacity: 1; }
.faq-item.open .faq-answer-inner { padding-bottom: 1.5rem; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* ===========================
   10. PAGE A PROPOS
   =========================== */
.about-intro { padding: 4rem 0 6rem; position: relative; }
.about-top-block { margin-bottom: 2.5rem; }
.intro-heading { font-family: 'Sora', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--text-dark); margin-bottom: 1rem; }
.about-top-block p, .about-content p { font-size: 1.05rem; line-height: 1.5; margin-bottom: 0.8rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }

.about-image-wrapper { 
    position: relative; 
    max-width: 380px;
    margin: 0 auto;
    z-index: 1; 
}
.about-photo-integrated {
    width: 100%; 
    height: auto;
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, rgba(0,0,0,0.5) 75%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, black 40%, rgba(0,0,0,0.5) 75%, transparent 100%);
    filter: drop-shadow(0 5px 15px rgba(158, 178, 251, 0.15));
    transition: transform 0.5s ease;
}
.about-image-wrapper:hover .about-photo-integrated {
    transform: scale(1.02);
}

.about-list { list-style: none; margin: 1rem 0 2rem; }
.about-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.6rem; font-size: 0.95rem; line-height: 1.4; }
.about-list li::before { content: '👉'; position: absolute; left: 0; top: 2px; font-size: 0.9rem; }

.concept { padding: 6rem 0; }
.concept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 4rem; }
.concept-card { padding: 3.5rem; }
.concept-card--wide { grid-column: 1 / -1; }
.concept-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.step-badge {
    display: inline-block; background-color: var(--primary-soft);
    color: var(--primary-dark); font-family: 'Sora', sans-serif;
    font-size: 1.2rem; font-weight: 800; padding: 0.4rem 1.2rem; border-radius: 10px;
}
.concept-card h3 { font-size: 1.4rem; margin-bottom: 0; }
.concept-card p { font-size: 0.95rem; margin-bottom: 1rem; line-height: 1.6; }

@media (min-width: 992px) {
    .concept-wide-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
}

.concept-list { list-style: none; margin-top: 1rem; }
.concept-list li { position: relative; padding-left: 1.5rem; margin-bottom: 1.2rem; font-size: 0.95rem; line-height: 1.6; }
.concept-list li::before { content: '✨'; position: absolute; left: 0; top: 2px; font-size: 0.9rem; }

.specialites { padding: 6rem 0; }
.specialites-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 4rem; }
.specialite-title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.specialite-icon { font-size: 3.5rem; margin: 1.5rem 0; display: inline-block; }

/* ===========================
   11. PAGE CONTACT
   =========================== */
.contact-page-header { padding-top: 3rem; padding-bottom: 2rem; }
.contact-emoji { font-size: 3.5rem; margin-bottom: 1rem; display: inline-block; animation: waveEmoji 2s infinite; transform-origin: bottom right; }

@keyframes waveEmoji {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

.contact-section { padding: 2rem 0 6rem; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }

.contact-form-wrapper {
    background: var(--white); border-radius: var(--radius); padding: 3rem;
    border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
}
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--text-dark); font-size: 0.95rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 1rem; border: 1px solid #e0e0e0; border-radius: 12px;
    background: #fdfdfd; font-family: inherit; font-size: 1rem;
    color: var(--text-dark); transition: var(--transition);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #bbbbbb; font-size: 0.9rem; }
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); background: var(--white);
    box-shadow: 0 0 0 4px rgba(158,178,251,0.1);
}

/* Form success state */
.contact-form.is-sent { animation: formSuccess 0.6s ease; }
@keyframes formSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.contact-bottom-logo { display: flex; justify-content: flex-start; padding-left: 1rem; }
.contact-bottom-logo img { height: 70px; width: auto; opacity: 0.7; transition: var(--transition); }
.contact-bottom-logo a:hover img { opacity: 1; transform: scale(1.05); }

.contact-info-card, .contact-map-card {
    background: var(--white); border-radius: var(--radius); padding: 2.5rem;
    border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
}
.contact-info-card h3, .contact-map-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.contact-info-card p, .contact-map-card p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; }

.contact-details { list-style: none; }
.contact-details li { margin-bottom: 0.8rem; font-size: 0.95rem; }
.contact-details a { color: var(--primary-dark); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; transition: var(--transition); }
.contact-details a:hover { text-decoration-color: var(--primary-dark); }
.map-list { list-style: none; margin-bottom: 1.5rem; }
.map-list li { margin-bottom: 0.5rem; font-weight: 600; color: var(--text-dark); }
.contact-map iframe { box-shadow: inset 0 0 10px rgba(0,0,0,0.05); }

/* ===========================
   11b. PAGES LÉGALES & PLAN DU SITE
   =========================== */
.legal-section { padding: 2rem 0 6rem; }
.legal-container { max-width: 850px; margin: 0 auto; }
.legal-block { margin-bottom: 2.5rem; }
.legal-block h2 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--text-dark); }
.legal-block p { font-size: 0.95rem; line-height: 1.7; margin-bottom: 0.8rem; }
.legal-block a { color: var(--primary-dark); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; transition: var(--transition); }
.legal-block a:hover { text-decoration-color: var(--primary-dark); }
.legal-list { list-style: none; margin: 1rem 0; }
.legal-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.6rem; font-size: 0.95rem; line-height: 1.6; }
.legal-list li::before { content: '•'; position: absolute; left: 0; top: 0; color: var(--primary-dark); font-weight: 700; font-size: 1.1rem; }

/* Sitemap */
.sitemap-grid { display: flex; flex-direction: column; gap: 3rem; }
.sitemap-group h2 { font-size: 1.4rem; margin-bottom: 1.5rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--primary-soft); }
.sitemap-list { list-style: none; }
.sitemap-list li { margin-bottom: 0.8rem; }
.sitemap-link {
    display: flex; align-items: flex-start; gap: 1rem; padding: 1.2rem 1.5rem;
    background: var(--white); border: 1px solid var(--border-light); border-radius: 12px;
    transition: var(--transition); text-decoration: none;
}
.sitemap-link:hover { border-color: var(--primary-soft); box-shadow: var(--shadow-sm); transform: translateX(5px); }
.sitemap-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.sitemap-link strong { font-size: 1.05rem; color: var(--text-dark); display: block; margin-bottom: 0.2rem; }
.sitemap-link p { font-size: 0.85rem; color: var(--text-light); margin: 0; line-height: 1.5; }

/* ===========================
   12. CLIENTS (Accueil) - Infinite Ticker
   =========================== */
.clients { padding: 7rem 0; text-align: center; background-color: var(--white); overflow: hidden; }
.clients__title { font-size: 1.8rem; margin-bottom: 0.5rem; }
.clients__subtitle { color: var(--text-light); margin-bottom: 4rem; }

.clients__ticker-track {
    display: flex; align-items: center; gap: 4rem;
    width: max-content;
    animation: tickerScroll 25s linear infinite;
}
.clients__ticker-track:hover { animation-play-state: paused; }

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.client-logo { flex-shrink: 0; }
.client-logo a { display: block; }
.client-logo img {
    height: 80px; max-width: 160px; object-fit: contain;
    transition: all 0.4s ease; filter: grayscale(30%); opacity: 0.8;
}
.client-logo a:hover img { transform: scale(1.1); filter: grayscale(0%); opacity: 1; }

/* Fade edges of ticker */
.clients__ticker {
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* ===========================
   13. SECTIONS ACCUEIL (Hero, CTA...)
   =========================== */
.hero { padding: 7rem 0 6rem; overflow: hidden; position: relative; }
.hero__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center; }

/* --- NOUVEAUX STYLES IMAGE ACCUEIL & NOTIF --- */
.hero__image-block {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    z-index: 2;
}

.hero__photo-integrated {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease, filter 0.5s ease, mask-image 0.5s ease, -webkit-mask-image 0.5s ease;
}

@keyframes popOut {
    0% { opacity: 0; transform: scale(0) translate(0, 0) rotate(-20deg); }
    100% { opacity: 1; transform: scale(1) translate(30px, -30px) rotate(0deg); }
}

@keyframes floatNotif {
    0%, 100% { transform: translate(30px, -30px); }
    50% { transform: translate(30px, -38px); }
}

.hero__content { text-align: left; }
.hero__title { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -1px; }
.hero__subtitle { font-size: 1.25rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 8px; }
.hero__text { font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 500px; }
.hero__buttons { display: flex; gap: 1rem; justify-content: flex-start; }

.cards-section { padding: 6rem 0; position: relative; z-index: 1; }
.cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.card__icon {
    font-size: 2.5rem; margin-bottom: 1.5rem; display: inline-block;
    background: var(--primary-soft); width: 70px; height: 70px;
    line-height: 70px; text-align: center; border-radius: 50%;
}
.card__title { font-size: 1.5rem; margin-bottom: 1rem; }
.card__text { font-size: 1rem; color: var(--text-body); line-height: 1.6; }
.cta { background-color: var(--bg-cream); padding: 6rem 0; text-align: center; position: relative; }
.cta__title { font-size: 2rem; margin-bottom: 2rem; }
.cta .btn--primary { background-color: var(--primary-dark); }

/* ===========================
   14. HERO - ANIMATION MESSAGE CLIENT (V2)
   =========================== */
.hero__chat-wrapper { display: flex; flex-direction: column; gap: 2rem; }
.hero__header { margin-bottom: -0.5rem; }

.chat-container { display: flex; flex-direction: column; gap: 1.2rem; width: 100%; margin-bottom: 0.5rem; }
.chat-message { display: flex; align-items: flex-end; gap: 10px; max-width: 90%; }
.chat-message--client { align-self: flex-start; }
.chat-message--freelance { align-self: flex-end; justify-content: flex-end; }

.chat-avatar {
    width: 35px; height: 35px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
    background-color: var(--white); border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}
.chat-avatar--philou { background-color: var(--primary-soft); border-color: var(--primary-soft); }

.chat-bubble {
    padding: 0.9rem 1.3rem; border-radius: 20px; font-size: 0.95rem;
    line-height: 1.5; box-shadow: var(--shadow-sm); font-family: 'Inter', sans-serif;
}
.chat-bubble--client {
    background-color: var(--white); color: var(--text-body);
    border: 1px solid var(--border-light); border-bottom-left-radius: 4px;
}
.chat-bubble--freelance {
    background-color: var(--primary-soft); color: var(--text-dark);
    border-bottom-right-radius: 4px; font-weight: 500;
}

.typing-bubble::after { content: '|'; margin-left: 2px; animation: blinkCursor 0.8s step-end infinite; }
.typing-bubble.typing-done::after { display: none; }
@keyframes blinkCursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- CTA : La bulle de réponse cliquable --- */
.chat-bubble--reply {
    background-color: var(--white); color: var(--primary-dark);
    border: 2px dashed var(--primary); font-weight: 700; cursor: pointer;
    transition: all 0.3s ease; text-decoration: none; display: inline-block;
    box-shadow: 0 4px 15px rgba(158, 178, 251, 0.2);
}
.chat-bubble--reply:hover {
    background-color: var(--primary); color: var(--white);
    border-style: solid; transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(158, 178, 251, 0.4);
}

/* --- Mots du Titre --- */
.hero__title .word { display: inline-block; white-space: pre; }

/* ===========================
   15. FOOTER
   =========================== */
.footer {
    padding: 6rem 0 2rem; background-color: var(--white);
    border-top: 1px solid var(--border-light);
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer__brand .footer__logo { display: inline-flex; margin-bottom: 1.5rem; transition: transform var(--transition); }
.footer__brand .footer__logo img { height: 90px; width: auto; object-fit: contain; }
.footer__brand .footer__logo:hover { transform: scale(1.05); }
.footer__bio { color: var(--text-light); font-size: 0.95rem; line-height: 1.8; max-width: 400px; }
.footer__title {
    font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 700;
    color: var(--text-dark); margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px;
}
.footer__links-col ul li { margin-bottom: 0.8rem; }
.footer__links-col a { font-size: 0.95rem; color: var(--text-light); transition: var(--transition); }
.footer__links-col a:hover { color: var(--primary-dark); padding-left: 5px; }
.footer__bottom {
    padding-top: 2rem; border-top: 1px solid var(--border-light);
    text-align: center; color: var(--text-light); font-size: 0.85rem;
}

/* ===========================
   16. RESPONSIVE OPTIMISÉ
   =========================== */

/* --- TABLETTES & PETITS ÉCRANS (Max 992px) --- */
@media (max-width: 992px) {
    .page-header { padding: 4rem 0 2rem; }
    .hero, .about-intro, .concept, .specialites, .pricing-section, .expertise, .avantages, .clients, .cta, .cards-section, .contact-section { 
        padding-top: 4rem; 
        padding-bottom: 4rem; 
    }

    /* --- GESTION DU MENU MOBILE & TABLETTE --- */
    .header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 250, 246, 0.98); }
    .nav { height: auto; min-height: 80px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
    .nav__logo { order: 1; margin-right: auto; }
    .nav__toggle { order: 2; display: flex; }
    
    /* Le menu complet empilé */
	.nav {
        position: relative;
    }

    .nav__logo { order: 1; z-index: 1001; }
    .nav__toggle { order: 2; z-index: 1001; }

    /* On masque le menu LEFT par défaut, il sera affiché DANS le menu RIGHT */
    .nav__menu--left {
        display: none !important;
    }

    .nav__menu--right {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 250, 246, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 0 2rem;
        z-index: 999;
    }

    .nav__menu--right.open {
        display: flex;
    }

    .nav__menu li {
        width: 100%;
        text-align: center;
    }

    .nav__link {
        display: block;
        padding: 1rem 0;
        font-size: 1.15rem;
    }

    .nav__link--cta {
        display: inline-block;
        width: auto;
        margin: 0.8rem auto 0;
        text-align: center;
        font-size: 1.05rem;
    }

    .nav__toggle {
        z-index: 1001;
    }


    /* --- RÉORGANISATION DE LA HERO (ACCUEIL) --- */
    .hero__grid { display: flex; flex-direction: column; gap: 2rem; }
    .hero__content { display: contents; }
    .hero__header { order: 1; text-align: center; }
    .hero__image-block { order: 2; max-width: 320px; margin: 0 auto; }
    .chat-container { order: 3; width: 100%; }

    /* Reste du code 992px */
    .about-grid { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .about-image-wrapper { order: -1; max-width: 320px; margin: 0 auto 2rem; }
    
    .notification-pop { font-size: 2.2rem; right: 8%; top: 30%; }

    .about-content { text-align: left; }
    .hero__buttons { justify-content: center; }
    .hero__title { font-size: 2.2rem; }
    
    .chat-message { max-width: 100%; }
    .about-list { text-align: left; max-width: 600px; }
    
    .pricing-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
    .pricing-card--featured { transform: none; }
    
    .concept-grid { grid-template-columns: 1fr; max-width: 600px; margin-left: auto; margin-right: auto; }
    .expertise__grid, .avantages__grid, .specialites-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    
    .contact-grid { grid-template-columns: 1fr; max-width: 650px; margin: 0 auto; gap: 2.5rem; }
    .contact-bottom-logo { justify-content: center; padding-left: 0; }
}

/* --- MOBILES (Max 768px) --- */
@media (max-width: 768px) {
    .page-header { padding: 3rem 0 1.5rem; }
    .section-title { font-size: 1.8rem; }
    .hero, .about-intro, .concept, .specialites, .pricing-section, .expertise, .avantages, .clients, .cta, .cards-section, .contact-section { 
        padding-top: 3rem; 
        padding-bottom: 3rem; 
    }

    /* Le menu mobile a été basculé dans le 992px pour couvrir les tablettes également. */
    /* On garde uniquement la limitation de taille du bouton CTA pour les très petits écrans. */
    .nav__link--cta { 
        max-width: 250px; 
    }

    /* Grilles sur une seule colonne */
    .cards-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; gap: 2rem; }
    .expertise__grid, .avantages__grid, .specialites-grid { grid-template-columns: 1fr; max-width: 450px; margin: 2.5rem auto 0; gap: 2rem; }

    /* Hero section et Chat */
    .hero__title { font-size: 2rem; }
    .hero__subtitle { justify-content: center; font-size: 1.1rem; }
    .hero__buttons { flex-direction: column; gap: 1rem; }
    
    .chat-bubble { padding: 0.75rem 1rem; font-size: 0.85rem; }
    .chat-avatar { width: 30px; height: 30px; font-size: 1rem; }
    
    .btn { width: 100%; }

    .card, .concept-card { padding: 2rem 1.5rem; }
    .pricing-card { padding: 2rem 1.5rem; }
    .contact-form-wrapper, .contact-info-card, .contact-map-card { padding: 2rem 1.5rem; }
    
    .faq-question { padding: 1.2rem 1.5rem; font-size: 0.95rem; }
    .faq-answer { padding: 0 1.5rem; }

    /* Footer */
    .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; margin-bottom: 2rem; }
    .footer__brand .footer__logo { margin: 0 auto 1.5rem; }
    .footer__bio { margin: 0 auto; }

    .clients__ticker-track { gap: 2.5rem; }
}