/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #2d2d2d; line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* === VARIABLES === */
:root {
  --primary: #030540;
  --accent: #06aec0;
  --accent-dark: #058a99;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray: #5f6368;
  --dark: #0d0f2b;
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.10);
  --radius: 12px;
}

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section-title { font-size: 2.2rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; text-align: center; letter-spacing: -0.02em; }
.section-subtitle { font-size: 1.05rem; color: var(--gray); text-align: center; margin-bottom: 3.5rem; max-width: 650px; margin-left: auto; margin-right: auto; }

/* === HEADER === */
header {
  background: var(--primary);
  position: fixed; top: 28px; left: 0; right: 0;
  z-index: 1000;
  padding: 0.8rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
header .container { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 40px; }
nav ul { display: flex; gap: 2rem; }
nav ul { align-items: center; }
nav a { color: rgba(255,255,255,0.8); font-size: 0.88rem; font-weight: 500; transition: color 0.3s; letter-spacing: 0.01em; }
nav a:hover, nav a.active { color: var(--accent); }

/* Top bar */
.top-bar {
  background: var(--accent);
  color: white;
  font-size: 0.78rem;
  padding: 0.35rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: nowrap; }
.top-bar-left { display: flex; gap: 1.5rem; align-items: center; flex-wrap: nowrap; }
.top-bar-left a { color: white; font-weight: 500; white-space: nowrap; }
.top-bar-left a:hover { opacity: 0.8; }
.social-icons { display: flex; gap: 0.5rem; align-items: center; flex-shrink: 0; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.2); transition: background 0.3s; }
.social-icons a:hover { background: rgba(255,255,255,0.4); }
.social-icons svg { width: 12px; height: 12px; fill: white; }

/* Top-bar mobile : tout doit tenir sur une ligne */
@media (max-width: 768px) {
  .top-bar { font-size: 0.7rem; }
  .top-bar .container { padding: 0 0.75rem; gap: 0.5rem; }
  .top-bar-left { gap: 0.6rem; }
  .social-icons { gap: 0.3rem; }
  .social-icons a { width: 20px; height: 20px; }
  .social-icons svg { width: 10px; height: 10px; }
}
@media (max-width: 480px) {
  .top-bar { font-size: 0.65rem; }
  .top-bar-left a[href^="mailto"] { display: none; }
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.hamburger span { display: block; width: 25px; height: 2px; background: white; transition: 0.3s; }

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: white;
  padding: 10rem 0 6rem;
  text-align: center;
}
.hero--compact { padding: 8rem 0 4rem; }
.hero h1 { font-size: 2.6rem; margin-bottom: 1.2rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.hero h1 span { color: var(--accent); }
.hero > .container > p { font-size: 1.2rem; opacity: 0.9; max-width: 700px; margin: 0 auto; }

/* Hero with background image (services) */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 10rem 0 6rem;
}
.hero-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(3,5,64,0.85) 0%, rgba(26,26,46,0.9) 100%);
  z-index: 1;
}

/* Hero grid (homepage) */
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
  min-height: 460px;
}
.hero-grid .hero-text h1 { font-size: 2.4rem; }
.hero-features { margin: 1.5rem 0 2rem; padding: 0; }
.hero-features li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  opacity: 0.9;
  font-size: 1.05rem;
}
.hero-features li::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* === BUTTONS === */
.btn {
  display: inline-block; padding: 0.85rem 2.2rem;
  background: var(--accent); color: white;
  border-radius: 50px; font-weight: 600;
  font-size: 0.92rem; transition: all 0.3s; border: none; cursor: pointer;
  letter-spacing: 0.01em;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(6,174,192,0.35); }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: white; }

