/* ============================================
   FRESH'ENERGIES - Stylesheet
   Palette extraite du logo :
   - Cyan vif (goutte ext.) : #33BDFF
   - Orange chaud (flamme)  : #E87830
   - Bleu profond (goutte int.) : #3670B0
   - Rose coral (texte "Fresh'") : #E06080
   - Or doré (texte "Energies") : #F0C840
   - Noir premium (fond logo) : #0B0B0B
   ============================================ */

/* ---- CSS Reset & Variables ---- */
:root {
    /* Couleurs logo */
    --cyan: #33BDFF;
    --cyan-dark: #1A9FDB;
    --cyan-deep: #3670B0;
    --cyan-light: #EAF6FF;
    --orange: #E87830;
    --orange-dark: #C85E18;
    --orange-light: #FEF0E8;
    --coral: #E06080;
    --gold: #F0C840;
    --green: #10B981;
    --green-light: #ECFDF5;
    --dark: #0B0B0B;
    --dark-navy: #0C1824;
    --dark-blue: #101E2E;

    /* Aliases (pour retrocompat) */
    --blue: var(--cyan);
    --blue-dark: var(--cyan-dark);
    --blue-deep: var(--dark-navy);
    --blue-light: var(--cyan-light);

    /* Neutres */
    --white: #FFFFFF;
    --gray-50: #F8FAFB;
    --gray-100: #F1F4F6;
    --gray-200: #E2E6EB;
    --gray-300: #CED4DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Ombres */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    --shadow-cyan: 0 4px 14px rgba(51, 189, 255, 0.35);
    --shadow-cyan-lg: 0 6px 20px rgba(51, 189, 255, 0.45);

    /* Rayons */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transition */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typographies */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
}

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

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

ul {
    list-style: none;
}

/* ---- Utility ---- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    min-width: 0;
}

.section {
    padding: 100px 0;
}

.section--alt {
    background: var(--gray-50);
}

.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
    min-width: 0;
}

.section__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--cyan-dark);
    background: var(--cyan-light);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section__desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
}

.text-gradient {
    background: linear-gradient(135deg, var(--coral) 0%, var(--orange) 40%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient--cyan {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-deep) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    max-width: 100%;
    text-align: center;
}

.btn--primary {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-cyan);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cyan-lg);
}

.btn--orange {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(232, 120, 48, 0.35);
}

.btn--orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 120, 48, 0.45);
}

.btn--outline {
    background: transparent;
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn--outline:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-light);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}

/* ---- Fade-in animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in--delay {
    transition-delay: 0.15s;
}

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

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


/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header__logo img {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.header__brand {
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--coral) 0%, var(--orange) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.header__brand strong {
    font-weight: 800;
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header__link {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.header__link:hover,
.header__link.active {
    color: var(--cyan);
    background: rgba(51, 189, 255, 0.1);
}

/* Header scrolled: dark text */
.header--scrolled .header__link {
    color: var(--gray-600);
}

.header--scrolled .header__link:hover,
.header--scrolled .header__link.active {
    color: var(--cyan);
    background: var(--cyan-light);
}

.header--scrolled .header__burger span {
    background: var(--gray-700);
}

.header__cta {
    font-size: 0.85rem;
    padding: 10px 22px;
}

/* Burger mobile */
.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    transition: all var(--transition);
}

.header__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.header__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ============================================
   HERO — Fond sombre premium (comme le logo)
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 76px;
    overflow: hidden;
    background: var(--dark);
    color: var(--white);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 60%, rgba(51, 189, 255, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 30%, rgba(232, 120, 48, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(54, 112, 176, 0.08) 0%, transparent 40%);
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0 120px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cyan);
    background: rgba(51, 189, 255, 0.1);
    border: 1px solid rgba(51, 189, 255, 0.2);
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero__actions .btn--outline {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.25);
}

.hero__actions .btn--outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(51, 189, 255, 0.1);
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.hero__trust-item svg {
    color: var(--cyan);
    flex-shrink: 0;
}

