/* ============================================================
   COIFFURE LE MARGO — STYLES
   Palette beige #F5F1EB / bordeaux #660040 / noir
   Typos : League Gothic (titres, via Google Fonts) + TT Commons Pro (texte, local)
   ============================================================ */

/* ---------- FONTS ---------- */
/* TT Commons Pro : remplacer par la version licenciée quand disponible */

/* ---------- VARIABLES ---------- */
:root {
  --beige: #F5F1EB;
  --beige-2: #EFE9E0;
  --bordeaux: #660040;
  --bordeaux-hover: #4d002e;
  --noir: #000000;
  --blanc: #FFFFFF;
  --gris-fonce: #333333;
  --gris-moyen: #6b6b6b;

  --font-titre: 'League Gothic', 'Oswald', 'Impact', sans-serif;
  --font-texte: 'Urbanist', system-ui, -apple-system, sans-serif;

  --section-y: 120px;
  --container-max: 1280px;
  --container-pad: 32px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--beige);
  color: var(--noir);
  font-family: var(--font-texte);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 0;
  overflow-x: hidden;
}
img, picture, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
address { font-style: normal; }

/* ---------- TYPOGRAPHIE ---------- */
h1, h2, h3 {
  font-family: var(--font-titre);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--noir);
}

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

section { padding: var(--section-y) 0; }

.eyebrow {
  font-family: var(--font-titre);
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 24px;
}

.filet {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--bordeaux);
  margin: 28px 0;
}
.filet--center { margin-left: auto; margin-right: auto; }

.section-head {
  text-align: center;
  margin-bottom: 80px;
}
.section-head h2 { font-size: clamp(56px, 7vw, 120px); }
.section-head__sub {
  max-width: 540px;
  margin: 0 auto;
  color: var(--gris-moyen);
  font-size: 17px;
}

/* ---------- BOUTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-titre);
  font-size: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--bordeaux); color: var(--blanc); border-color: var(--bordeaux); }
.btn--primary:hover { background: var(--bordeaux-hover); border-color: var(--bordeaux-hover); }
.btn--secondary { background: var(--noir); color: var(--blanc); border-color: var(--noir); }
.btn--outline { border-color: var(--bordeaux); color: var(--bordeaux); }
.btn--outline:hover { background: var(--bordeaux); color: var(--blanc); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
  z-index: 100;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  gap: 32px;
}
.nav__logo img { height: 120px; width: auto; filter: brightness(0) invert(1); }
.nav__links {
  display: flex;
  gap: 36px;
  font-family: var(--font-titre);
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: auto;
  margin-right: 32px;
  color: var(--blanc);
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  color: var(--blanc);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--blanc);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
.nav__links a:hover { color: rgba(255,255,255,0.8); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  padding: 12px 24px;
  font-size: 18px;
  border-color: var(--blanc);
  color: var(--blanc);
  background: transparent;
}
.nav__cta:hover {
  background: var(--blanc);
  color: var(--noir);
}
.nav__toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 0;
  min-height: 100vh;
}
.hero__inner {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
}
.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-end;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad) 72px;
  color: var(--blanc);
}
.hero__left {}
.hero .eyebrow { color: rgba(255,255,255,0.7); }
.hero__title {
  font-size: clamp(64px, 9vw, 140px);
  line-height: 0.9;
  margin-bottom: 0;
  color: var(--blanc);
}
.hero__title span { display: block; }
.hero__right {
  padding-bottom: 8px;
  margin-left: auto;
  max-width: 380px;
}
.hero__subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 420px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
}
.hero__ctas .btn {
  font-size: 14px;
  padding: 12px 20px;
}
.hero .btn--primary {
  background: var(--blanc);
  color: var(--noir);
  border-color: var(--blanc);
}
.hero .btn--primary:hover {
  background: var(--beige);
  border-color: var(--beige);
}
.hero .btn--outline {
  border-color: var(--blanc);
  color: var(--blanc);
}
.hero .btn--outline:hover {
  background: var(--blanc);
  color: var(--noir);
}
.hero__scroll { display: none; }
.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 28px;
  background: var(--bordeaux);
  margin: 10px auto 0;
  animation: scrollBob 2s ease-in-out infinite;
}
@keyframes scrollBob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.5; }
}

/* ============================================================
   À PROPOS
   ============================================================ */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__image img {
  width: 100%;
  height: 640px;
  object-fit: cover;
  transform: translateY(-16px);
}
.about__text {
  padding-left: 32px;
  border-left: 1px solid var(--bordeaux);
}
.about__title {
  font-size: clamp(48px, 6vw, 96px);
  margin-bottom: 0;
}
.about__text p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--gris-fonce);
}
.about__text .eyebrow {
  color: var(--bordeaux);
}
.about__text p:last-child { margin-bottom: 0; }
.accent-word {
  color: inherit;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--bordeaux);
}
.services .eyebrow { color: rgba(255, 255, 255, 0.6); }
.services .section-head h2 { color: var(--blanc); }
.services .filet { background: rgba(255, 255, 255, 0.4); }
.services .section-head__sub { color: rgba(255, 255, 255, 0.7); margin-bottom: 32px; }

