/* Page « Nos agences » et bloc « Nos agences » (accueil, contact, pages bilan)
   Même langage que la page d'accueil : fond blanc, cartes blanches à ombre douce,
   liseré jaune au survol, pastilles jaunes, encadrés à bord jaune, boutons noirs. */

.ag { font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #202020; }
.ag *, .ag *::before, .ag *::after { box-sizing: border-box; }
.ag p { margin: 0; }
.ag-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ag-section { padding: 80px 0; background: #fff; }
.ag-section--gris { background: #f3f4f6; }
.ag-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.ag-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; line-height: 1.15; margin: 0 0 16px; color: #202020; }
.ag-head p { font-size: 1.15rem; line-height: 1.6; color: #4d4d4d; }

.ag-tag {
  display: inline-flex; align-items: center; gap: 8px; background: #f3f4f6; color: #374151; padding: 8px 16px;
  border-radius: 20px; font-size: .9rem; font-weight: 500; border: 1px solid #e5e7eb; margin-bottom: 20px;
}
.ag-tag::before { content: ""; width: 12px; height: 12px; background: #202020; border-radius: 50%; }
.ag-section--gris .ag-tag { background: #fff; }

.ag-highlight { background: #ffee32; padding: 0 8px; border-radius: 4px; box-shadow: 0 0 0 2px #ffee32; display: inline-block; }

/* Boutons */
.ag-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #202020; color: #fff !important;
  border: 2px solid #202020; padding: 14px 26px; border-radius: 8px; font: 600 1rem/1.2 "Space Grotesk", sans-serif;
  text-decoration: none !important; cursor: pointer; transition: all .3s ease;
}
.ag-btn:hover { background: #fff; color: #202020 !important; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(32, 32, 32, .2); }
.ag-btn--clair { background: #fff; color: #202020 !important; }
.ag-btn--clair:hover { background: #202020; color: #fff !important; }
.ag-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Héros (même esprit que l'accueil) */
.ag-hero {
  padding: 72px 0 80px; text-align: center; position: relative;
  background-image: linear-gradient(rgba(255, 255, 255, .92), rgba(255, 255, 255, .92)), url("../images/hero.webp");
  background-size: cover; background-position: center;
}
.ag-hero::before, .ag-hero::after { content: ""; position: absolute; top: 40px; width: 40px; height: 40px; border-top: 2px solid #e9ecef; }
.ag-hero::before { left: 40px; border-left: 2px solid #e9ecef; }
.ag-hero::after { right: 40px; border-right: 2px solid #e9ecef; }
.ag-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.15; margin: 0 auto 20px; max-width: 900px; color: #202020; }
.ag-hero p { font-size: 1.15rem; line-height: 1.55; color: #6b7280; max-width: 640px; margin: 0 auto 32px; }
.ag-hero .ag-btns { justify-content: center; }
.ag-avis { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 28px; font-size: .95rem; }
.ag-avis a { color: #202020; text-decoration: none; border-bottom: 2px solid #ffee32; padding-bottom: 2px; }
.ag-avis a:hover { border-color: #202020; }

/* Cartes */
.ag-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
.ag-card {
  background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  border: 1px solid #e9ecef; position: relative; transition: all .3s ease; text-align: left;
}
.ag-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0, 0, 0, .12); border-color: #ffee32; }
.ag-card__num {
  position: absolute; top: 20px; right: 20px; height: 40px; min-width: 40px; padding: 0 14px; border-radius: 40px;
  background: linear-gradient(135deg, #ffee32, #ffd100); color: #202020; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
}
.ag-card h2, .ag-card h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin: 0 110px 6px 0; color: #202020; }
.ag-card__adresse { font-size: 1.05rem; color: #4d4d4d; line-height: 1.5; margin-bottom: 20px !important; }
.ag-card__texte { font-size: 1rem; color: #4d4d4d; line-height: 1.6; }
.ag-card__texte a { color: #202020; font-weight: 600; }
.ag-encadre { background: linear-gradient(135deg, #f8f9fa, #f3f4f6); padding: 16px 20px; border-radius: 12px; border-left: 4px solid #ffee32; font-weight: 600; font-size: .95rem; line-height: 1.45; margin: 20px 0; }

.ag-carte { position: relative; height: 240px; border-radius: 12px; overflow: hidden; background: #f3f4f6; margin-bottom: 20px; }
.ag-carte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ag-infos { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.ag-infos li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; line-height: 1.45; color: #4d4d4d; }
.ag-infos svg { flex: none; margin-top: 2px; color: #202020; }
.ag-infos strong { color: #202020; }

/* Photos */
.ag-photos { display: grid; gap: 20px; grid-template-columns: 1fr; }
.ag-photos figure { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 4px 20px rgba(0, 0, 0, .08); }
.ag-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Équipe */
.ag-equipe { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.ag-membre { width: 220px; text-align: center; }
.ag-membre img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; display: block; margin-bottom: 12px; }
.ag-membre strong { display: block; font-size: 1.1rem; }
.ag-membre span { font-size: .95rem; color: #6b7280; }

/* Preuves */
.ag-preuve { text-decoration: none !important; color: inherit !important; display: block; }
.ag-preuve__valeur { font-size: 2.4rem; font-weight: 700; line-height: 1; margin-bottom: 10px; }
.ag-preuve__valeur small { font-size: .5em; color: #6b7280; }
.ag-preuve__lien { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .95rem; border-bottom: 2px solid #ffee32; }
.ag-engagements { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ag-engagements li { display: flex; gap: 12px; font-size: 1rem; line-height: 1.5; color: #4d4d4d; }
.ag-engagements li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #ffee32, #ffd100);
  color: #202020; font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center;
}

/* Appel final (même carte que « Envie de donner un nouvel élan… » de l'accueil) */
.ag-final { padding: 60px 20px; background: #f3f4f6; text-align: center; }
.ag-final__carte { max-width: 800px; margin: 0 auto; background: #fff; padding: 50px 32px; border-radius: 15px; box-shadow: 0 4px 20px rgba(0, 0, 0, .1); }
.ag-final h2 { font-size: 1.8rem; font-weight: 700; line-height: 1.3; margin: 0 0 15px; }
.ag-final p { font-size: 1.05rem; color: #6b7280; line-height: 1.7; max-width: 600px; margin: 0 auto 30px; }
.ag-final p a { color: #202020; font-weight: 700; }
.ag-final .ag-btns { justify-content: center; }

/* Bandeau Isère (bas des pages bilan) */
.ag-isere { padding: 40px 20px; background: #fff; position: relative; z-index: 2; }
.ag-isere__carte {
  max-width: 1000px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(135deg, #f8f9fa, #f3f4f6); border-left: 4px solid #ffee32; border-radius: 12px; padding: 24px 28px;
}
.ag-isere__carte p { font-size: 1.2rem; font-weight: 700; line-height: 1.35; }

@media (min-width: 768px) {
  .ag-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .ag-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .ag-photos { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .ag-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .ag-section { padding: 56px 0; }
  .ag-hero { padding: 48px 0 56px; }
  .ag-hero::before, .ag-hero::after { display: none; }
  .ag-card { padding: 24px; }
  .ag-card h2, .ag-card h3 { margin-right: 0; margin-top: 44px; }
  .ag-btns .ag-btn { width: 100%; }
}

/* Logos de confiance (sous le héros et dans les preuves) */
.ag-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; }
.ag-logo {
  display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 190px; padding: 16px 22px;
  background: #fff; border: 1px solid #e9ecef; border-radius: 16px; box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
  text-decoration: none !important; color: #202020 !important; transition: all .3s ease;
}
.ag-logo:hover { transform: translateY(-4px); border-color: #ffee32; box-shadow: 0 12px 30px rgba(0, 0, 0, .1); }
.ag-logo img { height: 44px; width: auto; display: block; }
.ag-logo span { font-size: .92rem; color: #4d4d4d; }
.ag-logo strong { color: #202020; }
.ag-preuve__logo { height: 52px; width: auto; max-width: 100%; display: block; margin-bottom: 18px; object-fit: contain; }
@media (max-width: 767px) { .ag-logo { min-width: 0; flex: 1 1 140px; padding: 14px; } .ag-logo img { height: 36px; } }

/* Photos par agence */
.ag-photos__titre { font-size: 1.25rem; font-weight: 700; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.ag-photos__titre::before { content: ""; width: 4px; height: 22px; border-radius: 2px; background: #ffee32; }
.ag-photos + .ag-photos__titre { margin-top: 40px; }
@media (min-width: 768px) { .ag-photos--3 { grid-template-columns: repeat(3, 1fr); } }
.ag-membre__initiale {
  display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; border-radius: 16px; margin-bottom: 12px;
  background: linear-gradient(135deg, #ffee32, #ffd100); font-size: 3rem; font-weight: 700; color: #202020;
}
@media (max-width: 767px) { .ag-equipe { gap: 20px; } .ag-membre { width: calc(50% - 10px); } }