/* === SLIDER === */
.hero-slider {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}
.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  background: transparent;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  width: 100%;
}
.slide {
  display: none;
  position: absolute;
  inset: 0;
  animation: fadeIn 0.6s ease;
}
.slide.active { display: block; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.slider-captions {
  position: relative;
  min-height: 3.2rem;
  margin-top: 1rem;
  text-align: center;
}
.slide-caption {
  position: absolute;
  inset: 0;
  font-size: 1rem;
  opacity: 0;
  font-weight: 500;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.slide-caption.active {
  opacity: 0.92;
  pointer-events: auto;
}
.slider-dots {
  display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.2rem;
}
.dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--accent); background: transparent;
  cursor: pointer; transition: all 0.3s; padding: 0;
}
.dot.active { background: var(--accent); }

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

/* === APPROACH (homepage) === */
.approach-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.approach-step {
  text-align: center; padding: 2rem 1rem;
  transition: transform 0.3s;
}
.approach-step:hover { transform: translateY(-5px); }
.approach-step img {
  width: 100px; height: 100px; margin: 0 auto 1.5rem;
  object-fit: contain;
}
.approach-step h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 0.8rem; }
.approach-step p { color: var(--gray); font-size: 0.9rem; }

/* === PROTOTYPAGE (homepage) === */
.proto-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.proto-text h2 { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }
.proto-text p { color: var(--gray); font-size: 1.05rem; line-height: 1.7; }
.proto-img img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* === PROJECT CARDS (homepage) === */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.project-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.project-img { height: 280px; overflow: hidden; background: var(--primary); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-body { padding: 1.5rem; }
.project-body h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 0.5rem; }
.project-body p { color: var(--gray); font-size: 0.9rem; margin-bottom: 0.8rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-tags span {
  font-size: 0.75rem; color: var(--accent-dark);
  background: rgba(6,174,192,0.1); padding: 0.2rem 0.6rem;
  border-radius: 12px; font-weight: 500;
}

/* === SERVICES CARDS === */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card {
  background: var(--white); padding: 2.5rem;
  border-radius: var(--radius); box-shadow: var(--shadow);
  text-align: center; transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.service-card .icon {
  width: 70px; height: 70px; margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: white;
}
.service-card h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 1rem; }
.service-card p { color: var(--gray); font-size: 0.95rem; }

/* === SERVICE BLOCKS (services page) === */
.service-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center; margin-bottom: 4rem; padding: 2rem 0;
}
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
.service-block-text { position: relative; }
.service-block-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: white;
  font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem;
}
.service-block-text h3 { font-size: 1.5rem; color: var(--primary); margin-bottom: 1rem; }
.service-block-text p { color: var(--gray); margin-bottom: 1rem; font-size: 1rem; line-height: 1.7; }
.service-block-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* Frise projet */
.frise-container { text-align: center; }
.frise-img { max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 auto; }

/* === SERVICE LIST === */
.service-list { list-style: none; margin-top: 1rem; padding: 0; }
.service-list li { padding: 0.4rem 0; color: var(--gray); font-size: 0.95rem; padding-left: 1.5rem; position: relative; }
.service-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* === PROCESS / STEPS === */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.process-step {
  text-align: center; padding: 2rem 1.5rem;
  position: relative; counter-increment: step;
}
.process-step::before {
  content: counter(step);
  display: block; width: 50px; height: 50px; margin: 0 auto 1.5rem;
  background: var(--accent); color: white; border-radius: 50%;
  font-size: 1.4rem; font-weight: 700;
  line-height: 50px; text-align: center;
}
.process-step h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 0.8rem; }
.process-step p { color: var(--gray); font-size: 0.9rem; }

/* === EXPERTISE === */
.expertise-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.expertise-text h3 { font-size: 1.5rem; color: var(--primary); margin-bottom: 1rem; }
.expertise-text h4 { font-size: 1.1rem; }
.expertise-text p { color: var(--gray); margin-bottom: 1rem; line-height: 1.7; }
.expertise-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.expertise-list span {
  background: rgba(6,174,192,0.1); color: var(--accent-dark);
  padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.85rem; font-weight: 500;
}
.expertise-img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Connectivity grid */
.connectivity-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.conn-item strong { display: block; color: var(--primary); margin-bottom: 0.5rem; font-size: 0.95rem; }

