/* ============================================================
   AJRental — Global Stylesheet
   Conciergerie Airbnb Bretagne
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --light-bg: #F5F5F5;
  --dark: #1a1a1a;
  --dark-accent: #111111;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --border: #E5E5E5;
  --accent: #1a1a1a;
  --accent-hover: #333333;
  --success: #22C55E;
  --gold: #C5A059;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 50px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2.5rem; }
.section { padding: 6rem 0; }
.section-alt { background: var(--light-bg); }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--dark); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.section-title { margin-bottom: 1.5rem; }
.section-subtitle { color: var(--text-light); font-size: 1.1rem; max-width: 650px; line-height: 1.8; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--dark);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}
.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--dark);
}
.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-sm { padding: 0.65rem 1.5rem; font-size: 0.85rem; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--off-white);
  height: 72px;
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition), background var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  background: rgba(250,250,250,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.nav-logo span { font-weight: 400; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dark);
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--dark);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.nav-cta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--dark);
  color: var(--white);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--dark);
  transition: all var(--transition);
}
.nav-cta:hover {
  background: transparent;
  color: var(--dark);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1001;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all var(--transition);
  display: block;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  padding: 6rem 2rem 2rem;
  transition: right var(--transition);
  box-shadow: var(--shadow-lg);
}
.mobile-drawer.open { right: 0; }
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-drawer .nav-link {
  display: block;
  font-size: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.mobile-drawer .nav-link::after { display: none; }
.mobile-drawer .nav-cta {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
  padding: 4rem 0;
}
.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
}
.hero h1 em {
  font-style: italic;
  display: block;
}
.hero-text {
  font-size: 1.15rem;
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 560px;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--dark);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  color: var(--white);
}
.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-item .stat-label {
  font-size: 0.85rem;
  opacity: 0.7;
  letter-spacing: 0.05em;
}

/* ============================================================
   SOLUTIONS (Cards)
   ============================================================ */
.solutions-header { text-align: center; margin-bottom: 4rem; }
.solutions-header .section-subtitle { margin: 0 auto; }

.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.offer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.offer-card:hover {
  border-color: var(--dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.offer-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}
.offer-badge-serenite { background: #E8F5E9; color: #2E7D32; }
.offer-badge-performance { background: #E3F2FD; color: #1565C0; }

.offer-card h3 { margin-bottom: 1rem; font-size: 1.6rem; }
.offer-card .offer-desc {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.offer-features { margin-bottom: 2rem; }
.offer-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
}
.offer-feature .check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  margin-top: 2px;
}
.offer-feature p { font-size: 0.95rem; color: var(--text); }
.offer-feature .feature-detail { font-size: 0.82rem; color: var(--text-muted); }

.offer-pricing {
  background: var(--light-bg);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}
.offer-pricing .price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.offer-pricing .price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
}
.offer-pricing .price-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ============================================================
   AI / TECHNOLOGY SECTION
   ============================================================ */
.tech-section {
  background: var(--dark);
  color: var(--white);
  padding: 6rem 0;
}
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.tech-content h2 { color: var(--white); margin-bottom: 1.5rem; }
.tech-content p { opacity: 0.85; line-height: 1.8; margin-bottom: 2rem; }
.tech-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.tech-stat {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
}
.tech-stat .stat-val {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.tech-stat .stat-desc {
  font-size: 0.8rem;
  opacity: 0.6;
}
.tech-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.tech-visual-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem;
}
.tech-visual-card h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.tech-visual-card p {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.6;
}

/* ============================================================
   ENGAGEMENTS / GUARANTEES
   ============================================================ */
.engagements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.engagement-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
}
.engagement-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--dark);
}
.engagement-icon {
  width: 56px;
  height: 56px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.4rem;
}
.engagement-card h3 { font-size: 1.15rem; margin-bottom: 0.8rem; }
.engagement-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* ============================================================
   STEPS / PROCESS
   ============================================================ */
