/* MJC Intercommunale Colleville-Montgomery – Hermanville-sur-Mer — site provisoire */
:root {
  --blue: #215994;
  --blue-dark: #163e69;
  --magenta: #c42a68;
  --yellow: #f2b632;
  --turquoise: #7ff0e8;
  --mint: #e8fbfa;
  --fb: #1877f2;
  --text: #1d2733;
  --muted: #5a6675;
  --line: #d9e3ea;
  --bg: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(22, 62, 105, .10);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--magenta); }
h1, h2, h3 { line-height: 1.25; color: var(--blue-dark); }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: .4em 0 .6em; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 1.6em 0 .6em; }
h3 { font-size: 1.1rem; margin: 0 0 .5em; }
.wrap { width: min(1140px, 100% - 2rem); margin-inline: auto; }
.page { padding-bottom: 3rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.small { font-size: .88rem; color: var(--muted); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.1rem; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; line-height: 1.2; }
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn-lg { padding: .85rem 1.4rem; font-size: 1.05rem; }
.btn-light { background: #fff; color: var(--blue-dark); box-shadow: inset 0 0 0 2px var(--blue); }
.btn-light:hover { background: var(--mint); color: var(--blue-dark); }
.btn-fb { background: var(--fb); }
.btn-fb:hover { background: #0d5bc6; }
.btns { display: flex; flex-wrap: wrap; gap: .7rem; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* En-tête */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: .8rem; padding: .5rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--blue-dark); margin-right: auto; min-width: 0; }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.1rem; }
.brand-text span { font-size: .82rem; color: var(--muted); }
.btn-header { padding: .5rem .9rem; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.burger, .burger::before, .burger::after { display: block; width: 24px; height: 2.5px; background: var(--blue-dark); border-radius: 2px; position: absolute; left: 10px; transition: transform .2s; }
.burger { top: 21px; }
.burger::before { content: ""; top: -7px; left: 0; }
.burger::after { content: ""; top: 7px; left: 0; }
.menu-toggle[aria-expanded="true"] .burger { background: transparent; }
.menu-toggle[aria-expanded="true"] .burger::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger::after { transform: translateY(-7px) rotate(-45deg); }
.main-nav { background: var(--blue); }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0; padding: 0; margin-block: 0; }
.main-nav a { display: block; color: #fff; text-decoration: none; padding: .7rem .9rem; font-weight: 600; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--blue-dark); box-shadow: inset 0 -3px 0 var(--yellow); }
.notice { background: #fff6dc; border-bottom: 1px solid #f1dfa4; font-size: .92rem; }
.notice p { margin: 0; padding: .5rem 0; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; width: 100%; }
  .main-nav a { padding: .85rem 1rem; border-top: 1px solid rgba(255, 255, 255, .15); }
  .brand-text span { display: none; }
  .brand img { height: 44px; }
}
@media (max-width: 420px) {
  .btn-header span { display: none; }
  .btn-header { padding: .55rem; }
  .brand-text strong { font-size: 1rem; }
}

/* Fil d'Ariane */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 1rem 0 0; font-size: .88rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: .3rem; }

/* Accueil */
.hero { background: linear-gradient(135deg, var(--turquoise) 0%, #c9f7f3 45%, #fff 100%); padding: 2.5rem 0 3rem; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; }
.hero h1 { margin-top: .2em; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--magenta); margin: 0; font-size: .9rem; }
.tagline { font-weight: 700; color: var(--blue); font-size: 1.1rem; }
.mosaic { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.mosaic img, .gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.mosaic li:nth-child(1) { transform: rotate(-1.5deg); }
.mosaic li:nth-child(4) { transform: rotate(1.5deg); }
.section-title { text-align: center; margin-top: 2.5em; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { padding: 1.5rem 0 2rem; }
}

.fb-band { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center; background: #eef4ff; border: 1px solid #cfdcf5; border-radius: var(--radius); padding: 1.2rem 1.5rem; margin: 2rem 0; }
.fb-band > div:first-child .ico { width: 3rem; height: 3rem; color: var(--fb); }
.fb-band h2 { margin: 0 0 .3rem; font-size: 1.3rem; }
.fb-band p { margin: 0; }
@media (max-width: 700px) { .fb-band { grid-template-columns: 1fr; text-align: center; } .fb-band > div:first-child .ico { margin: auto; } .fb-band .btn { justify-content: center; } }

.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 960px) { .info-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .info-strip { grid-template-columns: 1fr; } }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow); }
.box h2 { margin-top: 0; font-size: 1.25rem; }
.plaquette img { border-radius: 8px; margin-bottom: .5rem; }
.values { max-width: 820px; margin-inline: auto; text-align: center; }
.locate-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1.5rem; align-items: start; }
@media (max-width: 800px) { .locate-grid { grid-template-columns: 1fr; } }