/* === FEATURES CAROUSEL (expertise page) === */
.features-section { background: var(--primary); color: white; overflow: hidden; }
.features-section .section-title { color: white; }
.features-section .section-subtitle { color: rgba(255,255,255,0.7); }

.features-carousel {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.features-track {
  display: flex;
  gap: 2rem;
  animation: scrollFeatures 40s linear infinite;
  width: max-content;
}
.features-track:hover { animation-play-state: paused; }

.feature-item {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.8rem; padding: 1.5rem 1rem;
  min-width: 110px;
  transition: all 0.3s;
}
.feature-item:hover {
  transform: scale(1.1);
}
.feature-item:hover .feature-icon {
  color: var(--accent);
}
.feature-item:hover span {
  color: var(--accent);
}
.feature-icon {
  color: rgba(255,255,255,0.8);
  transition: color 0.3s;
}
.feature-item span {
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}
.feature-item.actuator .feature-icon { color: var(--accent); }
.feature-item.actuator span { color: var(--accent); font-weight: 600; }

@keyframes scrollFeatures {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === REFERENCES === */
.references-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.ref-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.ref-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

/* Reference card carousel */
.ref-card-carousel {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #f5f5f5;
}
.ref-card-carousel .carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.4s ease;
}
.ref-card-carousel .carousel-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  padding: 10px;
  box-sizing: border-box;
  background: #f5f5f5;
}
.ref-card-carousel .carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ref-card:hover .carousel-slide img { transform: scale(1.05); transition: transform 0.4s; }

/* Carousel dots */
.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.carousel-dots .c-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s;
}
.carousel-dots .c-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* Hide dots if only one slide */
.ref-card-carousel[data-count="1"] .carousel-dots { display: none; }


.ref-card-body { padding: 1.5rem; }
.ref-card-body h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 0.5rem; }
.ref-card-body p { color: var(--gray); font-size: 0.85rem; margin-bottom: 0.8rem; }

/* === CII BADGE === */
.cii-section { background: var(--light); }
.cii-content { display: flex; align-items: center; gap: 3rem; justify-content: center; }
.cii-content img { width: 150px; }
.cii-text h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 0.5rem; }
.cii-text p { color: var(--gray); }

/* === CONTACT CTA === */
.contact-cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: white;
}
.contact-cta-section h2 { font-size: 2rem; margin-bottom: 1rem; }
.contact-cta-section p { opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* === CONTACT PAGE === */
.contact-section { background: var(--primary); color: white; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item .ci-icon { font-size: 1.5rem; color: var(--accent); min-width: 30px; text-align: center; }
.contact-item p { opacity: 0.9; }
.contact-item a { color: var(--accent); }
.contact-item a:hover { text-decoration: underline; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.9rem 1.2rem; margin-bottom: 1rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius); color: white; font-size: 0.95rem; font-family: inherit;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.5); }
.contact-form textarea { height: 150px; resize: vertical; }
.contact-form .btn { width: 100%; }

/* === FOOTER === */
footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 3rem 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a:hover { color: var(--accent); }

/* === LEGAL PAGES === */
.legal-page { padding: 8rem 0 4rem; }
.legal-page h1 { font-size: 2rem; color: var(--primary); margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.3rem; color: var(--primary); margin-top: 2rem; margin-bottom: 0.8rem; }
.legal-page p { color: var(--gray); margin-bottom: 1rem; }

/* === DROPDOWN NAV === */
.dropdown { position: relative; }
.dropdown > a::after { content: " ▾"; font-size: 0.7rem; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--primary); border-radius: var(--radius);
  min-width: 280px; padding: 0.5rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3); z-index: 100;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 0.6rem 1.2rem; font-size: 0.85rem; white-space: nowrap; }
.dropdown-menu a:hover { background: rgba(6,174,192,0.15); color: var(--accent); }