.steps-header { text-align: center; margin-bottom: 4rem; }
.steps-header .section-subtitle { margin: 0 auto; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}
.step-number {
  width: 48px;
  height: 48px;
  background: var(--dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 0.8rem; }
.step-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* Step connector lines */
.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 3.5rem;
  right: -1rem;
  width: calc(100% - 4rem);
  height: 1px;
  background: var(--border);
  transform: translateX(100%);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-header { text-align: center; margin-bottom: 3rem; }
.testimonials-header .section-subtitle { margin: 0 auto; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: all var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.testimonial-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author { font-weight: 600; font-size: 0.9rem; }
.testimonial-location { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-section {
  background: var(--dark);
  color: var(--white);
  padding: 6rem 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.contact-info h2 { color: var(--white); margin-bottom: 1rem; }
.contact-info p { opacity: 0.8; line-height: 1.8; margin-bottom: 1.5rem; }
.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.6;
}

.contact-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.4);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.4);
}
.form-group select option { background: var(--dark); color: var(--white); }
.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--white);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 0.5rem;
}
.form-submit:hover { background: var(--off-white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.form-note { text-align: center; font-size: 0.78rem; opacity: 0.5; margin-top: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-accent);
  color: var(--white);
  padding: 1.5rem 0;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.85rem; opacity: 0.5; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-copy { font-size: 0.78rem; opacity: 0.4; }
.footer-partners {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-partners img { height: 28px; opacity: 0.6; transition: opacity var(--transition); }
.footer-partners img:hover { opacity: 1; }

/* SEO text block */
.seo-text {
  font-size: 0.69rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.5;
  margin-top: 0.75rem;
  text-align: center;
}

/* Eyebrow above H1 */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
}

/* Airbnb clickable partner link */
.footer-partner-link { display: inline-flex; align-items: center; }
.footer-partner-link img { transition: opacity 0.25s ease; }
.footer-partner-link:hover img { opacity: 0.8 !important; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  transform: translateY(20px);
  transition: transform var(--transition);
  position: relative;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: color var(--transition);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.modal-close:hover { color: var(--dark); background: var(--light-bg); }
.modal h3 { margin-bottom: 1rem; }
.modal p { color: var(--text-light); line-height: 1.7; margin-bottom: 1rem; }

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */
.page {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.page.active { opacity: 1; transform: translateY(0); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  padding: 10rem 0 4rem;
  text-align: center;
  background: var(--light-bg);
}
.about-hero .section-subtitle { margin: 1rem auto 0; }
.about-content { max-width: 800px; margin: 0 auto; }
.about-content p { margin-bottom: 1.5rem; color: var(--text-light); line-height: 1.9; }
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.about-value {
  text-align: center;
  padding: 2rem;
}
.about-value h3 { margin-bottom: 0.8rem; }
.about-value p { font-size: 0.9rem; color: var(--text-light); }

/* ============================================================
   IMAGE GALLERY (for pages)
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .offers-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .engagements-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-card::after { display: none; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding: 0 1.5rem; }
  .section { padding: 3rem 0; }

  /* --- Navbar mobile --- */
  .nav-links { display: none; }
  .nav-cta.desktop { display: none; }
  .hamburger { display: flex; }
  .navbar { height: 60px; }
  .nav-logo { font-size: 1.2rem; }

  /* --- Hero mobile --- IMPORTANT : marges intérieures généreuses */
  .hero { min-height: 92vh; padding-top: 60px; }
  .hero-content {
    padding: 3rem 0.5rem 2rem;
    max-width: 100%;
  }
  .eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    line-height: 1.4;
  }
  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    word-wrap: break-word;
  }
  .hero h1 em { margin-top: 0.2rem; }
  .hero-text {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 100%;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 0.6rem;
  }
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.2rem;
    font-size: 0.82rem;
    border-radius: var(--radius-pill);
  }
  /* Le 2e bouton outline : plus discret sur mobile */
  .hero-buttons .btn-outline {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    border-width: 1.5px;
  }

  /* --- Boutons globaux mobile --- */
  .btn { font-size: 0.85rem; padding: 0.8rem 1.5rem; }
  .btn-lg { font-size: 0.88rem; padding: 0.85rem 1.5rem; }
  .btn-sm { font-size: 0.78rem; padding: 0.6rem 1.2rem; }

  /* --- Stats bar mobile --- */
  .stats-bar { padding: 1.25rem 0; }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
  }
  .stat-item .stat-number { font-size: 1.6rem; }
  .stat-item .stat-label { font-size: 0.7rem; }

  /* --- Section headers mobile --- */
  .section-label { font-size: 0.65rem; letter-spacing: 0.12em; }
  .section-title { font-size: 1.5rem; }
  .solutions-header, .steps-header, .testimonials-header { margin-bottom: 2rem; }
  .section-subtitle { font-size: 0.9rem; line-height: 1.6; }

  /* --- Offer cards mobile --- */
  .offer-card {
    padding: 1.5rem 1.25rem;
    border-radius: 10px;
  }
  .offer-badge { font-size: 0.62rem; padding: 0.3rem 0.8rem; margin-bottom: 1rem; }
  .offer-card h3, .offer-card h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
  .offer-card .offer-desc { font-size: 0.85rem; margin-bottom: 1.2rem; line-height: 1.6; }
  .offer-features { margin-bottom: 1.2rem; }
  .offer-feature { padding: 0.4rem 0; gap: 0.6rem; }
  .offer-feature .check { width: 18px; height: 18px; font-size: 0.6rem; }
  .offer-feature p { font-size: 0.85rem; }
  .offer-feature .feature-detail { font-size: 0.75rem; }
  .offer-pricing { padding: 1rem; margin-bottom: 1.2rem; }
  .offer-pricing .price-label { font-size: 0.68rem; }
  .offer-pricing .price { font-size: 1rem; }
  .offer-pricing .price-note { font-size: 0.72rem; }
  .offer-card .btn { width: 100%; text-align: center; }

  /* --- Tech section mobile --- */
  .tech-section { padding: 3rem 0; }
  .tech-content h2 { font-size: 1.4rem; }
  .tech-content p { font-size: 0.9rem; }
  .tech-stats { gap: 0.6rem; }
  .tech-stat { padding: 0.9rem; border-radius: 8px; }
  .tech-stat .stat-val { font-size: 1.35rem; }
  .tech-stat .stat-desc { font-size: 0.72rem; }
  .tech-visual { gap: 0.8rem; }
  .tech-visual-card { padding: 1.25rem; border-radius: 10px; }
  .tech-visual-card h4 { font-size: 0.95rem; }
  .tech-visual-card p { font-size: 0.82rem; line-height: 1.5; }

  /* --- Engagements mobile --- */
  .engagements-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .engagement-card {
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
  }
  .engagement-icon { width: 44px; height: 44px; font-size: 1.1rem; margin: 0; flex-shrink: 0; }
  .engagement-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
  .engagement-card p { font-size: 0.82rem; line-height: 1.55; }

  /* --- Steps mobile : layout horizontal compact --- */
  .steps-grid { grid-template-columns: 1fr; gap: 0; }
  .step-card {
    padding: 1rem 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
  }
  .step-card:last-child { border-bottom: none; }
  .step-number {
    margin: 0;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .step-card h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }
  .step-card p { font-size: 0.82rem; line-height: 1.5; }

  /* --- Testimonials mobile --- */
  .testimonials-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .testimonial-card { padding: 1.5rem 1.25rem; }
  .testimonial-stars { font-size: 0.8rem; margin-bottom: 0.75rem; }
  .testimonial-text { font-size: 0.87rem; line-height: 1.65; margin-bottom: 1rem; }
  .testimonial-author { font-size: 0.85rem; }
  .testimonial-location { font-size: 0.75rem; }

  /* --- Gallery mobile --- */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    margin-top: 2rem;
  }
  .gallery-item { border-radius: 6px; }

  /* --- About mobile --- */
  .about-hero { padding: 6.5rem 0 2rem; }
  .about-hero h1 { font-size: 1.6rem; }
  .about-hero .section-subtitle { font-size: 0.88rem; }
  .about-content p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 1rem; }
  .about-values { grid-template-columns: 1fr; gap: 0.5rem; }
  .about-value { padding: 1.2rem 1rem; }
  .about-value h3 { font-size: 1rem; }
  .about-value p { font-size: 0.82rem; }

  /* --- Contact form mobile --- */
  .contact-section { padding: 3rem 0; }
  .contact-info h2 { font-size: 1.35rem; margin-bottom: 0.75rem; }
  .contact-info p { font-size: 0.88rem; line-height: 1.6; }
  .contact-form { padding: 1.5rem 1.25rem; border-radius: 10px; }
  .form-group { margin-bottom: 1rem; }
  .form-group label { font-size: 0.78rem; margin-bottom: 0.4rem; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.85rem 1rem;
    font-size: 16px; /* IMPORTANT: 16px empêche le zoom auto sur iOS */
    border-radius: 8px;
  }
  .form-submit {
    padding: 0.9rem;
    font-size: 0.88rem;
    border-radius: var(--radius-pill);
  }
  .form-note { font-size: 0.7rem; }

  /* --- Footer mobile --- */
  .footer { padding: 1.25rem 0; }
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
  }
  .footer-brand .nav-logo { font-size: 1.1rem; }
  .footer-brand p { font-size: 0.72rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 0.6rem 1rem; }
  .footer-links a { font-size: 0.72rem; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding-top: 0.6rem;
  }
  .footer-copy { font-size: 0.68rem; }
  .footer-partners img { height: 22px; }
  .seo-text { font-size: 0.58rem; margin-top: 0.4rem; }

  /* --- Modal mobile --- */
  .modal {
    padding: 1.5rem 1.25rem;
    width: 92%;
    max-height: 88vh;
    border-radius: 14px;
  }
  .modal h3 { font-size: 1.2rem; padding-right: 2rem; }
  .modal p { font-size: 0.87rem; line-height: 1.6; }
  .modal .btn { width: 100%; }

  /* --- Mobile drawer --- */
  .mobile-drawer {
    width: 280px;
    padding: 5rem 1.5rem 2rem;
    border-radius: 0;
  }
  .mobile-drawer .nav-link {
    font-size: 0.92rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .mobile-drawer .nav-cta {
    padding: 0.85rem;
    font-size: 0.82rem;
    margin-top: 1rem;
    border-radius: var(--radius-pill);
  }
}