/* Hero visual — Logo affiché */
.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__logo-showcase {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.hero__logo-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    filter: drop-shadow(0 20px 60px rgba(51, 189, 255, 0.15))
            drop-shadow(0 8px 20px rgba(232, 120, 48, 0.10));
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Halo lumineux derrière le logo */
.hero__logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(51, 189, 255, 0.12) 0%, rgba(232, 120, 48, 0.06) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero__logo-img {
    position: relative;
    z-index: 1;
}

.hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero__wave svg {
    width: 100%;
    height: 80px;
}


/* ============================================
   SERVICES
   ============================================ */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition: all var(--transition);
    min-width: 0;
    overflow: hidden;
}

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

.service-card__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-card__icon--blue {
    background: var(--cyan-light);
    color: var(--cyan);
}

.service-card__icon--orange {
    background: var(--orange-light);
    color: var(--orange);
}

.service-card__icon--green {
    background: rgba(54, 112, 176, 0.1);
    color: var(--cyan-deep);
}

.service-card__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card__list {
    margin-bottom: 24px;
}

.service-card__list li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card__list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blue);
    transition: gap var(--transition);
}

.service-card__link:hover {
    gap: 12px;
}


/* ============================================
   POURQUOI NOUS
   ============================================ */
.why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.why-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    min-width: 0;
    overflow: hidden;
}

.why-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.why-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan-light) 0%, rgba(51, 189, 255, 0.12) 100%);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.why-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.why-card__desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* Banner aides */
.why__banner {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--dark) 100%);
    border-radius: var(--radius-xl);
    padding: 40px 48px;
    color: var(--white);
}

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

.why__banner-content svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.why__banner-content div {
    flex: 1;
}

.why__banner-content strong {
    font-size: 1.15rem;
    display: block;
    margin-bottom: 6px;
}

.why__banner-content p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
}

.why__banner .btn {
    flex-shrink: 0;
    white-space: normal;
}


/* ============================================
   RÉALISATIONS
   ============================================ */
.realisations__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.realisation-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.realisation-card__image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.realisation-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.realisation-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, transparent 100%);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.realisation-card:hover .realisation-card__image {
    transform: scale(1.05);
}

.realisation-card:hover .realisation-card__overlay {
    transform: translateY(0);
    opacity: 1;
}

.realisation-card__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--cyan);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.realisation-card__overlay h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.realisation-card__overlay p {
    font-size: 0.85rem;
    opacity: 0.8;
}


/* ============================================
   TÉMOIGNAGES
   ============================================ */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}

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

.testimonial-card__stars {
    display: flex;
    gap: 2px;
    color: var(--gold);
    margin-bottom: 20px;
}

.testimonial-card__text {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 24px;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-card__author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--gray-900);
}

.testimonial-card__author span {
    font-size: 0.8rem;
    color: var(--gray-400);
}


/* ============================================
   FORMULAIRE DEVIS
   ============================================ */
.devis {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.devis__wrapper {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 50px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.devis__info h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.devis__benefits {
    margin-bottom: 32px;
}

.devis__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.devis__benefits li svg {
    color: var(--green);
    flex-shrink: 0;
    margin-top: 1px;
}

.devis__contact-box {
    background: var(--blue-light);
    border-radius: var(--radius);
    padding: 20px;
}

.devis__contact-box p {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.devis__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue) !important;
}

/* Form */
.devis__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form__group {
    display: flex;
    flex-direction: column;
}

.form__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form__required {
    color: var(--orange);
}

.form__optional {
    color: var(--gray-400);
    font-weight: 400;
    font-size: 0.8rem;
}

.form__input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all var(--transition);
    outline: none;
}

.form__input::placeholder {
    color: var(--gray-400);
}

.form__input:focus {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(10, 180, 230, 0.12);
}

.form__input:invalid:not(:placeholder-shown):not(:focus) {
    border-color: #ef4444;
}

.form__select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form__textarea {
    resize: vertical;
    min-height: 100px;
}

.form__group--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.form__group--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--blue);
    flex-shrink: 0;
    cursor: pointer;
}