/* === USE CASE CARDS (homepage / listing) === */
.usecase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.usecase-card {
  background: var(--white); border-radius: var(--radius); padding: 2.5rem;
  box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s;
  border-left: 4px solid var(--accent);
}
.usecase-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.usecase-card .uc-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.usecase-card h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: 0.8rem; }
.usecase-card p { color: var(--gray); font-size: 0.92rem; margin-bottom: 1.2rem; }
.usecase-card .btn { font-size: 0.85rem; padding: 0.6rem 1.5rem; }

/* === USE CASE DETAIL PAGE === */
.uc-hero { padding: 9rem 0 4rem; text-align: left; }
.uc-hero .container { max-width: 800px; }
.uc-tag { display: inline-block; background: rgba(6,174,192,0.2); color: var(--accent); padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem; letter-spacing: 0.05em; text-transform: uppercase; }
.uc-hero h1 { font-size: 2.2rem; text-align: left; }
.uc-hero p { text-align: left; margin-top: 1rem; }

.uc-section { padding: 4rem 0; }
.uc-section .container { max-width: 900px; }
.uc-section h2 { font-size: 1.6rem; color: var(--primary); margin-bottom: 1.5rem; }

.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.problem-item {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border-left: 3px solid #e74c3c;
}
.problem-item h4 { color: var(--primary); font-size: 0.95rem; margin-bottom: 0.4rem; }
.problem-item p { color: var(--gray); font-size: 0.88rem; }

.solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.solution-item {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border-left: 3px solid var(--accent);
}
.solution-item h4 { color: var(--primary); font-size: 0.95rem; margin-bottom: 0.4rem; }
.solution-item p { color: var(--gray); font-size: 0.88rem; }

