/* ========================================
   HOME PAGE - STYLES & ANIMATIONS
   ======================================== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.15) translate(-3%, -3%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* ========================================
   CLASSES D'ANIMATION
   ======================================== */
.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Délais d'animation */
.delay-1 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; transition-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; transition-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; transition-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; transition-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; transition-delay: 0.8s; }
.delay-9 { animation-delay: 0.9s; transition-delay: 0.9s; }

/* ========================================
   HERO HOME - GRANDE PHOTO ANIMÉE
   ======================================== */
.hero-home {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-home__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-home__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 15s ease-in-out infinite;
}

.hero-home__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 1000px;
    margin-top: -60px;
}

.hero-home__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero-home__title-line {
    display: block;
    font-weight: 400;
    font-size: 0.6em;
    margin-bottom: 8px;
}

.hero-home__title-main {
    display: block;
    color: var(--white);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-home__title-highlight {
    color: var(--gold-400);
}

.hero-home__subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--white);
    opacity: 0.95;
    margin-bottom: 60px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Vague en bas du hero */
.hero-home__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}

.hero-home__wave svg {
    display: block;
    width: 100%;
    height: 100px;
}

/* ========================================
   SEARCH BOX
   ======================================== */
.search-box {
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    max-width: 1100px;
    margin: 0 auto;
}

/* Fallback pour navigateurs sans backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
    .search-box {
        background: rgba(255, 255, 255, 0.85);
    }
}

/* Labels en blanc */
.search-box--home .search-box__field label {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ========================================
   SECTION HEADERS - STYLE PRO
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header__title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0;
}

.section-header--light .section-header__title {
    color: var(--white);
}

.section-header--light .section-header__subtitle {
    color: rgba(255, 255, 255, 0.85);
}

/* Sous-titre des sections */
.section-header__subtitle {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-top: 16px;
    font-weight: 400;
    line-height: 1.8;
    max-width: 100%;
    padding: 0 10%;
    letter-spacing: 0.01em;
}

/* Texte mis en avant dans les titres */
.text-highlight {
    color: var(--blue-600);
    position: relative;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 10px;
    background: var(--gold-400);
    opacity: 0.5;
    z-index: -1;
}

/* Lien cliquable dans les titres (garde le style highlight) */
a.text-highlight {
    color: var(--blue-600);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

a.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--gold-400);
    opacity: 0.4;
    z-index: -1;
    transition: opacity 0.3s ease;
}

a.text-highlight:hover {
    color: var(--blue-700);
}

a.text-highlight:hover::after {
    opacity: 0.6;
}

/* Highlight sur fond sombre */
.text-highlight-light {
    color: var(--gold-400);
    position: relative;
}

.text-highlight-light::after {
    display: none;
}

a.text-highlight-light {
    text-decoration: none;
    transition: color 0.3s ease;
}

a.text-highlight-light:hover {
    color: var(--gold-300);
}

/* Liens sur fond sombre */
.text-link-light {
    color: var(--gold-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-link-light:hover {
    color: var(--gold-300);
    text-decoration: underline;
}

/* ========================================
   SECTION ABOUT (Présentation ENGIM)
   ======================================== */
.about-section {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
    overflow: hidden;
}

.about-section__wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    line-height: 0;
}

.about-section__wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

.about-section__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
}

.about-section__image {
    position: absolute;
    inset: 0;
    background-image: url('../images/presentation-engim.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    filter: grayscale(30%);
}

.about-section__container {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header avec titre accrocheur */
.about-section__header {
    text-align: center;
    margin-bottom: 40px;
}

.about-section__title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto;
}

.about-section__brand {
    color: var(--gold-400);
    font-weight: 700;
}

/* Contenu texte */
.about-section__content {
    max-width: 100%;
    padding: 0 10%;
    margin: 0 auto 50px;
    text-align: center;
}

.about-section__content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-section__content p:last-child {
    margin-bottom: 0;
}

/* Grille des métiers */
.about-section__services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Carte métier */
.about-service {
    text-decoration: none;
    display: block;
    text-align: center;
    transition: transform 0.4s ease;
}

.about-service:hover {
    transform: translateY(-10px);
}

.about-service__media {
    position: relative;
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-service__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-service:hover .about-service__media img {
    transform: scale(1.15);
}

.about-service__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 77, 124, 0.7) 0%, rgba(26, 77, 124, 0.2) 100%);
    transition: background 0.4s ease;
}

