/* ============================================
   RESET ET BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
    --transition: all 0.3s ease;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #fff;
    overflow-x: hidden;
}

body.is-preload * {
    animation: none !important;
    transition: none !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* ============================================
   LAYOUT
   ============================================ */
#page-wrapper {
    width: 100%;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.wrapper {
    padding: 60px 0;
}

.wrapper.style1 {
    background: var(--light-bg);
}

.wrapper.style3 {
    background: #fff;
}

/* ============================================
   BANNER / HERO
   ============================================ */
#banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 20px;
    transition: background-image 1s ease-in-out;
    z-index: 1;
    /* Compensation pour le menu fixe */
    margin-top: 60px;
}

#banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 0;
}

#banner .inner {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    /* Ajustement pour centrer correctement */
    margin-top: -30px;
}

#banner .eye3 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

#banner .eyelogo {
 color: #ffd700;
 font-style: italic;
 font-size: clamp(1rem, 3vw, 2rem);
}

.squared {
 font-style: normal;
 font-size: 0.9em;
 color: inherit;
}

.squared sup {
 font-size: 0.8em;
 vertical-align: super;
}

.einstein-initial {
 font-size: 0.5em;
 font-style: normal;
 color: #aaa;
 vertical-align: middle;
 margin-right: 0.1em;
}

.equals-sign {
 font-size: 0.7em;
 font-style: normal;
 color: inherit;
 margin-right: 0.05em;
}



/* ============================================
   NAVIGATION DESKTOP - POSITIONNEMENT CORRIGÉ
   ============================================ */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

#nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 1200px;
    margin: 0 auto;
}

#nav li {
    position: relative;
}

#nav a {
    display: block;
    padding: 15px 20px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
}

#nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

#nav a:hover::after,
#nav a.current::after {
    width: 80%;
}

#nav a:hover {
    color: var(--secondary-color);
}

#nav a i {
    margin-right: 5px;
}

/* ============================================
   BOUTON HAMBURGER MOBILE
   ============================================ */
.nav-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 45px;
    background: var(--primary-color);
    border: 2px solid #fff;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10010;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   MENU MOBILE
   ============================================ */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 10005;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0,0,0,0.3);
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    padding: 80px 0 20px;
    margin: 0;
    list-style: none;
    height: 100%;
}

.mobile-nav li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
}

.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav a {
    display: block;
    padding: 18px 25px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: left;
}

.mobile-nav a:hover,
.mobile-nav a.current {
    background: var(--secondary-color);
    color: #fff;
}

/* Overlay pour menu mobile */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10004;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Bloquer le scroll quand menu ouvert */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   SECTIONS
   ============================================ */
.title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Section Intro */
#intro {
    text-align: center;
}

#intro .style2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

#intro .style1 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Section Highlights */
#highlights {
    background: var(--light-bg);
    padding: 60px 0;
}

#highlights .container {
    max-width: 1400px;
}

#highlights .row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.row.aln-center {
    justify-content: center;
}

/* Bloc d'erreur géolocalisation */
.map-error {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    color: #c62828;
    padding: 20px 30px;
    margin: 0;
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    border-left: 6px solid #d32f2f;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.15);
    animation: slideInLeft 0.5s ease;
    font-size: 15px;
    line-height: 1.6;
}

.map-error strong {
    font-size: 17px;
    display: inline-block;
    margin-bottom: 5px;
}

/* Bloc d'informations de localisation */
.map-debug {
    background: linear-gradient(135deg, #f0f7ff 0%, #d6ebff 100%);
    color: #0d47a1;
    padding: 25px 30px;
    margin: 0;
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    border-left: 6px solid #1976d2;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.15);
    animation: slideInRight 0.5s ease;
    line-height: 2;
}

.map-debug strong {
    font-size: 18px;
    font-weight: 700;
    color: #0d47a1;
    display: block;
    margin-bottom: 15px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.map-debug br {
    line-height: 2.2;
}

.map-debug button {
    margin-top: 15px;
    display: inline-block;
}

/* Titre de distance */
#highlights h3 {
    text-align: center;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--primary-color);
    margin: 25px 0;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    font-weight: 600;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    line-height: 1.5;
}

#highlights h3 img {
    display: inline-block;
    vertical-align: middle;
    margin: 0 8px;
    height: 24px;
    width: auto;
}

/* Carte */
#map {
    height: 600px;
    width: 100%;
    max-width: 1200px;
    margin: 0;
    border: 3px solid #ddd;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* ============================================
   BOUTONS
   ============================================ */