.deliverables { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.deliverables span {
  background: rgba(6,174,192,0.1); color: var(--accent-dark);
  padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.85rem; font-weight: 500;
}

/* FAQ */
.faq-list { max-width: 800px; margin: 2rem auto 0; }
.faq-item { border-bottom: 1px solid #e9ecef; padding: 1.5rem 0; }
.faq-item h4 { color: var(--primary); font-size: 1rem; margin-bottom: 0.5rem; font-weight: 600; }
.faq-item p { color: var(--gray); font-size: 0.92rem; }

/* === LOGO SCROLL BANNER === */
.logo-banner { padding: 3rem 0; background: var(--white); overflow: hidden; }
.logo-banner h3 { text-align: center; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gray); font-weight: 500; margin-bottom: 2rem; }
.logo-track-wrapper { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.logo-track { display: flex; align-items: center; gap: 4rem; width: max-content; animation: logoScroll 30s linear infinite; }
.logo-track img { height: 40px; opacity: 0.5; filter: grayscale(100%); transition: opacity 0.3s, filter 0.3s; flex-shrink: 0; }
.logo-track img:hover { opacity: 1; filter: grayscale(0%); }
@keyframes logoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === BASELINE SEPARATOR === */
.baseline-section { padding: 2.5rem 0; background: var(--white); }
.baseline-text { text-align: center; font-size: 1.25rem; font-weight: 700; color: var(--primary); letter-spacing: -0.01em; }
.baseline-text span { color: var(--accent); }

/* === VALUE CARDS (3 colonnes, border-top accent) === */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.value-grid--4 { grid-template-columns: repeat(4, 1fr); }
.value-card { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border-top: 4px solid var(--accent); text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.value-card .value-num { display: block; font-size: 2rem; font-weight: 700; color: var(--accent); margin-bottom: 0.5rem; }
.value-card h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 0.6rem; font-weight: 700; }
.value-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.65; }

/* === TARGET CARDS (pour qui, border-left) === */
.target-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.target-grid--3 { grid-template-columns: repeat(3, 1fr); }
.target-card { background: var(--white); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); border-left: 4px solid var(--accent); transition: transform 0.3s, box-shadow 0.3s; }
.target-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.target-card .target-tag { display: inline-block; padding: 0.25rem 0.9rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8rem; }
.target-tag--eti     { background: rgba(3,5,64,0.08);    color: var(--primary);    }
.target-tag--startup { background: rgba(6,174,192,0.12); color: var(--accent-dark);}
.target-card h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: 1rem; font-weight: 700; line-height: 1.35; }
.target-card ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.target-card ul li { padding-left: 1.5rem; position: relative; color: var(--gray); font-size: 0.9rem; line-height: 1.55; }
.target-card ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* === PHASE TIMELINE (méthode, dark bg) === */
.phase-section { background: var(--primary); }
.phase-section .section-title    { color: white; }
.phase-section .section-subtitle { color: rgba(255,255,255,0.65); }
.phase-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: phase; }
.phase-timeline--3 { grid-template-columns: repeat(3, 1fr); }
.phase-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem 1.8rem;
  padding-top: 4rem;
  counter-increment: phase;
  position: relative;
  transition: transform 0.3s, background 0.3s;
}
.phase-item:hover { transform: translateY(-4px); background: rgba(255,255,255,0.11); }
.phase-item::before {
  content: counter(phase);
  position: absolute; top: 1.2rem; left: 1.5rem;
  width: 38px; height: 38px;
  background: var(--accent); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.phase-item.phase-accent { background: rgba(6,174,192,0.15); border-color: rgba(6,174,192,0.4); }
.phase-item.phase-accent::after {
  content: "Notre différence";
  position: absolute; top: 1.45rem; left: 4rem;
  font-size: 0.65rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em;
}
.phase-item h3 { font-size: 0.95rem; color: white; margin-bottom: 0.5rem; font-weight: 700; }
.phase-item p  { color: rgba(255,255,255,0.65); font-size: 0.875rem; line-height: 1.6; }

/* === CASE BLOCKS (projets, 3 colonnes Problème/Solution/Résultats) === */
.case-block { background: var(--white); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); margin-bottom: 2rem; }
.case-block:last-child { margin-bottom: 0; }
.case-block h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: 0.3rem; font-weight: 700; }
.case-subtitle { color: var(--accent-dark); font-size: 0.9rem; font-weight: 600; margin-bottom: 1.8rem; display: block; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.case-col h4 { font-size: 0.8rem; color: var(--accent-dark); margin-bottom: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }
.case-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.case-col ul li { padding-left: 1.2rem; position: relative; color: var(--gray); font-size: 0.88rem; line-height: 1.5; }
.case-col ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.result-highlight { display: inline-block; background: rgba(6,174,192,0.1); color: var(--accent-dark); padding: 0.3rem 0.8rem; border-radius: 8px; font-weight: 600; font-size: 0.82rem; margin: 0.2rem 0.25rem 0 0; }

/* === ECO GRID (écosystème, leviers) === */
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.eco-grid--4 { grid-template-columns: repeat(4, 1fr); }
.eco-card { background: var(--white); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.eco-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.eco-card .eco-num { display: block; font-size: 1.8rem; font-weight: 700; color: var(--accent); margin-bottom: 0.4rem; line-height: 1; }
.eco-card h3 { font-size: 1rem; color: var(--primary); margin-bottom: 0.5rem; font-weight: 700; }
.eco-card p { color: var(--gray); font-size: 0.87rem; line-height: 1.65; }

/* === LEVER CARDS (leviers business, 2x2 avec numéro XL) === */
.lever-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.lever-card { background: var(--white); border-radius: var(--radius); padding: 2rem 2rem 2rem 5.5rem; box-shadow: var(--shadow); position: relative; transition: transform 0.3s, box-shadow 0.3s; }
.lever-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.lever-card .lever-num { position: absolute; top: 1.8rem; left: 1.8rem; font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.lever-card h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 0.6rem; font-weight: 700; line-height: 1.35; }
.lever-card p { color: var(--gray); font-size: 0.92rem; line-height: 1.7; }
.lever-cta { text-align: center; margin-top: 2.5rem; padding: 1.2rem 2rem; background: rgba(6,174,192,0.08); border-radius: var(--radius); color: var(--primary); font-size: 0.95rem; }
.lever-cta a { color: var(--accent-dark); font-weight: 700; text-decoration: underline; }

/* === METHOD FRIEZE (page services, 5 photos carrées horizontales) === */
.method-frieze {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.8rem;
  align-items: flex-start;
  justify-content: center;
  max-width: 100%;
  margin: 0 auto;
}
.method-frieze-step {
  position: relative;
  text-align: center;
  flex: 0 1 180px;
  min-width: 0;
}
.method-frieze-step img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: block;
  transition: transform 0.3s, box-shadow 0.3s;
}
.method-frieze-step:hover img {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.method-frieze-num {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(6,174,192,0.3);
}
.method-frieze-label {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.01em;
}
.method-frieze-step:not(:last-child)::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: -0.85rem;
  transform: translateY(-85%);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  z-index: 1;
  opacity: 0.6;
}

/* === MAILLAGE INTERNE — SUJETS LIÉS (cas-usage) === */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.related-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 2.2rem;
  box-shadow: var(--shadow);
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 3px solid var(--accent);
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.related-card h3 { font-size: 1rem; color: var(--primary); margin-bottom: 0.5rem; font-weight: 700; line-height: 1.35; }
.related-card p  { color: var(--gray); font-size: 0.88rem; line-height: 1.55; }
.related-arrow {
  position: absolute;
  bottom: 1rem; right: 1.2rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  transition: transform 0.3s;
}
.related-card:hover .related-arrow { transform: translateX(4px); }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }

/* === FUNDING / CRÉDIBILITÉ === */
.funding-section { background: var(--light); }
.funding-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.funding-card { background: var(--white); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); display: flex; gap: 1.2rem; align-items: flex-start; transition: transform 0.3s, box-shadow 0.3s; }
.funding-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.funding-card-icon { flex-shrink: 0; }
.funding-card-icon img { width: 52px; height: auto; }
.funding-card-body h4 { font-size: 0.95rem; color: var(--primary); margin-bottom: 0.4rem; font-weight: 700; }
.funding-card-body p  { color: var(--gray); font-size: 0.85rem; line-height: 1.6; }
.funding-tag { display: inline-block; background: rgba(6,174,192,0.12); color: var(--accent-dark); padding: 0.2rem 0.7rem; border-radius: 12px; font-size: 0.76rem; font-weight: 600; margin-top: 0.6rem; }

/* === HERO — NOUVEAUX ÉLÉMENTS === */
.hero-eyebrow {
  display: inline-block;
  background: rgba(6,174,192,0.18);
  color: var(--accent);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero-mission {
  font-size: 1rem;
  opacity: 0.82;
  margin: 1.2rem 0 1.8rem;
  line-height: 1.75;
  max-width: 500px;
}
.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2.2rem;
}
.hero-pillar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(6,174,192,0.35);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.hero-pillar svg { color: var(--accent); flex-shrink: 0; }

/* === CHALLENGES SECTION === */
.challenges-section { background: var(--light); }
.challenges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.challenge-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid transparent;
}
.challenge-card:first-child { border-top-color: var(--primary); }
.challenge-card:last-child  { border-top-color: var(--accent); }
.challenge-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.challenge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
}
.challenge-tag--eti    { background: rgba(3,5,64,0.08);      color: var(--primary);    }
.challenge-tag--startup{ background: rgba(6,174,192,0.12);   color: var(--accent-dark);}
.challenge-card h3 { font-size: 1.2rem; color: var(--primary); line-height: 1.4; font-weight: 700; }
.challenge-list {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 0.9rem;
  flex: 1;
}
.challenge-list li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--gray);
  font-size: 0.93rem;
  line-height: 1.6;
}
.challenge-list li::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}
.challenge-card .btn { align-self: flex-start; margin-top: 0.5rem; }