.about-service:hover .about-service__overlay {
    background: linear-gradient(to top, rgba(26, 77, 124, 0.85) 0%, rgba(26, 77, 124, 0.4) 100%);
}

.about-service__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    color: var(--blue-600);
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.about-service:hover .about-service__icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--gold-400);
    color: var(--blue-900);
}

.about-service__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}

/* ========================================
   ABOUT SECTION - VARIANTE FOND BLANC
   ======================================== */
.about-section--light {
    padding: 80px 0 70px;
    background: #f8fafc;
}

.about-section--light .about-section__wave,
.about-section--light .about-section__bg,
.about-section--light .about-section__image {
    display: none;
}

.about-section--light .about-section__title {
    color: var(--gray-900);
}

.about-section--light .about-section__brand {
    color: var(--blue-600);
}

.about-section--light .about-section__content p {
    color: var(--gray-700);
}

.about-section--light .about-service__title {
    color: var(--gray-800);
}

/* ========================================
   SECTION TERRITOIRES
   ======================================== */
.territories-section {
    position: relative;
    padding: 60px 0 60px;
    background: #ffffff;
    z-index: 1;
}

.territories-section__container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.territories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Territory Card */
.territory-card {
    position: relative;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.territory-card__media {
    position: absolute;
    inset: 0;
}

.territory-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.territory-card:hover .territory-card__media img {
    transform: scale(1.15);
}

.territory-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
    transition: background 0.4s ease;
}

.territory-card:hover .territory-card__overlay {
    background: linear-gradient(to top, rgba(26, 77, 124, 0.85) 0%, rgba(26, 77, 124, 0.3) 50%, rgba(26, 77, 124, 0.1) 100%);
}

.territory-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    z-index: 2;
    transform: translateY(6px);
    transition: transform 0.4s ease;
}

.territory-card:hover .territory-card__content {
    transform: translateY(0);
}

.territory-card__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.territory-card__count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s ease 0.1s;
}

