/* Atelier Gabriel – accueil sur mesure */
.agh-home {
  --agh-paper: #f5f3ef;
  --agh-ink: #292927;
  --agh-muted: #77736c;
  --agh-sage: #78816b;
  --agh-greige: #a69a87;
  color: var(--agh-ink);
  font-family: inherit;
  display: block !important;
  box-sizing: border-box !important;
  width: 100vw !important;
  max-width: none !important;
  min-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding: 0 !important;
  overflow: hidden;
}
.agh-home * { box-sizing: border-box; }
.agh-home .agh-hero { width: 100%; }
.agh-slider {
  position: relative;
  width: 100%;
  min-height: clamp(440px, 65vw, 760px);
  height: min(72vh, 820px);
  background: #343a2c;
  overflow: hidden;
  isolation: isolate;
}
.agh-slides, .agh-slide { position: absolute; inset: 0; }
.agh-slide { opacity: 0; transition: opacity 1.15s ease; }
.agh-slide.is-active { opacity: 1; z-index: 1; }
.agh-slide img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center;
}
.agh-slider::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(15,18,13,.52) 0%, rgba(15,18,13,.18) 48%, rgba(15,18,13,0) 100%),
              linear-gradient(0deg, rgba(15,18,13,.18), transparent 35%);
}
.agh-hero-copy {
  position: absolute; z-index: 4; left: clamp(28px, 8vw, 140px);
  bottom: clamp(54px, 10vw, 120px); max-width: 650px; color: #fff;
  padding: 0 24px 0 0;
}
.agh-eyebrow {
  font-size: 10px; letter-spacing: .22em; line-height: 1.5;
  font-weight: 600; text-transform: uppercase; margin: 0 0 18px;
}
.agh-hero-copy h1, .agh-hero-empty h1 {
  color: inherit; font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400; letter-spacing: -.035em; line-height: .98;
  font-size: clamp(44px, 6vw, 82px); margin: 0 0 20px;
}
.agh-subtitle { font-size: clamp(15px, 1.45vw, 19px); line-height: 1.65; max-width: 510px; margin: 0 0 30px; }
.agh-button {
  display: inline-flex; align-items: center; gap: 24px; padding: 15px 20px;
  color: var(--agh-ink) !important; background: var(--agh-paper);
  border: 1px solid var(--agh-paper); text-decoration: none !important;
  text-transform: uppercase; letter-spacing: .11em; font-size: 10px; font-weight: 700;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.agh-button:hover { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.8); }