/* Coordonnées / horaires */
.coord { font-style: normal; margin-bottom: .6rem; }
.coord-list { list-style: none; padding: 0; margin: 0; }
.coord-list li { display: flex; align-items: center; gap: .5rem; margin: .35rem 0; word-break: break-word; }
.coord-list .ico { color: var(--blue); }
table { border-collapse: collapse; }
.horaires { width: 100%; }
.horaires caption { text-align: left; font-weight: 700; color: var(--blue-dark); font-size: 1.2rem; margin-bottom: .4rem; }
.horaires th, .horaires td { text-align: left; padding: .35rem .5rem .35rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.horaires th { font-weight: 600; width: 6.5rem; }

/* Cartes */
.cards { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card a:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(22, 62, 105, .18); }
.card-img img, .card-ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-ph { display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--blue), var(--magenta)); }
.card-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .25rem; }
.card-title { font-weight: 700; color: var(--blue-dark); font-size: 1.08rem; }
.card-text { color: var(--muted); font-size: .93rem; }

/* Pages activité */
.intro, .lead { font-size: 1.08rem; }
.act-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem; align-items: start; }
.act-img { margin: 0; }
.act-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.act-text .lead { margin-top: 0; }
@media (max-width: 760px) { .act-head { grid-template-columns: 1fr; gap: 1rem; } .act-img img { max-height: 320px; object-fit: cover; } }
.infos { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 1rem 0; padding: 1rem 1.2rem; background: var(--mint); border-radius: var(--radius); }
.infos dt { font-weight: 700; color: var(--blue-dark); }
.infos dd { margin: 0; }
.infos ul { margin: 0; padding-left: 1.1rem; }
@media (max-width: 480px) { .infos { grid-template-columns: 1fr; } .infos dd { margin-bottom: .5rem; } }
.notes { padding-left: 1.2rem; }
.notes li { margin: .2rem 0; }
.stale { font-size: .88rem; color: #6b5310; background: #fff6dc; border-left: 4px solid var(--yellow); padding: .6rem .9rem; border-radius: 6px; }
.gallery { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.cta { margin: 2rem 0; padding: 1.3rem 1.5rem; border-radius: var(--radius); background: linear-gradient(135deg, #f0f6fc, var(--mint)); border: 1px solid var(--line); }
.cta h2 { margin-top: 0; }
.siblings ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.siblings a { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: #fff; }
.siblings a:hover { border-color: var(--blue); }

/* Tableaux de tarifs */
.table-scroll { overflow-x: auto; margin: 1rem 0 1.5rem; }
.tarifs { min-width: 640px; width: 100%; background: #fff; }
.tarifs caption { text-align: left; font-weight: 700; font-size: 1.1rem; color: var(--blue-dark); margin-bottom: .4rem; }
.tarifs th, .tarifs td { border: 1px solid var(--line); padding: .55rem .7rem; vertical-align: top; text-align: left; }
.tarifs thead th { background: var(--blue); color: #fff; font-size: .9rem; }
.tarifs tbody th { background: var(--mint); }
.qf { list-style: none; margin: 0; padding: 0; }
.qf b { display: inline-block; width: 1.3rem; color: var(--magenta); }
.simple th, .simple td { text-align: left; padding: .5rem 1rem .5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Divers */
.team { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .8rem; }
.team li { background: var(--mint); border-radius: var(--radius); padding: .8rem 1rem; display: flex; flex-direction: column; }
.team span { color: var(--muted); font-size: .93rem; }
.cols { columns: 2 280px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.5rem; }
@media (max-width: 700px) { .two-cols { grid-template-columns: 1fr; } }
.two-cols ol { padding-left: 1.3rem; margin: 0; }
.doc-list li { margin: .4rem 0; }
.map { margin: 1rem 0; }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--mint); }
.map figcaption { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.sitemap ul { padding-left: 1.3rem; }
.sitemap li { margin: .2rem 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid h2:first-child { margin-top: 0; }
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow); }
.contact-form label { display: block; font-weight: 600; margin-bottom: .25rem; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid #b8c6d2; border-radius: 8px; background: #fff; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); outline: 2px solid rgba(33, 89, 148, .25); }
.contact-form .check { display: flex; gap: .6rem; align-items: flex-start; }
.contact-form .check input { width: auto; margin-top: .35rem; }
.contact-form .check label { font-weight: 400; }
.hp { position: absolute; left: -9999px; }
.form-status { font-weight: 600; color: var(--blue-dark); }

/* Pied de page */
.site-footer { background: var(--blue-dark); color: #e6eef6; margin-top: 2rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin: 0 0 .7rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 2.5rem 0 1.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .25rem 0; }
.site-footer .small { color: #b9c8d8; }
.foot-hours span { display: inline-block; width: 5.5rem; font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, .15); padding: 1rem 0 1.5rem; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 1.2rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .notice, .site-footer, .cta, .fb-band, .map { display: none; } }