.territory-card:hover .territory-card__count {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   BOUTON CTA CENTRAL (carte interactive)
   ======================================== */
.territory-card--cta {
    background: linear-gradient(135deg, #ffc700 0%, #ffb300 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    border-radius: 50px;
    height: 120px;
    margin: auto 0;
    align-self: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.territory-card--cta:hover {
    background: linear-gradient(135deg, #ffe066 0%, #ffc700 100%);
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.territory-card__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 24px;
    color: var(--blue-900);
}

.territory-card__cta-content svg {
    margin-bottom: 8px;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.territory-card--cta:hover .territory-card__cta-content svg {
    transform: scale(1.1);
}

.territory-card__cta-text {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    max-width: 180px;
}

.territory-card__cta-arrow {
    display: none;
}

/* ========================================
   TERRITORIES SECTION - VARIANTE FOND BLEU AVEC VAGUE
   ======================================== */
.territories-section--styled {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
    overflow: hidden;
}

.territories-section__wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    line-height: 0;
}

.territories-section__wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

.territories-section__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
}

.territories-section__image {
    position: absolute;
    inset: 0;
    background-image: url('../images/presentation-engim.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    filter: grayscale(30%);
}

/* ========================================
   BOUTONS FLOTTANTS CONTACT
   ======================================== */
.floating-buttons {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.floating-btn {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: padding 0.3s ease;
    border: none;
    outline: none;
    min-width: 60px;
    height: 56px;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

.floating-btn__icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-btn__icon svg {
    width: 22px;
    height: 22px;
}

.floating-btn__text {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    transition: max-width 0.3s ease, opacity 0.3s ease, margin-left 0.3s ease;
    overflow: hidden;
    text-transform: uppercase;
}

.floating-btn:hover .floating-btn__text {
    max-width: 200px;
    opacity: 1;
    margin-left: 12px;
}

/* Bouton Contact - Jaune */
.floating-btn--contact {
    background: var(--gold-400, #ffc700);
    color: #ffffff;
    border-radius: 0 8px 0 0;
}

.floating-btn--contact:hover {
    background: #e6b300;
    padding-right: 24px;
}

.floating-btn--contact .floating-btn__icon svg {
    stroke: #ffffff;
}

/* Bouton Téléphone - Bleu */
.floating-btn--phone {
    background: var(--blue-600, #1a4d7c);
    color: #ffffff;
    border-radius: 0 0 8px 0;
}

.floating-btn--phone:hover {
    background: var(--blue-700, #153d63);
    padding-right: 24px;
}

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

@media (max-width: 1024px) {
    .territories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .territory-card {
        height: 160px;
    }
    
    .territory-card__title {
        font-size: 15px;
    }
    
    .territory-card__cta-text {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .hero-home {
        min-height: 85vh;
        padding-bottom: 20px;
    }
    
    .hero-home__img {
        object-position: center 40%;
        transform: scale(0.95);
        transform-origin: center center;
    }
    
    .hero-home__content {
        margin-top: 0;
    }
    
    .search-box--home {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .search-box--home .search-box__row {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-box--home .search-box__field {
        width: 100%;
    }
    
    .territories-section {
        padding: 50px 0;
    }
    
    .about-section {
        padding: 80px 0 70px;
    }
    
    .about-section--light {
        padding: 60px 0 50px;
    }
    
    .territories-section--styled {
        padding: 80px 0 60px;
    }
    
    .territories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Bouton CTA prend toute la largeur en mobile */
    .territory-card--cta {
        grid-column: span 2;
        height: 100px;
    }
    
    .territory-card__cta-content svg {
        display: none;
    }
    
    .territory-card__cta-text {
        font-size: 14px;
    }
    
    .about-section__services {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .territory-card {
        height: 130px;
    }
    
    .about-service__media {
        height: 180px;
    }
    
    .about-section__title {
        font-size: 1.3rem;
    }
    
    .about-section__content p {
        font-size: 15px;
    }
    
    .territories-section__wave svg {
        height: 50px;
    }
    
    /* Boutons flottants mobile */
    .floating-buttons {
        bottom: 20px;
        top: auto;
        left: auto;
        right: 20px;
        transform: none;
        flex-direction: row;
        gap: 10px;
    }
    
    .floating-btn {
        border-radius: 50%;
        width: 54px;
        height: 54px;
        min-width: 54px;
        padding: 0;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .floating-btn--contact,
    .floating-btn--phone {
        border-radius: 50%;
    }
    
    .floating-btn__text {
        display: none;
    }
    
    .floating-btn:hover .floating-btn__text {
        display: none;
    }
    
    .floating-btn:hover {
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .hero-home__wave svg,
    .about-section__wave svg {
        height: 50px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header__title {
        font-size: 1.6rem;
    }
    
    .about-section__services {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-service__title {
        font-size: 13px;
    }
}

/* ========================================
   CORRECTIONS SMARTPHONE - Audit Janvier 2026
   Breakpoints 480px et 374px optimisés
   ======================================== */

/* ========================================
   SMARTPHONE 360-480px - OPTIMISATIONS
   ======================================== */
@media (max-width: 480px) {
    
    /* === HERO === */
    .hero-home {
        min-height: 60vh;
        padding-bottom: 30px;
    }
    
    .hero-home__img {
        object-fit: cover;
        object-position: 40% 40%;
    }
    
    .hero-home__content {
        padding: 0 16px;
        margin-top: 0;
    }
    
    .hero-home__title {
        font-size: 1.9rem;
        margin-bottom: 12px;
    }
    
    .hero-home__title-line {
        font-size: 0.5em;
        margin-bottom: 4px;
    }
    
    .hero-home__subtitle {
        font-size: 14px;
        margin-bottom: 24px;
        line-height: 1.5;
    }
    
    .hero-home__wave svg {
        height: 40px;
    }
    
    /* === MOTEUR DE RECHERCHE === */
    .search-box {
        padding: 14px;
        margin: 0 4px;
        border-radius: 12px;
    }
    
    .search-box__field label {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .search-box__field select,
    .search-box__field input,
    .search-box__location-wrapper input {
        font-size: 16px;
        padding: 12px;
        height: auto;
    }
    
    .search-box__surface-inputs {
        gap: 6px;
    }
    
    .search-box__surface-inputs input {
        min-width: 60px;
        padding: 10px 8px;
        font-size: 14px;
    }
    
    .search-box__btn {
        width: 100%;
        justify-content: center;
        padding: 14px 16px;
        font-size: 14px;
        border-radius: 10px;
        margin-top: 4px;
    }
    
    .search-box__btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ========================================
   TRÈS PETITS ÉCRANS (< 380px)
   ======================================== */
@media (max-width: 380px) {
    
    /* === SECTION PRÉSENTATION === */
    .about-section--light {
        padding: 40px 0;
    }
    
    .about-section__container {
        padding: 0 16px;
    }
    
    .about-section__header {
        margin-bottom: 20px;
    }
    
    .about-section__title {
        font-size: 1.15rem;
        line-height: 1.4;
    }
    
    .about-section__content {
        padding: 0;
        margin-bottom: 28px;
    }
    
    .about-section__content p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    /* === CARTES MÉTIERS === */
    .about-section__services {
        gap: 10px;
    }
    
    .about-service__media {
        height: 120px;
        border-radius: 10px;
        margin-bottom: 10px;
    }
    
    .about-service__icon {
        width: 40px;
        height: 40px;
    }
    
    .about-service__icon svg {
        width: 18px;
        height: 18px;
    }
    
    .about-service__title {
        font-size: 12px;
    }
    
    /* === SECTION HEADERS === */
    .section-header {
        margin-bottom: 24px;
    }
    
    .section-header__title {
        font-size: 1.35rem;
    }
    
    .section-header__subtitle {
        padding: 0;
        font-size: 13px;
        line-height: 1.55;
        margin-top: 12px;
    }
    
    /* === SECTION TERRITOIRES === */
    .territories-section--styled {
        padding: 50px 0 40px;
    }
    
    .territories-section__container {
        padding: 0 16px;
    }
    
    .territories-section__wave svg {
        height: 40px;
    }
    
    .territories-grid {
        gap: 8px;
    }
    
    .territory-card {
        height: 95px;
        border-radius: 8px;
    }
    
    .territory-card__content {
        padding: 10px 12px;
    }
    
    .territory-card__title {
        font-size: 13px;
    }
    
    .territory-card__count {
        font-size: 10px;
    }
    
    .territory-card--cta {
        height: 44px;
        border-radius: 22px;
        grid-column: span 2;
        margin: 4px 0;
    }
    
    .territory-card__cta-content {
        padding: 6px 16px;
        flex-direction: row;
        gap: 8px;
    }
    
    .territory-card__cta-text {
        font-size: 13px;
        max-width: none;
        line-height: 1.2;
    }
    
    /* === BOUTONS FLOTTANTS === */
    .floating-buttons {
        bottom: 16px;
        right: 16px;
        gap: 8px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    
    /* === PERFORMANCE - Réduire délais animation === */
    .delay-4,
    .delay-5,
    .delay-6,
    .delay-7,
    .delay-8,
    .delay-9 {
        animation-delay: 0.25s;
        transition-delay: 0.25s;
    }
    
    .animate-on-scroll {
        transition-duration: 0.5s;
    }
}

/* ========================================
   PETIT SMARTPHONE (360px et moins)
   ======================================== */
@media (max-width: 374px) {
    .hero-home__title {
        font-size: 1.7rem;
    }
    
    .hero-home__subtitle {
        font-size: 13px;
    }
    
    .search-box {
        padding: 12px;
        margin: 0;
    }
    
    .search-box__field select,
    .search-box__field input,
    .search-box__location-wrapper input {
        padding: 10px;
    }
    
    .about-section__title {
        font-size: 1.05rem;
    }
    
    .territory-card {
        height: 85px;
    }
    
    .territory-card__title {
        font-size: 12px;
    }
    
    .territory-card--cta {
        height: 65px;
    }
    
    .territory-card__cta-text {
        font-size: 10px;
        max-width: 190px;
    }
    
    .floating-btn {
        width: 46px;
        height: 46px;
        min-width: 46px;
    }
}

/* ========================================
   ACCESSIBILITÉ - Focus visible
   ======================================== */
.territory-card:focus-visible,
.about-service:focus-visible,
.floating-btn:focus-visible,
.search-box__btn:focus-visible {
    outline: 3px solid var(--gold-400);
    outline-offset: 2px;
}

/* ========================================
   RESPECT prefers-reduced-motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .hero-home__img {
        animation: none;
    }
    
    .animate-on-scroll {
        transition: none;
    }
    
    .about-service__media img,
    .territory-card__media img {
        transition: none;
    }
}

/* ========================================
   MASQUER TEXTES SUR MOBILE
   ======================================== */

/* Version mobile du texte zones - masquée par défaut */
.section-header__subtitle--mobile {
    display: none;
}

@media (max-width: 768px) {
    /* Masquer les paragraphes de présentation ENGIM */
    .about-section__content {
        display: none;
    }
    
    /* Masquer le texte long des zones, afficher le court */
    .section-header__subtitle--desktop {
        display: none;
    }
    
    .section-header__subtitle--mobile {
        display: block;
    }
}