.agh-arrow {
  position: absolute; z-index: 5; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%; color: #fff; background: rgba(20,20,20,.12);
  font-size: 31px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: background .2s ease;
}
.agh-arrow:hover { background: rgba(20,20,20,.55); }
.agh-prev { left: 24px; } .agh-next { right: 24px; }
.agh-dots {
  position: absolute; z-index: 5; bottom: 22px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 9px; align-items: center;
}
.agh-dot {
  width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.55); cursor: pointer; transition: all .2s ease;
}
.agh-dot.is-active { width: 20px; border-radius: 10px; background: #fff; }
.agh-hero-empty {
  min-height: 480px; padding: 100px 8vw; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; color: #fff;
  background: linear-gradient(120deg, #30362b, #78816b);
}
.agh-hero-empty .agh-note { color: rgba(255,255,255,.8); font-size: 13px; margin-top: 22px; }
.agh-section { padding: clamp(72px, 9vw, 130px) max(24px, 7vw); }
.agh-section-heading { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.agh-section-heading .agh-eyebrow, .agh-philosophy .agh-eyebrow { color: var(--agh-sage); }
.agh-section-heading h2, .agh-philosophy h2 {
  font-family: Georgia, 'Times New Roman', serif; font-weight: 400;
  letter-spacing: -.025em; font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08; color: var(--agh-ink); margin: 0 0 18px;
}
.agh-section-heading > p:last-child { color: var(--agh-muted); font-size: 16px; line-height: 1.8; margin: 0; }
.agh-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; }
.agh-category { color: var(--agh-ink) !important; text-decoration: none !important; }
.agh-category-image { overflow: hidden; background: var(--agh-paper); aspect-ratio: 4/5; }
.agh-category-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.agh-category:hover .agh-category-image img { transform: scale(1.045); }
.agh-category-label { display: flex; justify-content: space-between; gap: 12px; padding: 15px 0; font-family: Georgia,serif; font-size: 21px; }
.agh-category-label span:last-child { font-family: sans-serif; font-size: 15px; color: var(--agh-sage); }
.agh-centered { text-align: center; margin-top: 34px; }
.agh-text-link { display: inline-flex; align-items: center; gap: 18px; padding-bottom: 7px; border-bottom: 1px solid var(--agh-greige); color: var(--agh-ink) !important; text-decoration: none !important; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.agh-text-link:hover { color: var(--agh-sage) !important; }
.agh-philosophy {
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(320px,.95fr);
  background: var(--agh-paper); align-items: stretch;
}
.agh-philosophy-image { min-height: 520px; }
.agh-philosophy-image img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; display: block; }
.agh-philosophy-copy { padding: clamp(48px, 7vw, 105px); align-self: center; }
.agh-philosophy-copy > p:not(.agh-eyebrow) { color: var(--agh-muted); font-size: 16px; line-height: 1.9; margin: 0 0 28px; }
.agh-note { color: var(--agh-muted); font-size: 13px; }
@media (max-width: 900px) {
  .agh-category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
  .agh-philosophy { grid-template-columns: 1fr; }
  .agh-philosophy-image, .agh-philosophy-image img { min-height: 340px; max-height: 480px; }
  .agh-philosophy-copy { padding: 56px 7vw; }
}
@media (max-width: 600px) {
  .agh-slider { height: 76svh; min-height: 510px; max-height: 690px; }
  .agh-slide img { object-position: center; }
  .agh-slider::after { background: linear-gradient(0deg, rgba(12,15,11,.68) 0%, rgba(12,15,11,.12) 75%); }
  .agh-hero-copy { left: 22px; right: 18px; bottom: 72px; padding: 0; }
  .agh-hero-copy h1, .agh-hero-empty h1 { font-size: clamp(42px, 12vw, 60px); }
  .agh-subtitle { font-size: 15px; }
  .agh-prev { left: 12px; } .agh-next { right: 12px; }
  .agh-arrow { width: 36px; height: 36px; font-size: 25px; }
  .agh-dots { bottom: 20px; }
  .agh-section { padding: 68px 20px; }
  .agh-section-heading { margin-bottom: 34px; }
  .agh-category-grid { gap: 15px 12px; }
  .agh-category-label { font-size: 18px; padding: 11px 0; }
  .agh-philosophy-image, .agh-philosophy-image img { min-height: 270px; }
  .agh-philosophy-copy { padding: 52px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .agh-slide, .agh-category-image img, .agh-button { transition: none !important; }
}


/* Full-bleed safeguards for Astra / Gutenberg constrained layouts */
.agh-home > .agh-hero,
.agh-home > .agh-section,
.agh-home > .agh-philosophy {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.agh-home .agh-slider {
  width: 100% !important;
  max-width: none !important;
}
.agh-home .agh-philosophy {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}
.agh-home .agh-philosophy-copy {
  padding: clamp(42px, 5vw, 86px);
}
@media (max-width: 900px) {
  .agh-home .agh-philosophy { grid-template-columns: 1fr; }
}


/* Ajustements visuels demandés : surtitre et commandes du carrousel */
.agh-home .agh-hero-copy {
  position: absolute;
}
.agh-home .agh-hero-copy > .agh-eyebrow {
  position: absolute;
  top: clamp(-245px, -25vw, -170px);
  left: 0;
  margin: 0;
  font-size: 12px;
  letter-spacing: .20em;
  line-height: 1.6;
  white-space: nowrap;
}
.agh-home .agh-slider .agh-arrow,
.agh-home .agh-slider .agh-arrow:hover,
.agh-home .agh-slider .agh-arrow:focus,
.agh-home .agh-slider .agh-arrow:active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 0 4px 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.62) !important;
  background: rgba(28,30,24,.16) !important;
  box-shadow: none !important;
  outline-offset: 3px;
  text-shadow: none !important;
  transition: background .22s ease, border-color .22s ease !important;
}
.agh-home .agh-slider .agh-arrow:hover {
  background: rgba(28,30,24,.48) !important;
  border-color: rgba(255,255,255,.9) !important;
}
.agh-home .agh-slider .agh-arrow:focus-visible {
  outline: 2px solid rgba(255,255,255,.9) !important;
}
@media (max-width: 600px) {
  .agh-home .agh-hero-copy > .agh-eyebrow {
    top: -118px;
    font-size: 10px;
    letter-spacing: .16em;
    white-space: normal;
  }
}


/* Section créations : surtitre plus lisible et galerie réellement centrée */
.agh-home .agh-section-heading .agh-eyebrow {
  font-size: 13px !important;
  letter-spacing: .22em;
  margin-bottom: 18px;
}
.agh-home .agh-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 380px));
  justify-content: center;
  justify-items: stretch;
  gap: 22px;
  width: 100%;
  max-width: 1480px;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 900px) {
  .agh-home .agh-category-grid {
    grid-template-columns: repeat(2, minmax(0, 380px));
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .agh-home .agh-category-grid {
    grid-template-columns: minmax(0, 440px);
    justify-content: center;
    gap: 18px;
  }
  .agh-home .agh-section-heading .agh-eyebrow {
    font-size: 11px !important;
  }
}


/* Galerie : vignettes circulaires et appel boutique plus visible */
.agh-home .agh-category {
  text-align: center;
}
.agh-home .agh-category-image {
  width: min(100%, 300px);
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  overflow: hidden;
  margin: 0 auto;
}
.agh-home .agh-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% !important;
}
.agh-home .agh-category-label {
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  padding: 17px 0;
}
.agh-home .agh-category-label span:last-child {
  font-size: 14px;
}
.agh-home .agh-centered {
  margin-top: 42px;
}
.agh-home .agh-centered .agh-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 17px 27px;
  border: 1px solid var(--agh-ink);
  background: var(--agh-ink);
  color: #fff !important;
  font-size: 13px;
  letter-spacing: .13em;
  line-height: 1.3;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.agh-home .agh-centered .agh-text-link:hover {
  background: transparent;
  color: var(--agh-ink) !important;
  border-color: var(--agh-ink);
}
@media (max-width: 600px) {
  .agh-home .agh-category-image {
    width: min(82vw, 300px);
  }
  .agh-home .agh-category-label {
    font-size: 20px;
  }
  .agh-home .agh-centered .agh-text-link {
    width: 100%;
    max-width: 340px;
    font-size: 12px;
    padding: 16px 18px;
  }
}