/* === METHOD SECTION === */
.method-section { background: var(--primary); }
.method-section .section-title  { color: white; }
.method-section .section-subtitle { color: rgba(255,255,255,0.65); }

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
/* Ligne de connexion entre les étapes */
.method-steps::after {
  content: "";
  position: absolute;
  top: 46px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(6,174,192,0.5), rgba(6,174,192,0.1));
  pointer-events: none;
  z-index: 0;
}
.method-step {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
  position: relative;
  z-index: 1;
}
.method-step:hover { transform: translateY(-5px); background: rgba(255,255,255,0.1); }
.method-step--accent {
  background: rgba(6,174,192,0.14);
  border-color: rgba(6,174,192,0.4);
}
.method-step--accent::before {
  content: "Notre différence";
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent); color: white;
  font-size: 0.68rem; font-weight: 700;
  padding: 0.22rem 0.85rem;
  border-radius: 10px;
  text-transform: uppercase; letter-spacing: 0.06em;
  white-space: nowrap;
}
.method-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent); color: white;
  font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  position: relative; z-index: 2;
  box-shadow: 0 0 0 4px rgba(6,174,192,0.2);
}
.method-step img {
  width: 60px; height: 60px;
  object-fit: contain;
  margin: 0 auto 1.2rem;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
.method-step h3 { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 0.75rem; line-height: 1.35; }
.method-step p  { color: rgba(255,255,255,0.65); font-size: 0.875rem; line-height: 1.65; }

/* === PROJECT CHALLENGE LABEL === */
.project-challenge {
  font-size: 0.73rem; font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
  padding: 0.25rem 0.7rem;
  background: rgba(6,174,192,0.08);
  border-radius: 6px;
  display: inline-block;
}

/* === WHY SECTION === */
.why-section { background: var(--light); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2rem 2rem 1.8rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
  transition: transform 0.3s, box-shadow 0.3s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.why-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex; align-items: center; justify-content: center;
  color: white;
  flex-shrink: 0;
}
.why-card-text { display: flex; flex-direction: column; gap: 0.5rem; }
.why-card h3 { font-size: 1.05rem; color: var(--primary); font-weight: 700; line-height: 1.35; }
.why-card p  { color: var(--gray); font-size: 0.9rem; line-height: 1.7; }
.why-card--cii .why-icon {
  background: none; width: auto; height: auto; border-radius: 0; margin-top: 4px;
}
.why-card--cii .why-icon img { width: 64px; height: auto; }

/* === RESPONSIVE === */

/* Grand écran intermédiaire : on ajuste mais on ne casse pas les grilles */
@media (max-width: 1024px) {
  .hero-grid .hero-text h1 { font-size: 2.2rem; }
  .method-steps { gap: 1rem; }
}

/* Tablette paysage (900px) — grilles passent en 2 colonnes */
@media (max-width: 900px) {
  .method-steps { grid-template-columns: repeat(2, 1fr); }
  .method-steps::after { display: none; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .phase-timeline { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .eco-grid, .eco-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .lever-grid { grid-template-columns: 1fr; }
  .method-frieze-step { flex: 0 1 110px; }
  .method-frieze-label { font-size: 0.72rem; }
}

/* Tablette portrait (768px) — hero et nav mobile */
@media (max-width: 768px) {
  /* Nav mobile */
  .dropdown-menu { position: static; box-shadow: none; padding-left: 1rem; }
  .dropdown:hover .dropdown-menu { display: block; }
  .hamburger { display: flex; }
  nav ul {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--primary); padding: 1rem 2rem; gap: 1rem;
  }
  nav ul.active { display: flex; }

  /* Hero */
  .hero h1, .hero-grid .hero-text h1 { font-size: 2rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .hero-grid .hero-text { order: 1; }
  .hero-slider { order: 2; max-width: 380px; margin: 0 auto; }
  .hero-mission { margin-left: auto; margin-right: auto; }
  .hero-pillars { justify-content: center; }
  .hero-buttons { justify-content: center; }

  /* Pages internes */
  .services-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid  { grid-template-columns: repeat(2, 1fr); }
  .proto-grid    { grid-template-columns: 1fr; }
  .expertise-content { grid-template-columns: 1fr; }
  .references-grid   { grid-template-columns: 1fr; }
  .contact-grid      { grid-template-columns: 1fr; }
  .cii-content { flex-direction: column; text-align: center; }
  .service-block { grid-template-columns: 1fr; gap: 2rem; }
  .service-block.reverse { direction: ltr; }
  .usecase-grid { grid-template-columns: 1fr; }
  .problem-grid, .solution-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }

  /* Why cards : repassent en colonne sur tablette */
  .why-card { flex-direction: column; gap: 1rem; }
}

/* Mobile (600px) — tout en 1 colonne */
@media (max-width: 600px) {
  .container       { padding: 0 1.25rem; }
  .section         { padding: 3.5rem 0; }
  .section-title   { font-size: 1.6rem; }
  .section-subtitle { font-size: 0.95rem; margin-bottom: 2.2rem; }
  .hero            { padding: 7rem 0 3.5rem; }
  .page-hero       { padding: 7rem 0 3.5rem; }
  .challenges-grid { grid-template-columns: 1fr; }
  .method-steps    { grid-template-columns: 1fr; }
  .projects-grid   { grid-template-columns: 1fr; }
  .why-grid        { grid-template-columns: 1fr; }
  .approach-grid   { grid-template-columns: 1fr; }
  .process-grid    { grid-template-columns: 1fr; }
  .references-grid { grid-template-columns: 1fr; }
  .challenge-card  { padding: 2rem 1.5rem; }
  .hero h1, .hero-grid .hero-text h1 { font-size: 1.75rem; }
  /* Nouvelles classes */
  .value-grid, .value-grid--4         { grid-template-columns: 1fr; }
  .target-grid, .target-grid--3       { grid-template-columns: 1fr; }
  .phase-timeline, .phase-timeline--3 { grid-template-columns: 1fr; }
  .case-grid       { grid-template-columns: 1fr; }
  .funding-grid    { grid-template-columns: 1fr; }
  .funding-card    { flex-direction: column; }
  .baseline-text   { font-size: 1.05rem; }
  .eco-grid, .eco-grid--4 { grid-template-columns: 1fr; }
  .lever-grid      { grid-template-columns: 1fr; }
  .lever-card      { padding: 2rem 1.5rem 2rem 4.5rem; }
  .lever-card .lever-num { top: 1.5rem; left: 1.5rem; font-size: 1.7rem; }
  .method-frieze   { gap: 0.4rem; overflow-x: auto; justify-content: flex-start; padding-bottom: 0.5rem; }
  .method-frieze-step { flex: 0 0 90px; }
  .method-frieze-step::after { display: none !important; }

  /* Cards inline-flex avec width fixe : on les laisse passer en colonne pour ne pas couper */
  .funding-card[style*="display: flex"],
  .trust-card[style*="display: flex"] { flex-direction: column !important; text-align: center !important; align-items: center !important; }
}

/* === COOKIE BANNER (Futurope) === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: white;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  border-top: 3px solid var(--accent);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
}
.cookie-banner-text {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.5;
}
.cookie-banner-text strong { color: var(--accent); }
.cookie-banner-text a { color: var(--accent); text-decoration: underline; }
.cookie-banner-text a:hover { color: white; }
.cookie-banner-buttons {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  white-space: nowrap;
}
.cookie-btn-accept {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.cookie-btn-accept:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.cookie-btn-refuse {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.cookie-btn-refuse:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

/* Mini link to reopen banner */
.cookie-reopen {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 998;
  cursor: pointer;
  border: none;
  font-family: inherit;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.cookie-reopen:hover { opacity: 1; }

@media (max-width: 768px) {
  .cookie-banner .container { flex-direction: column; gap: 1rem; align-items: stretch; }
  .cookie-banner-buttons { justify-content: center; flex-wrap: wrap; }
  .cookie-banner-text { text-align: center; }
}