.services__brands-text {
  margin-top: 8px !important;
}
.services__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.services__logos img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 0.3s;
}
.services__logos img:hover { opacity: 1; }
.services__logos img[alt="American Crew"] {
  filter: none;
  mix-blend-mode: screen;
  opacity: 0.8;
}
.services__logos img[alt="American Crew"]:hover { opacity: 1; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}
.service-card {
  position: relative;
  padding: 44px 36px 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.3s ease, transform 0.3s ease;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}
.service-card__num {
  position: absolute;
  top: 14px; right: 20px;
  font-family: var(--font-titre);
  font-size: 44px;
  color: var(--blanc);
  opacity: 0.2;
  letter-spacing: 0.02em;
  line-height: 1;
}
.service-card h3 {
  font-size: 30px;
  margin-bottom: 14px;
  padding-right: 56px;
  line-height: 0.95;
  color: var(--blanc);
}
.service-card p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}
.services__cta { text-align: center; }
.services .btn--primary {
  background: var(--blanc);
  color: var(--bordeaux);
  border-color: var(--blanc);
}
.services .btn--primary:hover {
  background: var(--beige);
  border-color: var(--beige);
}

/* ============================================================
   GALERIE
   ============================================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.gallery__item {
  overflow: hidden;
  position: relative;
  aspect-ratio: 1/1;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}
.gallery__item:hover img { transform: scale(1.06); opacity: 0.9; }

/* ============================================================
   ÉQUIPE
   ============================================================ */
.team__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.team__title {
  font-size: clamp(48px, 6vw, 96px);
}
.team__desc {
  max-width: 680px;
  margin: 0 auto 48px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--gris-fonce);
}
.team__photo { margin-top: 0; }
.team__photo img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.team__photo figcaption {
  margin-top: 20px;
  font-size: 15px;
  font-style: italic;
  color: var(--gris-moyen);
}

/* ============================================================
   PRODUITS
   ============================================================ */
.products__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.products__logos img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s;
}
.products__logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ============================================================
   TÉMOIGNAGES
   ============================================================ */
.reviews {
  background: var(--bordeaux);
}
.reviews .eyebrow { color: rgba(255, 255, 255, 0.6); }
.reviews .section-head h2 { color: var(--blanc); }
.reviews .filet { background: rgba(255, 255, 255, 0.4); }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.review-card {
  grid-column: span 2;
  position: relative;
  padding: 72px 40px 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  background: transparent;
}
.review-card:nth-child(4) { grid-column: 2 / span 2; }
.review-card:nth-child(5) { grid-column: 4 / span 2; }

.review-card__quote {
  position: absolute;
  top: 16px; left: 24px;
  font-family: var(--font-titre);
  font-size: 80px;
  color: var(--blanc);
  opacity: 0.25;
  line-height: 1;
  pointer-events: none;
}
.review-card__text {
  font-size: 15.5px;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
  color: rgba(255, 255, 255, 0.8);
}
.review-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.review-card__name {
  font-family: var(--font-titre);
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--blanc);
}
.review-card__stars {
  color: var(--beige);
  letter-spacing: 3px;
  font-size: 15px;
}
.reviews__link {
  display: block;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid currentColor;
  width: max-content;
  margin: 0 auto;
  padding-bottom: 3px;
  letter-spacing: 0.04em;
}
.reviews__link:hover { color: var(--blanc); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.contact__block { margin-bottom: 40px; }
.contact__block:last-child { margin-bottom: 0; }
.contact__label {
  font-family: var(--font-titre);
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 12px;
}
.contact__info address { font-size: 17px; line-height: 1.75; }
.contact__phone {
  font-family: var(--font-titre);
  font-size: 36px;
  letter-spacing: 0.04em;
  display: inline-block;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.contact__phone:hover {
  color: var(--bordeaux);
  border-color: var(--bordeaux);
}

.hours {
  width: 100%;
  max-width: 360px;
  border-collapse: collapse;
}
.hours th, .hours td {
  padding: 10px 0;
  font-weight: 400;
  font-size: 15.5px;
  border-bottom: 1px solid rgba(102, 0, 64, 0.1);
}
.hours th { text-align: left; }
.hours td { text-align: right; color: var(--gris-moyen); }
.hours tr.is-today th,
.hours tr.is-today td {
  color: var(--bordeaux);
  font-family: var(--font-titre);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.social {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--bordeaux);
  color: var(--bordeaux);
  transition: background 0.25s, color 0.25s;
}
.social:hover { background: var(--bordeaux); color: var(--blanc); }

.contact__map {
  min-height: 500px;
}
.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 1px solid rgba(102, 0, 64, 0.2);
}
.contact__cta { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bordeaux);
  color: var(--blanc);
  overflow: hidden;
}