.form__label--checkbox {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
    cursor: pointer;
}

.form__label--checkbox a {
    color: var(--blue);
    text-decoration: underline;
}

/* Submit button */
.btn__text,
.btn__loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn__loader svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form message */
.form__message {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
}

.form__message--success {
    background: var(--green-light);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form__message--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.3);
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: var(--gray-300);
}

.footer__top {
    padding: 60px 0 40px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer__logo img {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.footer__logo span {
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--coral) 0%, var(--orange) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.footer__logo strong {
    font-weight: 800;
}

.footer__about {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.footer__socials {
    display: flex;
    gap: 10px;
}

.footer__social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition);
}

.footer__social:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}

.footer__heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer__list li {
    padding: 6px 0;
    font-size: 0.88rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--gray-400);
}

.footer__list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--blue);
}

.footer__list li a {
    color: var(--gray-400);
    transition: color var(--transition);
}

.footer__list li a:hover {
    color: var(--blue);
}

.footer__list--zones li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
    margin-top: 8px;
}

.footer__list--hours li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.footer__list--hours li span {
    color: var(--gray-400);
}

.footer__list--hours li strong {
    color: var(--white);
    font-weight: 600;
}

.footer__emergency {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--orange) !important;
    font-weight: 600;
    border: none !important;
    margin-top: 8px;
}

.footer__emergency svg {
    color: var(--orange);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__bottom p {
    font-size: 0.82rem;
    color: var(--gray-500);
}

.footer__legal {
    display: flex;
    gap: 24px;
}

.footer__legal a {
    font-size: 0.82rem;
    color: var(--gray-500);
    transition: color var(--transition);
}

.footer__legal a:hover {
    color: var(--blue);
}


/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--blue-dark);
    transform: translateY(-3px);
}


/* ============================================
   MOBILE CTA BAR (hidden on desktop)
   ============================================ */
.mobile-cta {
    display: none;
}

/* ============================================
   MOBILE NAV OVERLAY (hidden on desktop)
   ============================================ */
.header__overlay {
    display: none;
}

/* Desktop: hide mobile-only menu items */
.header__menu-cta,
.header__menu-phone {
    display: none;
}


