/* ============================================
   INYA GRID - Version 2.1 FINALE
   Overlay plus fin + Slider unifié
   ============================================ */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #003366;
    --accent-color: #ff6600;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #003366 100%);
}

body {
    font-family: 'Comfortaa', cursive, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

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

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img{
  height: 52px;
  width: auto;
  display:block;
  transition: transform 220ms ease, height 220ms ease;
}

@media (max-width: 768px){
  .logo img{ height: 40px; }
}


.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Comfortaa', cursive, sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transform-origin: center;
    transition: all 0.3s ease;
}


/* Hamburger animation -> X */
.hamburger.active span:nth-child(1){
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2){
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3){
    transform: translateY(-8px) rotate(-45deg);
}
/* ===== HERO SECTION & PAGE HEADER - UNIFIÉ ===== */
.hero-section,
.page-header {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

/* Overlay plus fin (30% au lieu de 70%) pour mieux voir les photos */
.hero-overlay,
.hero-section::after,
.page-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 51, 102, 0.3), rgba(0, 102, 204, 0.3));
    z-index: 2;
}

.hero-content,
.page-header .container {
    position: relative;
    z-index: 3;
}

.hero-title,
.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle,
.page-header p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* ===== SLIDER STYLES - UNIFIÉ ===== */
.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.slider-slide.active {
    opacity: 1;
    z-index: 1;
    animation: kenBurns 20s ease-out forwards;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.3);
}

/* ===== INTRO SECTION ===== */
.intro-section {
    padding: 4rem 2rem;
    background: var(--white);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.closing-statement {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 2rem;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 4rem 2rem;
    background: var(--bg-light);
}

.lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
}

/* ===== ABOUT CARDS ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.about-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== VALUES SECTION ===== */
.values-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.values-intro h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.value-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.value-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 600;
}

.value-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== SERVICES SECTION ===== */
.services-intro {
    background: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.services-intro p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.services-section {
    padding: 2rem 2rem 4rem;
    background: var(--bg-light);
}

.service-block {
    background: var(--white);
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-block:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.service-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
}

.service-header h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    flex: 1;
}

.service-list {
    list-style: none;
    padding-left: 0;
}

.service-list li {
    padding: 0.8rem 0 0.8rem 2.5rem;
    position: relative;
    color: var(--text-dark);
    line-height: 1.7;
}

.service-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
}

/* ===== SECTORS SECTION ===== */
.sectors-intro {
    background: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.sectors-intro p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.sectors-section {
    padding: 2rem 2rem 4rem;
    background: var(--bg-light);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.sector-card {
    background: var(--white);
    border-radius: 15px;
    padding: 3rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sector-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.sector-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.15);
}

.sector-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 1rem;
}

.sector-card h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.sector-card > p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.sector-features ul {
    list-style: none;
    padding-left: 0;
}

.sector-features li {
    padding: 0.6rem 0 0.6rem 1.8rem;
    position: relative;
    color: var(--text-dark);
}

.sector-features li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 4rem 2rem;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-text p,
.contact-text a {
    color: var(--text-light);
    text-decoration: none;
}

.contact-text a:hover {
    color: var(--primary-color);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Comfortaa', cursive, sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Comfortaa', cursive, sans-serif;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title, .page-header h1 {
        font-size: 2rem;
    }

    .hero-subtitle, .page-header p {
        font-size: 1rem;
    }

    .hero-section, .page-header {
        min-height: 50vh;
    }

    .service-header {
        flex-direction: column;
        text-align: center;
    }

    .service-number {
        font-size: 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .slider-dots {
        bottom: 20px;
        gap: 8px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }
}



/* =========================
   Language Switcher (Premium)
========================= */
.language-switcher{
  display:flex;
  gap:8px;
  align-items:center;
}

.lang-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border:1px solid rgba(15,23,42,0.18);
  border-radius:10px;
  background:#fff;
  cursor:pointer;
  font-weight:700;
  font-size:12px;
  line-height:1;
  transition:transform .08s ease, box-shadow .12s ease, background .12s ease;
}

