/* ==========================================================================
   EL ARABI N'CO — Feuille de style principale
   ========================================================================== */

:root {
  --terracotta-700: #a34d28;
  --terracotta-600: #bf5b30;
  --terracotta-500: #d97a4d;
  --terracotta-300: #ecb494;
  --terracotta-100: #f6e3d6;
  --terracotta-50: #fbf1e9;
  --charcoal: #211d1a;
  --charcoal-soft: #3a3430;
  --gray-600: #6f6660;
  --gray-400: #a89e97;
  --cream: #faf6f1;
  --white: #ffffff;
  --line: #e9ddd2;
  --shadow: 0 20px 40px -24px rgba(33, 29, 26, 0.25);
  --radius: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", "Georgia", serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--gray-600); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-600);
  font-weight: 600;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--terracotta-500);
  transform: rotate(45deg);
  display: inline-block;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--terracotta-600);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--terracotta-700);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 241, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}

.site-header .container {
  max-width: 100%;
  padding-left: 32px;
  padding-right: 32px;
}

.nav-links {
  justify-self: center;
}

.nav-cta {
  justify-self: end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 88px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.7rem;
  color: var(--gray-600);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 1.03rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--terracotta-600);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--terracotta-600);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--charcoal);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 100px;
}

.hero-image {
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
}

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

.hero-image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(24, 18, 14, 0.35) 0%, rgba(24, 18, 14, 0.18) 45%, rgba(24, 18, 14, 0.05) 75%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 190px 0 60px;
}

.hero-image .hero-content {
  margin-left: 0;
  margin-right: 0;
  max-width: 1040px;
  padding-left: calc(clamp(40px, 8vw, 140px) + 2cm);
  padding-right: 24px;
}

.hero-image .hero-content .hero-lead {
  margin-top: calc(20px + 1cm);
  margin-left: calc(clamp(20px, 4vw, 60px) + 0.75cm);
  font-weight: 300;
  max-width: 54ch;
}

.hero-image .hero-content .hero-actions {
  margin-left: calc(clamp(20px, 4vw, 60px) + 0.75cm);
}

.hero-image .hero-content h1 {
  margin-bottom: 30px;
}

/* Apparition douce du contenu du hero */
.hero-fade {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeIn 0.8s ease forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fade {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Repère de défilement en bas du hero */
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 40px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(24, 18, 14, 0.4);
  cursor: pointer;
  padding: 0;
  opacity: 1;
}

@keyframes heroScrollCueIn {
  to { opacity: 1; }
}

.hero-scroll-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
  animation: heroScrollChevron 1.6s ease-in-out infinite;
}

.hero-scroll-chevron:first-child {
  animation-delay: 0s;
}

.hero-scroll-chevron:last-child {
  margin-top: -6px;
  animation-delay: 0.25s;
}

.hero-scroll-cue:hover {
  background: rgba(24, 18, 14, 0.45);
}

@keyframes heroScrollChevron {
  0% { opacity: 0.3; transform: rotate(45deg) translate(0, 0); }
  50% { opacity: 1; transform: rotate(45deg) translate(4px, 4px); }
  100% { opacity: 0.3; transform: rotate(45deg) translate(0, 0); }
}

@media (max-width: 720px) {
  .hero-scroll-cue {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue {
    animation: none;
    opacity: 1;
  }
  .hero-scroll-chevron {
    animation: none;
  }
}

.eyebrow-light {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.hero-content h1 {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 6px 24px rgba(0, 0, 0, 0.75);
}


.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 22px;
  letter-spacing: 0.01em;
  font-size: clamp(1.6rem, 2.5vw, 2.35rem);
}

.hero-line {
  display: inline-block;
}

@media (min-width: 721px) {
  .hero-line {
    white-space: nowrap;
  }
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-lead.hero-lead-light {
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  color: var(--terracotta-600);
}

.hero-stats div span {
  font-size: 0.82rem;
  color: var(--gray-600);
}

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diamond-field {
  position: relative;
  width: 100%;
  height: 100%;
}

.diamond {
  position: absolute;
  transform: rotate(45deg);
  border-radius: 6px;
}

/* ---------- Sections generiques ---------- */
section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  font-size: 1.05rem;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark {
  background: var(--charcoal);
  color: var(--white);
}

.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.7); }

