/* ══════════════════════════════════════════════
   POLYLANGUES — AGENCES.CSS
   ══════════════════════════════════════════════ */

/* ── HERO ── */
.hero-agences {
  padding: clamp(120px, 14vw, 180px) 0 clamp(60px, 8vw, 100px);
  background: var(--off);
  position: relative;
  overflow: hidden;
}
.hero-agences::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(200,16,46,.04) 0%, transparent 55%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-title {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -.04em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 32px;
}
.hero-title em { font-style: normal; color: var(--rouge); }

.hero-desc {
  font-size: 1.1rem;
  color: var(--gris);
  line-height: 1.6;
  max-width: 480px;
  margin: 0;
}

.hero-img-wrap {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(26,26,46,.12);
  aspect-ratio: 4/3;
  transform: translateX(10%);
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img-wrap { transform: none; aspect-ratio: 16/9; }
}
@media (max-width: 575px) {
  .hero-title { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .hero-desc { font-size: 1rem; }
}

/* ── L'ADN DES AGENCES ── */
.standards-minimal { background: #fff; }

.std-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 80px;
  gap: 40px;
}
.std-top-row h2 {
  font-family: var(--fd);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  margin: 0;
}
.std-top-row p {
  max-width: 400px;
  color: var(--gris);
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.std-grid-min {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.std-item-min {
  border-top: 2px solid rgba(26,26,46,.12);
  padding-top: 32px;
  transition: border-color .4s;
}
.std-item-min:hover { border-color: var(--rouge); }

.std-num {
  font-family: var(--fd);
  font-size: 1rem;
  font-weight: 700;
  color: var(--rouge);
  display: block;
  margin-bottom: 24px;
}

.std-item-min h3 {
  font-family: var(--fd);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -.02em;
  color: var(--ink);
}

.std-item-min p {
  font-size: .95rem;
  color: var(--gris);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 991px) {
  .std-top-row { flex-direction: column; align-items: flex-start; margin-bottom: 50px; }
  .std-grid-min { grid-template-columns: 1fr; gap: 32px; }
}

/* ── GALERIE IMMERSION ── */
.experience-section { background: var(--off); padding: 100px 0; }

.exp-header { margin-bottom: 60px; }
.exp-header h2 {
  font-family: var(--fd);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  max-width: 600px;
  color: var(--ink);
  margin: 0;
}

.exp-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.exp-img {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.exp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
  display: block;
}
.exp-img:hover img { transform: scale(1.05); }

.exp-img-1 { grid-column: span 7; aspect-ratio: 16/9; }
.exp-img-2 { grid-column: span 5; aspect-ratio: 4/3; }
.exp-img-3 { grid-column: span 4; aspect-ratio: 1/1; }
.exp-img-4 { grid-column: span 8; aspect-ratio: 21/9; }

.exp-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

@media (max-width: 991px) {
  .experience-section { padding: 60px 0; }
  .exp-gallery { display: flex; flex-direction: column; gap: 16px; }
  .exp-img { aspect-ratio: 16/9 !important; border-radius: 16px; }
}

/* ── SHOWCASE AGENCES ── */
.showcase-section { background: var(--off); padding: 100px 0; }

.showcase-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 60px;
}
.showcase-header h2 {
  font-family: var(--fd);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 30px;
}

.search-wrapper {
  width: 100%;
  max-width: 550px;
  position: relative;
}
.search-wrapper svg {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--gris);
}
.search-input-big {
  width: 100%;
  padding: 18px 24px 18px 60px;
  border-radius: 100px;
  border: 1px solid rgba(26,26,46,.08);
  font-family: var(--fb);
  font-size: 1rem;
  outline: none;
  transition: all .3s;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
  color: var(--ink);
}
.search-input-big:focus {
  border-color: var(--rouge);
  box-shadow: 0 8px 24px rgba(200,16,46,.1);
}
.search-input-big::placeholder { color: var(--gris); }

.agencies-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.bento-card {
  display: flex;
  background: #fff;
  padding: 12px;
  border-radius: 28px;
  border: 1px solid rgba(26,26,46,.08);
  gap: 20px;
  cursor: pointer;
  transition: all .4s cubic-bezier(.16,1,.3,1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,26,46,.03);
}
.bento-card:hover {
  border-color: rgba(200,16,46,.3);
  box-shadow: 0 20px 40px rgba(200,16,46,.07);
  transform: translateY(-6px);
}

.bc-image {
  flex: 0 0 200px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.bc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
  display: block;
}
.bento-card:hover .bc-image img { transform: scale(1.08); }

.bc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.bc-badge.open { color: #166534; }
.bc-badge.open::before { content:''; width:6px; height:6px; border-radius:50%; background:#22C55E; box-shadow: 0 0 0 2px rgba(34,197,94,.2); }
.bc-badge.closed { color: var(--rouge); }
.bc-badge.closed::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--rouge); }

.bc-content {
  flex: 1;
  padding: 12px 12px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-width: 0;
}

.bg-letter {
  position: absolute;
  right: -8px;
  bottom: -16px;
  font-family: var(--fd);
  font-size: 9rem;
  font-weight: 800;
  color: rgba(26,26,46,.025);
  line-height: .8;
  pointer-events: none;
  transition: color .4s, transform .4s;
  z-index: 0;
}
.bento-card:hover .bg-letter { color: rgba(200,16,46,.04); transform: scale(1.05) rotate(-2deg); }

.bc-title {
  font-family: var(--fd);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -.02em;
  position: relative;
  z-index: 1;
}

.bc-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.bc-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.bc-row svg {
  color: var(--gris);
  flex-shrink: 0;
  margin-top: 2px;
  transition: color .3s;
}
.bento-card:hover .bc-row svg { color: var(--rouge); }
.bc-row span,
.bc-row a {
  font-size: .88rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color .2s;
}
.bc-row a:hover { color: var(--rouge); }

.bc-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.bc-footer span {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  transition: color .3s;
}
.bento-card:hover .bc-footer span { color: var(--rouge); }

.bc-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--off);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 1px solid rgba(26,26,46,.08);
  transition: all .3s;
  flex-shrink: 0;
}
.bento-card:hover .bc-arrow {
  background: var(--rouge);
  border-color: var(--rouge);
  color: #fff;
}

