:root {
  --blue: #26607d;
  --blue-dark: #1c4a61;
  --accent: #1d6fa5;
  --accent-soft: #e8f1f8;
  --ink: #2b3440;
  --muted: #5a6672;
  --line: #d8e2ea;
  --bg: #f5f5f5;
  --card: #ffffff;
  --radius: 8px;
  --container: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 { line-height: 1.25; margin: 1.6em 0 0.6em; font-weight: 700; color: var(--ink); }
h1 { font-size: 2.2rem; margin-top: 0; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p, ul, ol, blockquote, figure, table { margin: 0 0 1em; }
figure { margin-left: 0; margin-right: 0; }
.lead { font-size: 1.15rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); font-weight: 700; font-size: 1.05rem; padding: 10px 0; }
.brand__mark { display: inline-flex; color: var(--blue); }

.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.nav__item { position: relative; }
.nav a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 500; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav__sub { display: none; list-style: none; margin: 0; position: absolute; left: 0; top: 100%; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; flex-direction: column; }
.nav__item.has-children:hover > .nav__sub, .nav__item.has-children:focus-within > .nav__sub { display: flex; }
.nav__sub a { padding: 8px 12px; font-weight: 400; }

@media (max-width: 820px) {
  .site-header { position: static; }
  .site-header__bar { flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .nav > ul { justify-content: center; }
  /* Flatten the menu: top items and their children become one wrapped row. */
  .nav__item.has-children, .nav__sub { display: contents; }
  .nav__sub a { font-size: .9rem; color: var(--muted); }
}

/* Hero */
.hero { position: relative; min-height: 62vh; display: flex; align-items: center; background: var(--blue) center/cover no-repeat; color: #fff; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,50,70,.55), rgba(20,50,70,.35)); }
.hero__content { position: relative; padding-top: 70px; padding-bottom: 70px; text-align: center; }
.hero__title { font-size: 3rem; color: #fff; margin: 0 0 .3em; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero__sub { font-size: 1.15rem; opacity: .95; margin-bottom: 1.6em; }
@media (max-width: 600px) { .hero__title { font-size: 2.1rem; } .hero { min-height: 50vh; } }

/* Buttons */
.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer; font-size: 1rem; font-family: inherit; transition: background .15s, transform .15s; }
.button:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.button--big { font-size: 1.1rem; padding: 14px 34px; }

/* Sections */
.section { padding: 56px 0; }
.section--alt { background: #f5fafd; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; }
.split--reverse { grid-template-columns: 6fr 6fr; }
.split__text h2 { margin-top: 0; }
.image-pair { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }
.image-pair img:first-child { width: 55%; }
.image-pair img:last-child { width: 38%; }
.shadow { box-shadow: 0 12px 32px rgba(0,0,0,.18); border-radius: 6px; }
@media (max-width: 760px) { .split, .split--reverse { grid-template-columns: 1fr; } }

.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.12); transform: translateY(-2px); color: inherit; }
.card strong { font-size: 1.05em; color: var(--accent); }
.card span:last-child { font-size: .9em; color: var(--muted); line-height: 1.45; }
.card__tag { align-self: flex-start; font-size: .72em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 9px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); }

/* Inner pages */
.page-header { background: var(--blue) url("/media/2021/03/cropped-cropped-chaloupes.jpg") center/cover no-repeat; color: #fff; position: relative; }
.page-header::before { content: ""; position: absolute; inset: 0; background: rgba(38,96,125,.78); }
.page-header .container { position: relative; padding-top: 48px; padding-bottom: 48px; }
.page-header h1 { color: #fff; margin: 0; }
.page-header__sub { margin: .4em 0 0; opacity: .9; }

.page-content { background: var(--card); margin-top: -24px; margin-bottom: 48px; position: relative; border-radius: var(--radius); box-shadow: 0 2px 12px rgba(0,0,0,.06); padding: 36px 40px; max-width: 960px; }
.page-content--wide { max-width: var(--container); }
.page-content > :first-child { margin-top: 0; }
@media (max-width: 600px) { .page-content { padding: 24px 18px; margin-top: 0; border-radius: 0; } }

.notice { background: #fdf3dc; border: 1px solid #f0d58a; color: #6b4e05; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 24px; font-size: .95em; }

/* WordPress block classes still present in the exported content */
.has-vivid-cyan-blue-color { color: var(--accent) !important; }
.has-vivid-red-color { color: #c0392b; }
.has-large-font-size { font-size: 1.6rem; }
.has-medium-font-size { font-size: 1.15rem; }
.wp-block-spacer { display: block; }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); }
.wp-block-quote { margin: 0 0 1.2em; padding: 14px 20px; border-left: 4px solid var(--accent); background: #f7fafc; border-radius: 0 var(--radius) var(--radius) 0; }
.wp-block-quote p { margin: 0 0 .6em; }
.wp-block-quote p:last-child { margin-bottom: 0; }
.wp-block-columns { display: flex; gap: 32px; flex-wrap: wrap; }
.wp-block-column { flex: 1 1 280px; min-width: 0; }
.wp-block-image img { border-radius: 6px; }
.wp-block-image.is-resized img { width: 50px; }
.wp-block-table table { border-collapse: collapse; width: auto; }
.wp-block-table td { padding: 6px 18px; border-bottom: 1px solid rgba(0,0,0,.08); }
.wp-block-table td:first-child { padding-left: 12px; padding-right: 48px; }
.wp-block-table tr:nth-child(odd) td { background: #f8f8f8; }
.wp-element-caption { font-size: .85em; color: var(--muted); margin-top: 8px; }
.wp-block-list li { margin-bottom: .4em; }

/* Forms */
.form { margin-top: 24px; }
.form__trap { position: absolute; left: -9999px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form__field--full { grid-column: 1 / -1; }
.form__field label, .form__checks legend { font-weight: 500; font-size: .95em; }
.form__field small { color: var(--muted); font-size: .82em; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form input[type="date"], .form textarea, .form select {
  font: inherit; padding: 10px 12px; border: 1px solid #c9d6e2; border-radius: 6px; background: #fff; width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29,111,165,.15); }
.form__checks { border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; margin: 0; }
.form__checks label, .form__consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form__checks input, .form__consent input { margin-top: 4px; }
.form__consent { background: #f7fafc; border-radius: 6px; padding: 12px 14px; }
.form__actions { margin-top: 24px; }
.req { color: #c0392b; }
@media (max-width: 600px) { .form__grid { grid-template-columns: 1fr; } }

/* Section headings on data-driven pages */
.section-title { color: var(--accent); font-size: 1.6rem; }

/* Members page */
.mb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 6px 0 10px; }
.mb-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; }
.mb-role { align-self: flex-start; font-size: .72em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 9px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); }
.mb-card strong { font-size: 1.1em; color: var(--ink); }
.mb-desc { font-size: .88em; color: #555; line-height: 1.45; }
.mb-dir { background: #f7fafc; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 26px; }
.mb-dir h3 { margin: 0 0 10px; font-size: .8em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mb-chip { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 4px 14px; font-size: .9em; }
.mb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 6px 0 14px; }
.mb-count { background: var(--accent-soft); color: var(--accent); font-weight: 700; border-radius: 20px; padding: 4px 14px; font-size: .9em; }
#mb-search { flex: 1 1 220px; max-width: 320px; padding: 8px 14px; border: 1px solid #c9d6e2; border-radius: var(--radius); font-size: .95em; font-family: inherit; }
#mb-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(29,111,165,.15); }
.mb-noresult { display: none; color: #777; font-style: italic; margin: 8px 0; }

/* Projects page */
.pj-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 6px 0 26px; }
.pj-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-left: 4px solid #9aa7b2; border-radius: var(--radius); padding: 16px 18px; }
.pj-card.done { border-left-color: #1e8a4c; }
.pj-card.encours { border-left-color: #e0a10f; }
.pj-card.abandon { border-left-color: #c0392b; }
.pj-card.continu { border-left-color: var(--accent); }
.pj-status { align-self: flex-start; font-size: .72em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 9px; border-radius: 20px; background: #eef1f4; color: var(--muted); }
.pj-card.done .pj-status { background: #e6f4ec; color: #1e8a4c; }
.pj-card.encours .pj-status { background: #fdf3dc; color: #a3720a; }
.pj-card.abandon .pj-status { background: #fbeaea; color: #b03a3a; }
.pj-card.continu .pj-status { background: var(--accent-soft); color: var(--accent); }
.pj-card strong { font-size: 1.05em; color: var(--accent); }
.pj-resp { font-size: .85em; color: #333; }
.pj-resp b { font-weight: 600; }
.pj-desc { font-size: .88em; color: #555; line-height: 1.45; }
.pj-src { font-size: .85em; color: #666; margin: -14px 0 18px; }

/* Informations page */
.info-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; margin: 6px 0 26px; }
a.info-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
a.info-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.12); transform: translateY(-2px); }
a.info-card strong { font-size: 1.05em; color: var(--accent); }
.info-tag { align-self: flex-start; font-size: .72em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 9px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); }
.info-tag.pdf { background: #fbeaea; color: #b03a3a; }
.info-desc { font-size: .88em; color: #555; line-height: 1.45; }

/* Footer */
.site-footer { background: var(--blue-dark); color: #d7e3ea; padding: 40px 0; font-size: .9rem; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.site-footer strong { color: #fff; display: block; margin-bottom: 8px; }
.site-footer a { color: #fff; }
.site-footer__fine { opacity: .7; font-size: .8rem; margin-top: 16px; }