/* ============================================================
   RESPONSIVE — SMALL PHONES (max 380px)
   ============================================================ */
@media (max-width: 380px) {
  html { font-size: 14px; }
  .container { padding: 0 1.25rem; }

  .hero-content { padding: 2.5rem 0.25rem 1.5rem; }
  .hero h1 { font-size: 1.55rem; }
  .eyebrow { font-size: 0.55rem; }
  .hero-text { font-size: 0.85rem; }
  .hero-buttons .btn { padding: 0.8rem 1rem; font-size: 0.78rem; }

  .stats-grid { gap: 0.6rem; }
  .stat-item .stat-number { font-size: 1.4rem; }
  .stat-item .stat-label { font-size: 0.65rem; }

  .section-title { font-size: 1.3rem; }

  .offer-card { padding: 1.25rem 1rem; }
  .offer-card h3, .offer-card h2 { font-size: 1.15rem; }
  .offer-card .offer-desc { font-size: 0.82rem; }

  .gallery-grid { grid-template-columns: 1fr; gap: 0.5rem; }

  .tech-stats { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .tech-stat .stat-val { font-size: 1.2rem; }

  .contact-form { padding: 1.25rem 1rem; }

  .about-hero h1 { font-size: 1.4rem; }

  .mobile-drawer { width: 250px; }
}

/* ============================================================
   TOUCH OPTIMIZATIONS
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .nav-link { padding: 0.5rem 0; }
  .btn { min-height: 46px; }
  .form-group input,
  .form-group select { min-height: 46px; }
  .form-submit { min-height: 48px; }
  .modal-close { width: 44px; height: 44px; font-size: 1.8rem; }

  /* Remove hover effects on touch (prevent sticky states) */
  .offer-card:hover { transform: none; box-shadow: none; border-color: var(--border); }
  .engagement-card:hover { transform: none; box-shadow: none; border-color: var(--border); }
  .testimonial-card:hover { transform: none; box-shadow: none; }
  .gallery-item:hover img { transform: none; }
  .btn:hover { transform: none; }
}

/* ============================================================
   ANIMATIONS (scroll reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mentions légales modal */
.legal-content h4 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}
.legal-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}