/* Galerie signature : des médaillons plus généreux */
.agh-home .agh-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 420px));
  max-width: 1600px;
  gap: clamp(24px, 3vw, 48px);
}
.agh-home .agh-category-image {
  width: min(100%, 400px);
}
.agh-home .agh-category-label {
  font-size: 24px;
  padding-top: 20px;
}
@media (max-width: 900px) {
  .agh-home .agh-category-grid {
    grid-template-columns: repeat(2, minmax(0, 400px));
    gap: 28px;
  }
  .agh-home .agh-category-image {
    width: min(100%, 370px);
  }
}
@media (max-width: 600px) {
  .agh-home .agh-category-grid {
    grid-template-columns: minmax(0, 420px);
    gap: 26px;
  }
  .agh-home .agh-category-image {
    width: min(88vw, 360px);
  }
  .agh-home .agh-category-label {
    font-size: 22px;
  }
}


/* Surtitre du carrousel : nettement plus grand et plus affirmé */
.agh-home .agh-hero-copy > .agh-eyebrow {
  font-size: clamp(17px, 1.35vw, 21px) !important;
  font-weight: 700 !important;
  letter-spacing: .19em !important;
  line-height: 1.5 !important;
}
@media (max-width: 600px) {
  .agh-home .agh-hero-copy > .agh-eyebrow {
    font-size: 13px !important;
    letter-spacing: .14em !important;
    line-height: 1.55 !important;
  }
}

/* V1.0.9 — contour circulaire centré, identique au portrait de Qui suis-je */
.agh-home .agh-category-image {
  overflow: visible !important;
  border-radius: 50% !important;
  background: transparent !important;
}
.agh-home .agh-category-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  box-shadow: 0 0 0 1px #b69a70 !important;
  padding: 5px !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

/* V1.0.11 — flèches latérales en bas du carrousel sur mobile */
@media (max-width: 600px) {
  .agh-home .agh-slider .agh-arrow {
    top: auto !important;
    bottom: 14px !important;
    transform: none !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 25px !important;
    z-index: 7 !important;
  }

  .agh-home .agh-slider .agh-prev {
    left: 16px !important;
    right: auto !important;
  }

  .agh-home .agh-slider .agh-next {
    right: 16px !important;
    left: auto !important;
  }
}


/* V1.0.12 — bandeau éditorial « Les attentions de l’atelier »
   Composition miroir de la philosophie : texte à gauche, photo à droite. */