.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: #fff;
    border: 2px solid var(--secondary-color);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.button:hover {
    background: transparent;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.button.style3 {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.button.style3:hover {
    background: transparent;
    color: var(--accent-color);
}

.button.large {
    padding: 15px 40px;
    font-size: 16px;
}

.button.small {
    padding: 8px 20px;
    font-size: 12px;
}

/* ============================================
   FORMULAIRE DE CONTACT
   ============================================ */
#formoim {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

#formoim form {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

#formoim input[type="text"],
#formoim input[type="email"],
#formoim input[type="number"],
#formoim textarea {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background: #fff;
}

#formoim input[type="text"]:focus,
#formoim input[type="email"]:focus,
#formoim input[type="number"]:focus,
#formoim textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

#formoim textarea {
    min-height: 150px;
    resize: vertical;
}

#formoim label {
    display: block;
    margin: 20px 0 10px;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

#formoim input[type="submit"] {
    width: 100%;
    padding: 15px 30px;
    margin-top: 20px;
    background: var(--secondary-color);
    color: #fff;
    border: 2px solid var(--secondary-color);
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

#formoim input[type="submit"]:hover {
    background: transparent;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

#formoim input[type="submit"].primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

#formoim input[type="submit"].primary:hover {
    background: transparent;
    color: var(--accent-color);
}

#formoim p {
    margin: 20px 0;
    color: #ccc;
    text-align: center;
    line-height: 1.6;
}

/* Messages de succès et d'erreur */
#formoim p[style*="color: green"],
#formoim p[style*="color: red"] {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 16px !important;
    animation: slideInDown 0.5s ease;
}

#formoim p[style*="color: green"] {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4caf50;
}

#formoim p[style*="color: red"] {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid #f44336;
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
    background: var(--dark-bg);
    color: #fff;
    padding: 60px 0 30px;
}

#footer .title {
    color: #fff;
}

#footer .title::after {
    background: var(--secondary-color);
}

.style1 {
    text-align: center;
}

/* Copyright */
#copyright {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

#copyright ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#copyright li {
    color: #ccc;
    font-size: 14px;
    line-height: 1.8;
}

#copyright li strong {
    color: var(--secondary-color);
    font-size: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#copyright a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    padding: 5px 10px;
}

#copyright a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media screen and (max-width: 980px) {
    /* CACHER NAV DESKTOP, AFFICHER MOBILE */
    #nav {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }

    .wrapper {
        padding: 40px 0;
    }

    #banner {
        min-height: 70vh;
    }

    .container {
        padding: 0 15px;
    }

    .title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    #intro .style2 {
        font-size: 1.3rem;
    }

    #intro .style1 {
        font-size: 0.95rem;
    }

    .button {
        padding: 10px 25px;
        font-size: 14px;
    }

    /* Zones responsive mobile */
    .map-error,
    .map-debug {
        max-width: 98%;
        padding: 15px 18px;
        font-size: 13px;
        line-height: 1.8;
    }

    .map-debug strong {
        font-size: 16px;
        margin-bottom: 10px;
    }

    #highlights h3 {
        max-width: 98%;
        font-size: 1rem;
        padding: 10px 12px;
        line-height: 1.4;
    }

    #highlights h3 img {
        height: 18px;
        margin: 0 5px;
    }

    #map {
        max-width: 98%;
        height: 400px;
        border-width: 2px;
    }

    #formoim form {
        padding: 20px;
    }

    #formoim input[type="text"],
    #formoim input[type="email"],
    #formoim input[type="number"],
    #formoim textarea {
        font-size: 14px;
        padding: 12px;
    }

    #formoim label {
        font-size: 16px;
    }

    #copyright ul {
        gap: 8px;
    }

    #copyright li {
        font-size: 12px;
    }

    #copyright li strong {
        font-size: 22px;
    }
}

@media screen and (max-width: 480px) {
    #banner .eye3 {
        font-size: 1.8rem;
    }

    .mobile-nav {
        width: 280px;
    }
    
    .nav-toggle {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 40px;
    }
    
    .mobile-nav a {
        padding: 16px 20px;
        font-size: 15px;
    }

    .actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
        text-align: center;
    }

    /* Zones responsive très petit écran */
    .map-error,
    .map-debug {
        max-width: 100%;
        padding: 12px 15px;
        font-size: 12px;
        line-height: 1.6;
        border-left-width: 4px;
    }

    .map-debug strong {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .map-debug button {
        font-size: 12px;
        padding: 8px 15px;
    }

    #highlights h3 {
        max-width: 100%;
        font-size: 0.9rem;
        padding: 8px 10px;
        line-height: 1.3;
    }

    #highlights h3 img {
        height: 16px;
        margin: 0 3px;
    }

    #map {
        max-width: 100%;
        height: 300px;
        border-width: 2px;
        border-radius: 10px;
    }

    #formoim {
        padding: 10px;
    }

    #formoim form {
        padding: 15px;
    }

    #formoim input[type="submit"] {
        font-size: 16px;
        padding: 12px 20px;
    }

    #copyright {
        padding: 20px 10px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Print */
@media print {
    #nav, #banner, .map-debug, .map-error, .mobile-nav, .nav-toggle {
        display: none;
    }
}