/* ============================================
   AQUITANIA STUDIO — Design System
   ============================================ */

/* --- Variables --- */
:root {
    --bg: #08080f;
    --bg-card: #0f0f1a;
    --bg-card-hover: #141428;
    --violet: #7B2FF2;
    --violet-soft: #9b5ff5;
    --green: #00E88F;
    --green-soft: #00ffaa;
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.55);
    --text-body: rgba(255, 255, 255, 0.75);
    --border: rgba(255, 255, 255, 0.06);
    --radius: 16px;
    --radius-lg: 24px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--text);
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
}

h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--violet-soft), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.show-mobile {
    display: none !important;
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

.delay-4 {
    transition-delay: 0.6s;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: rgba(8, 8, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.logo-ia {
    color: var(--green);
    font-weight: 900;
}

.logo-studio {
    font-weight: 400;
    color: var(--text-dim);
    font-size: 0.9em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.3s;
    position: relative;
}

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

.nav-link:hover {
    color: var(--text);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--violet);
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--violet-soft);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 47, 242, 0.4);
}

/* Burger */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: 0.3s;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(8, 8, 15, 0.97);
    backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
    right: 0;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    transition: color 0.3s;
}

.mobile-link:hover {
    color: var(--green);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero-bg.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: heroZoom 25s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.08);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(8, 8, 15, 0.92) 0%,
            rgba(8, 8, 15, 0.75) 40%,
            rgba(8, 8, 15, 0.5) 100%);
    z-index: 1;
}

.hero-tag {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--green);
    margin-bottom: 2rem;
}

.hero-title {
    margin-bottom: 2rem;
}

.hero-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 700px;
    margin-bottom: 3rem;
}

.hero-lead strong {
    color: var(--text);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: var(--violet);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--violet-soft);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(123, 47, 242, 0.4);
}

.btn-ghost {
    display: inline-block;
    color: var(--text);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.btn-ghost:hover {
    border-color: var(--green);
    color: var(--green);
    background: rgba(0, 232, 143, 0.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--green), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }
}

/* ============================================
   BASELINE
   ============================================ */
.baseline-section {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.baseline {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    text-align: center;
    line-height: 1.9;
    max-width: 850px;
    margin: 0 auto;
    color: var(--text-dim);
}

.baseline-accent {
    color: var(--text);
    font-weight: 600;
}

/* ============================================
   EXPERTISES
   ============================================ */
.expertises-section {
    padding: 6rem 0;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--violet-soft);
    text-align: center;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.expertises-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.expertise-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--violet), var(--green));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 2;
}

.expertise-card:hover {
    border-color: rgba(123, 47, 242, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.expertise-card:hover::before {
    opacity: 1;
}

.card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.expertise-card:hover .card-img img {
    transform: scale(1.08);
}

.card-body {
    padding: 2rem 2.5rem 2.5rem;
}

.card-body h3 {
    margin-bottom: 1rem;
}

.card-body p {
    font-size: 0.95rem;
    line-height: 1.7;
}

@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 0 transparent);
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(0, 232, 143, 0.5));
    }
}

.expertise-card h3 {
    margin-bottom: 1rem;
}

.expertise-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   IA SECTION
   ============================================ */
.ia-section {
    padding: 6rem 0;
}

.ia-card {
    background: linear-gradient(135deg, rgba(123, 47, 242, 0.1), rgba(0, 232, 143, 0.05));
    border: 1px solid rgba(123, 47, 242, 0.2);
    border-radius: var(--radius-lg);
    padding: 5rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.ia-card-content {
    flex: 1;
}

.ia-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.ia-text {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.ia-text strong {
    color: var(--green);
}

.ia-visual {
    position: relative;
    width: 250px;
    height: 250px;
    flex-shrink: 0;
}

.ia-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--green), var(--violet));
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(0, 232, 143, 0.4), 0 0 120px rgba(123, 47, 242, 0.2);
    animation: orbPulse 4s ease-in-out infinite;
}

@keyframes orbPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.ia-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border: 1px solid rgba(0, 232, 143, 0.2);
    border-radius: 50%;
    animation: ringRotate 20s linear infinite;
}

.ia-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
}

.ia-ring-2 {
    width: 220px;
    height: 220px;
    border-color: rgba(123, 47, 242, 0.15);
    animation-direction: reverse;
    animation-duration: 30s;
}

.ia-ring-2::before {
    background: var(--violet);
}

@keyframes ringRotate {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ============================================
   APPROCHE
   ============================================ */
.approche-section {
    padding: 6rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step {
    padding: 2rem;
    border-left: 2px solid var(--border);
    transition: border-color 0.3s;
}

.step:hover {
    border-color: var(--violet);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--violet), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.step h3 {
    margin-bottom: 1rem;
}

.step p {
    font-size: 0.93rem;
}

/* ============================================
   LOCAL
   ============================================ */
.local-section {
    position: relative;
    padding: 6rem 0;
    margin-top: 3rem;
    overflow: hidden;
}

.local-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/local-bg.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.local-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(8, 8, 15, 0.93) 0%,
            rgba(8, 8, 15, 0.8) 50%,
            rgba(8, 8, 15, 0.6) 100%);
    z-index: 1;
}

.local-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.local-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

.local-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.local-text strong,
.hero-lead strong {
    color: var(--green);
}

.local-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 2rem;
}

.local-tag {
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: all 0.3s;
}

.local-tag:hover {
    border-color: var(--green);
    color: var(--green);
    background: rgba(0, 232, 143, 0.05);
}