.agh-home .agh-packaging {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  width: 100%;
  max-width: none;
  background: var(--agh-paper);
  align-items: stretch;
}
.agh-home .agh-packaging-copy {
  padding: clamp(42px, 5vw, 86px);
  align-self: center;
}
.agh-home .agh-packaging-copy .agh-eyebrow { color: var(--agh-sage); }
.agh-home .agh-packaging-copy h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -.025em;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  color: var(--agh-ink);
  margin: 0 0 24px;
}
.agh-home .agh-packaging-copy > p:not(.agh-eyebrow) {
  color: var(--agh-muted);
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 28px;
}
.agh-home .agh-packaging-image { min-height: 520px; }
.agh-home .agh-packaging-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}
@media (max-width: 900px) {
  .agh-home .agh-packaging { grid-template-columns: 1fr; }
  .agh-home .agh-packaging-copy { padding: 56px 7vw; }
  .agh-home .agh-packaging-image,
  .agh-home .agh-packaging-image img { min-height: 340px; max-height: 480px; }
}
@media (max-width: 600px) {
  .agh-home .agh-packaging-copy { padding: 52px 24px; }
  .agh-home .agh-packaging-image,
  .agh-home .agh-packaging-image img { min-height: 270px; }
}


/* V1.0.13 — respiration entre les deux bandeaux et hauteur éditoriale harmonisée
   Le second bandeau reprend la hauteur visuelle du bandeau Philosophie sur desktop. */
@media (min-width: 901px) {
  .agh-home .agh-packaging {
    margin-top: 48px !important;
    height: clamp(520px, 37.3vw, 710px) !important;
    min-height: 520px !important;
    grid-template-rows: minmax(0, 1fr) !important;
  }
  .agh-home .agh-packaging-image,
  .agh-home .agh-packaging-image img {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .agh-home .agh-packaging-image img {
    object-fit: cover !important;
  }
}
@media (max-width: 900px) {
  .agh-home .agh-packaging {
    margin-top: 32px !important;
    height: auto !important;
  }
}


/* V1.0.14 — espacement structurel et hauteur identique aux deux bandeaux éditoriaux.
   L'espace est porté par le bandeau précédent pour éviter les effets de marge
   ou de fusion entre sections. */
@media (min-width: 901px) {
  .agh-home > section.agh-philosophy {
    margin-bottom: 48px !important;
  }
  .agh-home > section.agh-packaging {
    margin-top: 0 !important;
    height: 710px !important;
    min-height: 710px !important;
    max-height: 710px !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr) !important;
    align-items: stretch !important;
  }
  .agh-home > section.agh-packaging .agh-packaging-image,
  .agh-home > section.agh-packaging .agh-packaging-image img {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .agh-home > section.agh-packaging .agh-packaging-image img {
    width: 100% !important;
    object-fit: cover !important;
  }
}
@media (max-width: 900px) {
  .agh-home > section.agh-philosophy {
    margin-bottom: 28px !important;
  }
  .agh-home > section.agh-packaging {
    margin-top: 0 !important;
    height: auto !important;
    max-height: none !important;
  }
}

/* V1.0.15 — liaison éditoriale discrète entre les deux bandeaux magazine.
   L'espace est resserré et souligné par un filet bronze très fin. */
@media (min-width: 901px) {
  .agh-home > section.agh-philosophy {
    margin-bottom: 30px !important;
  }
  .agh-home > section.agh-packaging {
    margin-top: 0 !important;
    position: relative !important;
  }
  .agh-home > section.agh-packaging::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 1px;
    background: #B69A70;
    opacity: .85;
  }
}
@media (max-width: 900px) {
  .agh-home > section.agh-philosophy {
    margin-bottom: 24px !important;
  }
  .agh-home > section.agh-packaging::before {
    display: none !important;
  }
}


/* V1.0.16 — même respiration entre le bouton boutique et le premier bandeau,
   puis entre les deux bandeaux. Le filet bronze reste centré sur la page. */
@media (min-width: 901px) {
  .agh-home > section.agh-philosophy {
    margin-bottom: 130px !important;
  }
  .agh-home > section.agh-packaging {
    margin-top: 0 !important;
  }
  .agh-home > section.agh-packaging::before {
    top: -65px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
}
@media (max-width: 900px) {
  .agh-home > section.agh-philosophy {
    margin-bottom: 24px !important;
  }
}