/* ---------- Grille services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--terracotta-300);
}

.service-card::before {
  content: "";
  position: absolute;
  top: -22px;
  right: -22px;
  width: 60px;
  height: 60px;
  background: var(--terracotta-100);
  transform: rotate(45deg);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--terracotta-100);
  color: var(--terracotta-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.3rem;
  position: relative;
  z-index: 1;
}

.service-card h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.service-card p {
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Bloc texte + image ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-reverse .split-media { order: 2; }

.split-media {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  background: var(--terracotta-50);
  border: 1px solid var(--line);
}

.split ul.check-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.97rem;
  color: var(--charcoal-soft);
}

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-top: 6px;
  background: var(--terracotta-500);
  transform: rotate(45deg);
}

/* ---------- Valeurs / cartes simples ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.value-card {
  padding: 8px 4px;
  text-align: center;
}

.value-card .num {
  font-family: "Fraunces", serif;
  font-size: 2.2rem;
  color: var(--terracotta-300);
  margin-bottom: 10px;
  display: block;
}

/* ---------- Timeline / process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-top: 46px;
  text-align: center;
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  color: var(--terracotta-500);
  display: block;
  margin-bottom: 12px;
}

.process-step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--terracotta-300);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--terracotta-600);
  color: var(--white);
  border-radius: 28px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; max-width: 46ch; }

/* ---------- Quote / mise en avant ---------- */
.quote-block {
  border-left: 3px solid var(--terracotta-500);
  padding: 6px 0 6px 26px;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--charcoal-soft);
  margin: 32px 0;
}

/* ---------- Badge secteur (transport) ---------- */
.logo-display {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.logo-display img {
  width: 55%;
  height: auto;
  object-fit: contain;
}

.memoire-cover {
  background: var(--charcoal);
  padding: 0;
  position: relative;
}

.memoire-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.memoire-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--terracotta-600);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow);
}

.memoire-title {
  margin: 6px 0 4px;
}

.memoire-meta {
  font-family: "Work Sans", sans-serif;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--terracotta-100);
  color: var(--terracotta-700);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img { height: 38px; }

.footer-brand strong {
  font-family: "Fraunces", serif;
  color: var(--white);
  font-size: 1.05rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer-col li {
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.footer-col a:hover { color: var(--terracotta-300); }

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 10px;
  margin-top: 18px;
}

.footer-badge img { height: 44px; width: auto; }

.footer-badge span {
  font-size: 0.72rem;
  color: var(--charcoal);
  font-weight: 600;
  line-height: 1.25;
  max-width: 150px;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
  text-align: center;
}

/* ---------- Formulaire contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 18px;
}

.contact-info-card h4 {
  font-family: "Fraunces", serif;
  margin-bottom: 6px;
  font-size: 1rem;
}

.contact-info-card p { margin: 0; font-size: 0.95rem; }

.contact-info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-info-row:last-child { margin-bottom: 0; }

.contact-info-row .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--terracotta-100);
  color: var(--terracotta-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--charcoal-soft);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--charcoal);
}

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

.form-note {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-top: 14px;
}

.form-success {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #eaf5ec;
  color: #2f6b3a;
  font-size: 0.92rem;
}

.form-error {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fbeae7;
  color: #a3402f;
  font-size: 0.92rem;
}

/* ---------- Page hero (pages secondaires) ---------- */
.page-hero {
  padding: 64px 0 70px;
  position: relative;
  overflow: hidden;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero-tag {
  color: var(--terracotta-600);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 18px;
}

.breadcrumb a { color: var(--terracotta-600); }

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .contact-wrap {
    grid-template-columns: 1fr;
  }
  .split-reverse .split-media { order: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta .btn-primary { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .hero { padding: 50px 0 60px; }
  .hero-image { padding: 0; min-height: 100vh; }
  .hero-content { padding: 130px 0 50px; }
  section { padding: 60px 0; }
}