.footer__top {
  padding-top: 64px;
  padding-bottom: 48px;
}
.footer__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer__nav {
  display: flex;
  gap: 32px;
  font-family: var(--font-titre);
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer__nav a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer__nav a:hover { color: var(--blanc); }

.footer__contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  justify-content: center;
}
.footer__contact-row address { font-style: normal; }
.footer__contact-row a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer__contact-row a:hover { color: var(--blanc); }
.footer__contact-row svg { vertical-align: middle; }

.footer__brand {
  text-align: center;
  padding: 0 var(--container-pad);
  line-height: 1;
}
.footer__brand-text {
  font-family: var(--font-titre);
  font-size: clamp(80px, 14vw, 220px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  display: block;
  line-height: 0.85;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  gap: 20px;
}
.footer__bottom-inner a {
  color: rgba(255,255,255,0.35);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__bottom-inner a:hover { color: var(--blanc); }

/* ============================================================
   BANDEAU COOKIES
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 20px; left: 20px; right: 20px;
  background: var(--beige);
  border: 1px solid var(--bordeaux);
  padding: 18px 24px;
  z-index: 200;
  box-shadow: 0 10px 40px rgba(0,0,0,0.14);
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0;
}
.cookie-banner__inner p { font-size: 14px; margin: 0; max-width: 680px; color: var(--gris-fonce); }
.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.cookie-banner__link {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--bordeaux);
}
.cookie-banner .btn { padding: 10px 22px; font-size: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-y: 90px; }
  .nav__logo img { height: 90px; }

  /* Nav mobile */
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px; height: 20px;
    background: none;
    margin-left: auto;
  }
  .nav__toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--blanc);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }
  .nav--open .nav__toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav--open .nav__toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 32px var(--container-pad);
    gap: 22px;
    margin: 0;
    font-size: 22px;
  }
  .nav--open .nav__links a { color: var(--blanc); }
  .nav--open .nav__cta {
    display: inline-flex;
    margin: 8px var(--container-pad) 32px;
    width: calc(100% - (var(--container-pad) * 2));
    color: var(--blanc);
    border-color: var(--blanc);
  }

  /* À propos */
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__image img { height: 420px; transform: none; }
  .about__text { padding-left: 20px; }

  /* Services */
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Contact */
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__phone { font-size: 30px; }

  /* Reviews */
  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .review-card,
  .review-card:nth-child(4),
  .review-card:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  :root { --container-pad: 20px; --section-y: 72px; }

  /* Hero */
  .hero__inner { min-height: 100vh; }
  .hero__content { grid-template-columns: 1fr; gap: 24px; padding-bottom: 48px; }
  .hero__ctas .btn { width: 100%; }

  /* Galerie */
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
  }

  /* Footer */
  .footer__nav { flex-wrap: wrap; justify-content: center; gap: 20px; font-size: 16px; }
  .footer__contact-row { flex-direction: column; gap: 10px; }
  .footer__bottom-inner { flex-direction: column; gap: 10px; text-align: center; }

  /* Cookies */
  .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner__actions { width: 100%; justify-content: space-between; }
}

@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .service-card { padding: 36px 28px 28px; min-height: 0; }
  .reviews__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; }
  .hours { max-width: 100%; }
  .contact__phone { font-size: 26px; }
}

/* ============================================================
   PAGES LÉGALES (confidentialite.html, cookies.html)
   ============================================================ */
.legal {
  max-width: 760px;
  padding-top: 80px;
  padding-bottom: 120px;
}
.legal h1 {
  font-size: clamp(48px, 6vw, 88px);
  margin-bottom: 0;
}
.legal h2 {
  font-family: var(--font-titre);
  font-size: 26px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 48px 0 14px;
  color: var(--noir);
}
.legal p {
  margin-bottom: 14px;
  line-height: 1.75;
  color: var(--gris-fonce);
}
.legal__meta { color: var(--gris-moyen); margin-bottom: 32px; }
.legal a {
  color: var(--bordeaux);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal a:hover { color: var(--noir); }
.legal code {
  background: rgba(102, 0, 64, 0.08);
  padding: 2px 6px;
  font-size: 0.9em;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
.legal__back {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(102, 0, 64, 0.2);
}

/* ---------- FOCUS (a11y) ---------- */
a:focus-visible, button:focus-visible, .service-card:focus-visible {
  outline: 2px solid var(--bordeaux);
  outline-offset: 3px;
}

/* ---------- PRINT ---------- */
@media print {
  .nav, .cookie-banner, .hero__scroll { display: none; }
  body { padding-top: 0; }
}