/* ============================================
   FOOTER (UNIFIED WITH CONTACT)
   ============================================ */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 8rem 0 4rem 0;
    position: relative;
    overflow: hidden;
}

.footer-contact-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 5rem;
}

.footer-contact-info {
    max-width: 700px;
    margin-bottom: 3.5rem;
}

.contact-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.contact-text {
    font-size: 1.15rem;
    color: var(--text-body);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
}

.contact-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 850px;
    margin: 0 auto;
    width: 100%;
}

.contact-method {
    width: 50%;
    background: none;
    border: none;
    transition: all 0.3s ease;
}

.contact-method:first-child {
    text-align: right;
    padding: 1rem 3rem 1rem 1.5rem;
}

.contact-method:last-child {
    text-align: left;
    padding: 1rem 1.5rem 1rem 3rem;
}

.contact-method+.contact-method {
    border-left: 1px solid var(--border);
}

.contact-method:hover {
    transform: translateY(-2px);
}

.contact-method:hover .contact-value {
    color: var(--green);
}


.contact-icon {
    font-size: 1.5rem;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.contact-value {
    display: block;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin-bottom: 3rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 0.3rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-dim);
}


/* ============================================
   MODAL CONTACT
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    max-width: 640px;
    width: 100%;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.3rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.form-group .optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.75rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    -webkit-appearance: none;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    padding-right: 3rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(123, 47, 242, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

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

.modal-submit {
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
    font-size: 1rem;
}

/* Success state */
.modal-success {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.modal-success.show {
    display: block;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--green));
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: successPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.modal-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-success p {
    color: var(--text-dim);
}

/* ============================================
   SLIDER DOTS (hidden on desktop)
   ============================================ */
.slider-dots {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.slider-dot.active {
    background: var(--green);
    transform: scale(1.3);
}

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

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ia-card {
        flex-direction: column;
        padding: 3rem;
    }

    .ia-visual {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .burger {
        display: block;
    }

    .ia-card {
        padding: 2rem;
    }

    .ia-section {
        padding: 2rem 0;
    }

    .ia-visual {
        width: 150px;
        height: 150px;
    }

    .ia-orb {
        width: 60px;
        height: 60px;
    }

    .ia-ring {
        width: 120px;
        height: 120px;
    }

    .ia-ring-2 {
        width: 160px;
        height: 160px;
    }

    .ia-title {
        font-size: 1.8rem;
    }

    .hero {
        padding: 7rem 0 4rem;
        min-height: auto;
    }

    .hero-tag {
        font-size: 0.7rem;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 4.5rem);
    }

    .hero-lead,
    .baseline,
    .ia-text,
    .local-text,
    .contact-text,
    p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-lead br {
        display: none;
    }

    .baseline br {
        display: none;
    }

    .section-title br {
        display: none;
    }

    .show-mobile {
        display: block !important;
    }

    .hide-mobile {
        display: none !important;
    }

    br.keep-br {
        display: block !important;
    }

    .footer {
        padding: 5rem 0 3rem 0;
    }

    .footer-contact-grid {
        margin-bottom: 0rem;
    }

    .footer-contact-info {
        margin-bottom: 2rem;
    }

    .contact-methods {
        flex-direction: column;
        width: 100%;
    }

    .contact-method,
    .contact-method:first-child,
    .contact-method:last-child {
        min-width: auto;
        width: 100%;
        display: block;
        text-align: center;
        padding: 1.5rem 1rem;
    }


    .contact-method+.contact-method {
        border-left: none;
        border-top: 1px solid var(--border);
    }


    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .expertises-section,
    .approche-section {
        padding: 5rem 0;
    }

    .baseline-section {
        padding: 5rem 0;
    }

    .local-section {
        padding: 5rem 0;
    }

    .modal-overlay {
        padding: 0;
    }

    .modal {
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border: none;
        border-radius: 0;
        padding: 4rem 1.5rem 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Slider expertises mobile bord à bord */
    .expertises-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        /* Supprime toute scrollbar verticale parasite dans le slider */
        scroll-snap-type: x mandatory;
        scroll-padding: 0 2rem;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding: 0 2rem 0.5rem;
        margin: 0 -2rem;
        scrollbar-width: none;
    }

    .expertises-grid::-webkit-scrollbar {
        display: none;
    }

    .expertise-card {
        flex: 0 0 75vw;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        /* Force l'arrêt sur chaque carte, évite d'en sauter 2 d'un coup */
    }

    .expertise-card:hover {
        transform: none;
        /* Désactive le soulèvement sur mobile qui peut gêner le scroll */
    }

    /* Slider approche mobile bord à bord */
    .steps-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        /* Supprime toute scrollbar verticale parasite */
        scroll-snap-type: x mandatory;
        scroll-padding: 0 2rem;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding: 0 2rem 0.5rem;
        margin: 0 -2rem;
        scrollbar-width: none;
    }

    .steps-grid::-webkit-scrollbar {
        display: none;
    }

    .step {
        flex: 0 0 75vw;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        /* Force l'arrêt sur chaque étape */
        border-left: 2px solid var(--violet);
        /* On garde la bordure pour le style */
        padding: 1.5rem;
        /* Padding réduit sur mobile */
    }

    .step:hover {
        transform: none;
        /* Stabilise le scroll vertical */
    }

    .card-body {
        padding: 1.5rem;
        /* Padding réduit sur mobile */
    }

    .slider-dots {
        display: flex;
    }
}