/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero__subtitle {
        max-width: 100%;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__trust {
        justify-content: center;
    }

    .hero__visual {
        order: -1;
    }

    .hero__logo-showcase {
        max-width: 280px;
    }

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

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

    .devis__wrapper {
        grid-template-columns: 1fr;
        padding: 36px;
    }

    .why__banner-content {
        flex-direction: column;
        text-align: center;
    }

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

/* Mobile */
@media (max-width: 768px) {
    /* ---- Global mobile ---- */
    html {
        scroll-padding-top: 70px;
        -webkit-text-size-adjust: 100%;
    }

    body {
        -webkit-tap-highlight-color: transparent;
    }

    .section {
        padding: 60px 0;
    }

    .section__header {
        margin-bottom: 40px;
    }

    .section__title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .section__desc {
        font-size: 0.95rem;
    }

    /* ---- Header mobile ---- */
    .header__inner {
        height: 64px;
    }

    .header__logo img {
        width: 38px;
        height: 38px;
    }

    .header__brand {
        font-size: 1.05rem;
    }

    .header__overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .header__overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 85%;
        max-width: 320px;
        background: var(--white);
        padding: 80px 24px 32px;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    }

    .header__nav.open {
        transform: translateX(0);
    }

    .header__menu {
        flex-direction: column;
        gap: 2px;
    }

    .header__link {
        padding: 14px 16px;
        font-size: 1.05rem;
        border-radius: var(--radius);
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .header__menu-cta,
    .header__menu-phone {
        display: list-item;
        margin-top: 8px;
    }

    .header__menu-cta {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--gray-200);
    }

    .header__menu-cta .btn,
    .header__menu-phone .btn {
        min-height: 48px;
        font-size: 0.95rem;
    }

    .header__cta {
        display: none;
    }

    .header__burger {
        display: flex;
        min-width: 44px;
        min-height: 44px;
    }

    /* ---- Hero mobile ---- */
    .hero {
        min-height: auto;
        padding-top: 64px;
    }

    .hero__inner {
        padding: 32px 0 90px;
        gap: 24px;
    }

    .hero__visual {
        display: flex;
        order: -1;
    }

    .hero__logo-showcase {
        max-width: 180px;
    }

    .hero__logo-img {
        border-radius: var(--radius-lg);
    }

    @keyframes logoFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-6px); }
    }

    .hero__badge {
        font-size: 0.7rem;
        padding: 6px 14px;
        margin-bottom: 16px;
        white-space: normal;
        text-align: center;
    }

    .hero__title {
        font-size: clamp(1.7rem, 8vw, 2.4rem);
    }

    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .hero__actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero__actions .btn {
        width: 100%;
        min-height: 52px;
        font-size: 1rem;
        white-space: normal;
    }

    .hero__trust {
        gap: 16px;
        margin-top: 8px;
    }

    .hero__trust-item {
        font-size: 0.82rem;
    }

    .hero__wave svg {
        height: 50px;
    }

    /* ---- Services mobile ---- */
    .services__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 28px 24px;
    }

    .service-card__icon {
        width: 56px;
        height: 56px;
        margin-bottom: 18px;
    }

    .service-card__title {
        font-size: 1.15rem;
    }

    .service-card__desc {
        font-size: 0.9rem;
    }

    .service-card__link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Disable hover lift on touch */
    .service-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }

    /* ---- Why us mobile ---- */
    .why__grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 32px;
    }

    .why-card {
        padding: 24px 16px;
        min-width: 0;
        overflow: hidden;
    }

    .why-card__icon {
        width: 48px;
        height: 48px;
        margin-bottom: 14px;
    }

    .why-card__icon svg {
        width: 24px;
        height: 24px;
    }

    .why-card__title {
        font-size: 0.92rem;
    }

    .why-card__desc {
        font-size: 0.82rem;
    }

    .why-card:hover {
        transform: none;
    }

    .why__banner {
        padding: 24px 20px;
        border-radius: var(--radius-lg);
        overflow: hidden;
    }

    .why__banner-content {
        min-width: 0;
    }

    .why__banner-content div {
        min-width: 0;
    }

    .why__banner-content svg {
        width: 32px;
        height: 32px;
    }

    .why__banner-content strong {
        font-size: 1rem;
    }

    .why__banner-content p {
        font-size: 0.85rem;
    }

    .why__banner .btn {
        width: 100%;
        min-height: 48px;
        white-space: normal;
    }

    /* ---- Réalisations mobile ---- */
    .realisations__grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .realisation-card {
        aspect-ratio: 1/1;
        border-radius: var(--radius);
    }

    .realisation-card__placeholder svg {
        width: 32px;
        height: 32px;
    }

    /* Always show overlay on mobile (no hover) */
    .realisation-card__overlay {
        transform: translateY(0);
        opacity: 1;
        padding: 14px;
    }

    .realisation-card__tag {
        font-size: 0.6rem;
        padding: 3px 8px;
        margin-bottom: 4px;
    }

    .realisation-card__overlay h3 {
        font-size: 0.85rem;
        margin-bottom: 2px;
    }

    .realisation-card__overlay p {
        font-size: 0.72rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* ---- Témoignages mobile : scroll horizontal ---- */
    .testimonials__grid {
        grid-template-columns: 1fr;
        gap: 0;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 16px;
        margin: 0 -24px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .testimonial-card {
        min-width: min(85vw, calc(100vw - 48px));
        max-width: 320px;
        scroll-snap-align: center;
        flex-shrink: 0;
        padding: 24px;
    }

    .testimonial-card:hover {
        transform: none;
    }

    .testimonial-card__text {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }

    /* Scroll indicator dots */
    .testimonials__grid::-webkit-scrollbar {
        height: 4px;
    }

    .testimonials__grid::-webkit-scrollbar-track {
        background: var(--gray-200);
        border-radius: 4px;
    }

    .testimonials__grid::-webkit-scrollbar-thumb {
        background: var(--blue);
        border-radius: 4px;
    }

    /* ---- Devis form mobile ---- */
    .devis__wrapper {
        padding: 20px;
        gap: 32px;
        border-radius: var(--radius-lg);
    }

    .devis__info h3 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .devis__benefits {
        margin-bottom: 20px;
    }

    .devis__benefits li {
        padding: 8px 0;
        font-size: 0.85rem;
    }

    .devis__benefits li svg {
        width: 20px;
        height: 20px;
    }

    .devis__contact-box {
        padding: 16px;
    }

    .form__row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .devis__form {
        gap: 16px;
    }

    .form__input {
        padding: 14px 16px;
        font-size: 16px; /* Prevent iOS zoom on focus */
        min-height: 48px;
    }

    .form__textarea {
        min-height: 120px;
    }

    .form__label {
        font-size: 0.88rem;
        margin-bottom: 8px;
    }

    .form__group--checkbox input[type="checkbox"] {
        width: 22px;
        height: 22px;
        margin-top: 2px;
    }

    .form__label--checkbox {
        font-size: 0.82rem;
    }

    .btn--full {
        min-height: 52px;
        font-size: 1rem;
    }

    /* ---- Footer mobile ---- */
    .footer__top {
        padding: 40px 0 24px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer__heading {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }

    .footer__about {
        font-size: 0.85rem;
    }

    .footer__list li {
        font-size: 0.85rem;
    }

    .footer__bottom {
        padding: 16px 0;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px) + 64px);
    }

    .footer__bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer__bottom p {
        font-size: 0.78rem;
    }

    .footer__legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .footer__legal a {
        font-size: 0.78rem;
    }

    /* ---- Back to top mobile ---- */
    .back-to-top {
        bottom: 80px;
        right: 16px;
        width: 42px;
        height: 42px;
    }

    /* ---- Mobile sticky CTA bar ---- */
    .mobile-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 950;
        background: var(--white);
        border-top: 1px solid var(--gray-200);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
        padding: 10px 16px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        gap: 10px;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-cta.visible {
        transform: translateY(0);
    }

    .mobile-cta__phone {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        flex: 1;
        min-height: 46px;
        font-size: 0.88rem;
        font-weight: 600;
        color: var(--blue);
        background: var(--blue-light);
        border-radius: var(--radius);
        transition: background var(--transition);
    }

    .mobile-cta__phone:active {
        background: rgba(51, 189, 255, 0.15);
    }

    .mobile-cta__devis {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1.3;
        min-height: 46px;
        font-size: 0.92rem;
        font-weight: 700;
        color: var(--white);
        background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
        border-radius: var(--radius);
        box-shadow: 0 2px 8px rgba(51, 189, 255, 0.3);
        transition: opacity var(--transition);
    }

    .mobile-cta__devis:active {
        opacity: 0.85;
    }

    /* ---- Reduce animation intensity on mobile ---- */
    .fade-in {
        transform: translateY(20px);
    }

    .fade-in--delay {
        transition-delay: 0.1s;
    }

    .fade-in--delay-2 {
        transition-delay: 0.15s;
    }
}

/* Small mobile (< 400px) */
@media (max-width: 400px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 50px 0;
    }

    .hero__title {
        font-size: 1.6rem;
    }

    .hero__trust {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .why__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .why-card {
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .why-card__icon {
        margin: 0;
        flex-shrink: 0;
    }

    .realisations__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .realisation-card {
        aspect-ratio: 16/10;
    }

    .testimonial-card {
        min-width: 92vw;
    }

    .devis__wrapper {
        padding: 16px;
    }

    .mobile-cta {
        padding: 8px 12px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }
}

/* Landscape phone */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
    }

    .hero__inner {
        padding: 20px 0 70px;
    }

    .hero__title {
        font-size: 1.6rem;
    }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .header__nav {
        transition: none;
    }

    .mobile-cta {
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}