.lang-btn .flag{ font-size:14px; line-height:1; }
.lang-btn .code{ letter-spacing:0.3px; }

.lang-btn:hover{
  box-shadow:0 8px 20px rgba(2,6,23,0.10);
  transform:translateY(-1px);
}

.lang-btn.active{
  background:rgba(15,23,42,0.06);
  border-color:rgba(15,23,42,0.28);
}

/* RTL support */
html[dir="rtl"] body{
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .navbar .nav-links{
  direction: rtl;
}


/* Navbar premium scroll state */
.navbar{
  transition: box-shadow 220ms ease, background-color 220ms ease, backdrop-filter 220ms ease;
}
.navbar.scrolled{
  box-shadow: 0 10px 28px rgba(2,6,23,0.10);
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.92);
}
.navbar.scrolled .logo img{
  transform: scale(0.94);
}


/* Contact form status */
.form-status{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  display: none;
}
.form-status.show{ display:block; }
.form-status.success{ background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.25); }
.form-status.error{ background: rgba(239,68,68,0.10); border: 1px solid rgba(239,68,68,0.25); }
.form-status.info{ background: rgba(59,130,246,0.10); border: 1px solid rgba(59,130,246,0.25); }


/* ===== Premium Services Journey ===== */
.page-hero.compact{ padding: 64px 0 28px; }
.page-title{ margin: 0 0 10px; }
.page-subtitle{ margin: 0; max-width: 900px; opacity: 0.92; }

.services-journey{ padding: 28px 0 64px; }
.journey-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.service-step{
  position: relative;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 14px 40px rgba(2,6,23,0.06);
  overflow: hidden;
}
.step-badge{
  position: absolute;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.9);
}
.step-content{ padding: 18px 18px 18px 72px; }
.step-content h2{ margin: 0 0 10px; font-size: 20px; }
.step-content ul{ margin: 0; padding-left: 18px; }
.step-content li{ margin: 7px 0; opacity: 0.95; }

@media (max-width: 900px){
  .journey-grid{ grid-template-columns: 1fr; }
  .page-hero.compact{ padding: 54px 0 22px; }
}

/* ===== Premium Sectors ===== */
.sectors-premium{ padding: 28px 0 64px; }
.sectors-grid.premium{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.sector-card{
  position: relative;
  min-height: 260px;
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 14px 40px rgba(2,6,23,0.10);
}
.sector-overlay{
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(2,6,23,0.10), rgba(2,6,23,0.78));
  color: #fff;
}
.sector-number{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  margin-bottom: 12px;
}
.sector-overlay h3{ margin: 0 0 8px; font-size: 22px; }
.sector-overlay p{ margin: 0; max-width: 560px; opacity: 0.95; }

@media (max-width: 900px){
  .sectors-grid.premium{ grid-template-columns: 1fr; }
  .sector-card{ min-height: 240px; }
}

/* ===== Trust section ===== */
.trust-section{ padding: 6px 0 70px; }
.trust-list{
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px 14px;
}
.trust-list li{
  padding: 12px 14px;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 30px rgba(2,6,23,0.05);
}
@media (max-width: 700px){
  .trust-list{ grid-template-columns: 1fr; }
}

/* ===== Mobile menu overlay ===== */
#menuOverlay{
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
  z-index: 40;
}
#menuOverlay.active{
  opacity: 1;
  visibility: visible;
}
body.no-scroll{ overflow: hidden; }


/* Social links (Footer + Contact) */
.social-links{
  display:flex;
  gap:14px;
  align-items:center;
  margin-top:12px;
}

.social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,0.14);
  color: inherit;
  opacity: 0.75;
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
}

.social-link:hover{
  opacity:1;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2,6,23,0.10);
}

.social-link svg{
  width:20px;
  height:20px;
  fill: currentColor;
}

.contact-socials{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(15,23,42,0.10);
}
