/*
Theme Name: Coeurdu12
Description: Thème du site Coeurdu12, dédié au 12e arrondissement de Paris.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: coeurdu12
*/

:root {
  --blue: #003087;
  --blue-dark: #002366;
  --yellow: #FFCC00;
  --pale: #E8F4FC;
  --bg: #F7F9FC;
  --text: #263346;
  --muted: #596575;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 Arial, Helvetica, sans-serif; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
section[id] { scroll-margin-top: 105px; }
.wrap { width: min(1200px, calc(100% - 40px)); margin: auto; }
.narrow { width: min(800px, calc(100% - 40px)); margin: auto; }
.section { padding: 72px 0; }
.center { text-align: center; }
.section-title { display: inline-block; position: relative; margin: 0 0 36px; color: var(--blue); font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.2; }
.section-title:after { content: ""; position: absolute; bottom: -11px; left: 0; width: 62px; height: 4px; border-radius: 4px; background: var(--yellow); }
.center .section-title:after { left: 50%; transform: translateX(-50%); }
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 28px; border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(0,30,75,.09); }
.card h3 { margin: 8px 0; color: var(--blue); }
.card p { color: var(--muted); }
.button { display: inline-flex; justify-content: center; align-items: center; padding: 12px 24px; min-height: 50px; border: 2px solid transparent; border-radius: 99px; font-weight: 700; text-decoration: none; cursor: pointer; }
.button-yellow { background: var(--yellow); color: var(--blue); }
.button-blue { background: var(--blue); color: #fff; }
.button-outline { border-color: var(--blue); background: white; color: var(--blue); }
.button-white { border-color: white; color: white; }
.button:hover { filter: brightness(.94); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 3px 15px rgba(0,30,75,.1); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.8rem; font-weight: 800; }
.brand-name { color: var(--blue); font-size: 1.6rem; font-weight: 800; letter-spacing: -.05em; }
.brand-name span { color: var(--yellow); }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px 15px; }
.site-nav a { color: var(--blue); font-size: .82rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.menu-toggle { display: none; padding: 8px 13px; border: 2px solid var(--blue); border-radius: 10px; background: white; color: var(--blue); font-weight: 700; cursor: pointer; }

.hero { display: grid; place-items: center; min-height: 590px; padding: 75px 20px; background: linear-gradient(125deg,rgba(0,48,135,.87),rgba(0,48,135,.55)), url("https://upload.wikimedia.org/wikipedia/commons/5/55/Fontaine_du_Ch%C3%A2teau_d%27eau.JPG") center/cover; color: white; text-align: center; }
.hero h1 { margin: 12px 0; font-size: clamp(3.5rem, 10vw, 7rem); letter-spacing: -.06em; line-height: 1; }
.hero p { max-width: 700px; margin: 16px auto 32px; font-size: clamp(1.3rem, 3vw, 2rem); }
.eyebrow { display: inline-block; padding: 8px 18px; border-radius: 99px; background: rgba(255,255,255,.18); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.intro { padding: 65px 0; }
.intro h2 { margin: 0 0 12px; color: var(--blue); font-size: 2.5rem; }
.intro p, .lead { font-size: 1.15rem; }
.feature { min-height: 250px; }
.portrait { display: flex; align-items: center; gap: 15px; margin-top: 15px; }
.avatar { display: grid; place-items: center; flex: 0 0 62px; width: 62px; height: 62px; border-radius: 50%; background: var(--pale); color: var(--blue); font-weight: 700; }
.portrait small { color: var(--muted); }
.news-card { padding: 0; overflow: hidden; }
.news-card img { display: block; width: 100%; height: 175px; object-fit: cover; }
.news-art { display: grid; place-items: center; min-height: 175px; background: var(--blue); color: var(--yellow); font-size: 3rem; }
.news-body { padding: 24px; }
.news-body h3 a { text-decoration: none; }
.pill { display: inline-block; padding: 5px 12px; border-radius: 99px; background: var(--yellow); color: var(--blue); font-size: .8rem; font-weight: 700; }
.team { background: var(--pale); }
.member .avatar { width: 92px; height: 92px; margin: auto; background: white; font-size: 1.5rem; }
.member h3 { margin: 12px 0 0; color: var(--blue); font-size: 1.05rem; }
.member p { margin: 0; color: var(--muted); }
.quote { font-size: 1.3rem; font-style: italic; }
.newsletter-box { padding: 42px; border-radius: 22px; background: var(--blue); color: white; }
.newsletter-box h2 { margin: 0; font-size: 2rem; }
.newsletter-box p { margin: 8px 0 24px; }
.contact-section { background: white; }
.field { display: block; width: 100%; min-height: 50px; padding: 13px 16px; border: 1px solid #c8d1dc; border-radius: 13px; background: white; }
textarea.field { min-height: 130px; resize: vertical; }
.contact-section label { display: block; margin: 0 0 15px; color: var(--blue); font-weight: 700; }
.contact-section label .field { margin-top: 6px; }
.form-row { display: flex; gap: 10px; }
.form-note { font-size: .9rem; }
.content-page { min-height: 55vh; padding: 75px 0; }
.content-page h1 { color: var(--blue); }
.content-page article { margin-bottom: 24px; }
.site-footer { padding: 35px 20px; background: var(--blue); color: white; text-align: center; }
.site-footer p { margin: 4px; }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 82px; right: 0; left: 0; flex-direction: column; padding: 12px 20px 22px; background: white; box-shadow: 0 12px 18px rgba(0,30,75,.12); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 4px; border-bottom: 1px solid #e6ebf1; font-size: 1rem; }
}
@media (max-width: 720px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 55px 0; }
  .form-row { flex-direction: column; }
  .newsletter-box { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.portrait-article {
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid #e6ebf1;
}

.portrait-article:last-child {
    border-bottom: 0;
}

.portrait-photo {
    display: grid;
    place-items: center;
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border: 3px solid #FFCC00;
    border-radius: 50%;
    background: #E8F4FC;
    color: #003087;
    text-decoration: none;
    font-weight: 700;
}

.portrait-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.portrait-article h3 {
    margin: 0 0 4px;
    color: #003087;
}

.portrait-article h3 a {
    color: #003087;
    text-decoration: none;
}

.portrait-article p {
    margin: 0 0 6px;
}

@media (max-width: 480px) {
    .portrait-photo {
        flex-basis: 76px;
        width: 76px;
        height: 76px;
    }
}