@media (max-width: 1199px) {
  .agencies-bento { grid-template-columns: 1fr; }
  .bc-image { flex: 0 0 240px; }
}
@media (max-width: 767px) {
  .showcase-section { padding: 60px 0; }
  .bento-card { flex-direction: column; padding: 14px; gap: 0; }
  .bc-image { width: 100%; flex: none; height: 200px; border-radius: 14px; margin-bottom: 16px; }
  .bc-content { padding: 0 4px 4px; }
  .bc-title { font-size: 1.4rem; margin-bottom: 12px; }
  .bg-letter { font-size: 6rem; }
}
@media (max-width: 575px) {
  .agencies-bento { gap: 16px; }
  .bc-image { height: 180px; }
}

/* ── CTA PIONNIER ── */
.cta-pionnier-agences {
  background: var(--ink);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-pionnier-agences::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200,16,46,.12) 0%, transparent 55%);
  pointer-events: none;
}
.cta-pionnier-agences .container { position: relative; z-index: 1; }

.cta-pionnier-agences h2 {
  font-family: var(--fd);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 16px;
}

.cta-pionnier-agences p {
  font-size: .95rem;
  color: rgba(255,255,255,.65);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.btn-cta-pionnier {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rouge);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(200,16,46,.35);
  transition: transform .3s, box-shadow .3s;
}
.btn-cta-pionnier:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(200,16,46,.5);
  color: #fff;
}

/* ── MODAL CONTACT ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26,26,46,.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  padding: 20px;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #fff;
  width: 90%;
  max-width: 540px;
  border-radius: 24px;
  padding: clamp(28px, 5vw, 44px);
  position: relative;
  transform: translateY(20px);
  transition: transform .4s cubic-bezier(.25,1,.5,1);
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.active .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--off);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--rouge); color: #fff; }

.modal-title {
  font-family: var(--fd);
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--rouge);
}
.modal-title em { font-style: normal; }

.modal-desc {
  color: var(--gris);
  font-size: .92rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.form-label-modal {
  font-size: .83rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  display: block;
}

.form-control-modal {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(26,26,46,.12);
  background: var(--off);
  font-family: var(--fb);
  font-size: .92rem;
  color: var(--ink);
  margin-bottom: 16px;
  outline: none;
  transition: border-color .2s;
  appearance: auto;
}
.form-control-modal:focus {
  border-color: var(--rouge);
  background: #fff;
}

.btn-submit-modal {
  width: 100%;
  background: var(--rouge);
  color: #fff;
  font-family: var(--fb);
  font-size: 1rem;
  font-weight: 600;
  padding: 15px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  margin-top: 8px;
}
.btn-submit-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,16,46,.35);
}

@media (max-width: 575px) {
  .modal-box { padding: 24px 20px; }
  .modal-title { font-size: 1.4rem; }
}
