/* Carrefour Contact Fresne-Saint-Mamès — feuille de style unique */

:root {
  --bleu:        #0050aa;
  --bleu-fonce:  #003a7d;
  --bleu-nuit:   #04213f;
  --rouge:       #e2231a;
  --ambre:       #f5a623;
  --vert:        #1f8f52;

  --fond:        #ffffff;
  --fond-doux:   #f4f7fb;
  --fond-carte:  #ffffff;
  --bordure:     #dde5ef;
  --texte:       #16212e;
  --texte-doux:  #56657a;

  --rayon:       14px;
  --ombre:       0 1px 2px rgba(4, 33, 63, .06), 0 8px 24px rgba(4, 33, 63, .07);
  --ombre-forte: 0 2px 6px rgba(4, 33, 63, .10), 0 18px 40px rgba(4, 33, 63, .13);
  --largeur:     1120px;
  --police:      "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--bleu); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }

p { margin: 0 0 1em; }

.conteneur { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }

/* ---------- En-tête ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bordure);
}

.entete__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

.marque { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }

.marque__logo {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-fonce) 55%, var(--rouge) 190%);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: -.04em;
  box-shadow: 0 4px 12px rgba(0, 80, 170, .35);
}

.marque__nom { font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; line-height: 1.15; }
.marque__lieu { font-size: .8rem; color: var(--texte-doux); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--texte-doux); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--bleu); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.35rem;
  border-radius: 999px;
  font-weight: 700; font-size: .96rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--plein { background: var(--bleu); color: #fff; box-shadow: 0 6px 18px rgba(0, 80, 170, .3); }
.btn--plein:hover { background: var(--bleu-fonce); }
.btn--clair { background: #fff; color: var(--bleu-nuit); border-color: var(--bordure); box-shadow: var(--ombre); }
.btn--fantome { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--fantome:hover { background: rgba(255, 255, 255, .2); }

/* ---------- Héros ---------- */

.heros {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1200px 520px at 12% -10%, rgba(226, 35, 26, .5), transparent 60%),
    linear-gradient(150deg, var(--bleu) 0%, var(--bleu-fonce) 45%, var(--bleu-nuit) 100%);
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4.5rem, 9vw, 7rem);
  overflow: hidden;
}

.heros::after {
  content: "";
  position: absolute; inset: auto -10% -55% 55%;
  height: 480px;
  background: radial-gradient(closest-side, rgba(245, 166, 35, .32), transparent);
  pointer-events: none;
}

.heros__inner { position: relative; z-index: 1; max-width: 760px; }

.pastille {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .38rem .9rem .38rem .55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: .84rem; font-weight: 700; letter-spacing: .02em;
  margin-bottom: 1.4rem;
}
.pastille__point { width: 9px; height: 9px; border-radius: 50%; background: var(--ambre); box-shadow: 0 0 0 4px rgba(245, 166, 35, .25); }
.pastille--ouvert .pastille__point { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); }
.pastille--ferme .pastille__point { background: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, .25); }

.heros h1 { color: #fff; margin-bottom: .6rem; }
.heros__accroche { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: rgba(255, 255, 255, .88); max-width: 58ch; }
.heros__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.heros__reperes {
  display: flex; flex-wrap: wrap; gap: 2.4rem;
  margin-top: 3rem; padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.repere__val { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.repere__lib { font-size: .84rem; color: rgba(255, 255, 255, .72); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--douce { background: var(--fond-doux); border-block: 1px solid var(--bordure); }

.section__chapeau { max-width: 62ch; margin-bottom: 2.6rem; }
.surtitre {
  display: block;
  font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rouge); margin-bottom: .6rem;
}
.section__chapeau p { color: var(--texte-doux); margin-bottom: 0; }

/* ---------- Grille de cartes ---------- */

.grille { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }

.carte {
  background: var(--fond-carte);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 1.5rem;
  box-shadow: var(--ombre);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.carte:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); border-color: #c9d7e8; }
.carte p { color: var(--texte-doux); font-size: .95rem; margin-bottom: 0; }

.carte__icone {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.35rem;
  background: var(--fond-doux);
  border: 1px solid var(--bordure);
  margin-bottom: 1rem;
}

/* ---------- Horaires ---------- */

.horaires-bloc {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.horaires {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  overflow: hidden;
}
.horaires__ligne {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .85rem 1.35rem;
  border-bottom: 1px solid var(--bordure);
  font-size: .98rem;
}
.horaires__ligne:last-child { border-bottom: 0; }
.horaires__ligne--auj { background: linear-gradient(90deg, rgba(0, 80, 170, .07), transparent); font-weight: 700; }
.horaires__jour { text-transform: capitalize; }
.horaires__auj-tag {
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--bleu); background: rgba(0, 80, 170, .1);
  padding: .12rem .5rem; border-radius: 999px; margin-left: .5rem;
}
.horaires__heures { font-variant-numeric: tabular-nums; color: var(--texte-doux); }
.horaires__ligne--auj .horaires__heures { color: var(--texte); }

.note {
  background: #fff;
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--ambre);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: .93rem;
  color: var(--texte-doux);
}
.note strong { color: var(--texte); }

/* ---------- Contact ---------- */

.contact-bloc { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }

.contact-carte {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 1.6rem;
  box-shadow: var(--ombre);
}
.contact-carte h3 { margin-bottom: .35rem; }
.contact-carte a { font-weight: 700; text-decoration: none; word-break: break-word; }
.contact-carte a:hover { text-decoration: underline; }
.contact-carte__note { font-size: .88rem; color: var(--texte-doux); margin: .4rem 0 0; }

.plan {
  margin-top: 1.6rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  background: var(--fond-doux);
}
.plan iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Pied de page ---------- */

.pied {
  background: var(--bleu-nuit);
  color: rgba(255, 255, 255, .72);
  padding: 3rem 0 2rem;
  font-size: .92rem;
}
.pied__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem 2.5rem; }
.pied h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .9rem; }
.pied a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pied__bas {
  margin-top: 2.5rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .85rem; color: rgba(255, 255, 255, .55);
}

/* ---------- Page mentions légales ---------- */

.page-titre { padding: clamp(2.5rem, 6vw, 4rem) 0 1rem; background: var(--fond-doux); border-bottom: 1px solid var(--bordure); }
.page-titre p { color: var(--texte-doux); margin-bottom: 0; }

.prose { max-width: 72ch; padding: 3rem 0 4rem; }
.prose h2 { margin-top: 2.6rem; font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }
.prose dl { display: grid; grid-template-columns: minmax(160px, auto) 1fr; gap: .5rem 1.5rem; margin: 0 0 1.5rem; }
.prose dt { font-weight: 700; color: var(--texte-doux); }
.prose dd { margin: 0; }
.fil { display: inline-block; margin-bottom: 1rem; font-size: .9rem; font-weight: 600; text-decoration: none; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .horaires-bloc { grid-template-columns: 1fr; }
  .nav { display: none; }
  .prose dl { grid-template-columns: 1fr; gap: .1rem 0; }
  .prose dd { margin-bottom: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto; }
}
