:root {
    --background: #1c1c1b;
    --text: #f3f1ec;
    --grey: #aaa69f;
    --line: #3d3b38;

    --yellow: #d0a51a;
    --green: #707520;
    --pink: #b50d62;
    --blue: #14648d;

    --content-width: 1080px;
}

* { box-sizing: border-box; }

html { background: var(--background); }

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family: "Quicksand", sans-serif;
    font-size: 18px;
    line-height: 1.65;
}

a { color: inherit; }

.site-header {
    width: min(var(--content-width), calc(100% - 64px));
    margin: 22px auto 0;
}

.no-break {
    white-space: nowrap;
}

.barzakh-word {
    display: inline-block;
    white-space: nowrap;
    letter-spacing: 0.3em;

    margin-left: 0.3em;
    margin-right: 0;
}

.barzakh-word-first {
    margin-left: 0;
}

.barzakh-word-last {
    margin-right: -0.3em;
}

.banner-link { display: block; }

.site-banner {
    display: block;
    width: 100%;
    height: auto;
}

.header-bar {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.main-nav {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.main-nav a {
    position: relative;
    display: block;
    width: 118px;
    padding: 0 0 9px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 7px;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 140ms ease;
}

.main-nav a:hover::after { transform: scaleX(0); }

.nav-presentation::after  { background: var(--yellow); }
.nav-activites::after     { background: var(--green); }
.nav-manifeste::after     { background: var(--blue); }
.nav-contact::after       { background: var(--pink); }

.header-socials {
    display: flex;
    gap: 18px;
    margin-left: auto;
    padding-top: 2px;
}

.header-socials a {
    display: block;
    width: 28px;
    height: 28px;
    color: var(--text);
}

.header-socials img,
.mobile-socials img {
    display: block;
    width: 100%;
    height: 100%;
}

.mobile-social-row { display: none; }

.page-content {
    width: min(var(--content-width), calc(100% - 64px));
    margin: 62px auto 92px;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
    margin-bottom: 30px;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -0.025em;
}

h2 {
    margin-bottom: 10px;
    font-size: 29px;
    line-height: 1.25;
    font-weight: 600;
}

h3 {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 600;
}

p { margin-bottom: 22px; }

.lead {
    font-size: 22px;
    line-height: 1.55;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.7fr 0.8fr;
    gap: 90px;
    align-items: start;
}

.intro-main h1 { max-width: 760px; }

.accent-note {
    margin-top: 52px;
    color: #cfcbc4;
    font-size: 17px;
}

.accent-line {
    display: block;
    width: 100px;
    height: 8px;
    margin-bottom: 24px;
    background: var(--yellow);
}

.presentation-copy {
    max-width: 760px;
}

.seal-section {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 64px;
    align-items: start;
    margin-top: 74px;
    padding-top: 48px;
    border-top: 1px solid var(--line);
}

.seal-image {
    width: 100%;
    display: block;
}

.seal-copy { max-width: 680px; }

.seal-caption {
    color: var(--grey);
    font-size: 14px;
    margin-top: 12px;
}

.page-title {
    max-width: 830px;
    margin-bottom: 52px;
}

.activity-list { border-top: 1px solid var(--line); }

.activity {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 28px;
    padding: 38px 0;
    border-bottom: 1px solid var(--line);
}

.activity-marker {
    width: 12px;
    min-height: 72px;
    margin-top: 3px;
}

.activity-yellow .activity-marker { background: var(--yellow); }
.activity-green .activity-marker { background: var(--green); }
.activity-pink .activity-marker { background: var(--pink); }
.activity-blue .activity-marker { background: var(--blue); }

.activity-body { max-width: 860px; }
.activity-body p:last-child { margin-bottom: 0; }
.activity-body ul { margin: 10px 0 22px; padding-left: 24px; }
.activity-body li { margin-bottom: 7px; }

.manifeste-content {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.manifeste-content h1 {
    margin-left: auto;
    margin-right: auto;
}

.manifeste-line {
    width: 150px;
    height: 8px;
    margin: 0 auto 44px;
    background: var(--pink);
}

.manifeste-text {
    font-size: 20px;
    line-height: 1.75;
}

.manifeste-text p { margin-bottom: 28px; }

.contact-content {
    max-width: 760px;
}

.contact-form {
    margin-top: 34px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-field { margin-bottom: 22px; }

.form-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 15px;
    color: var(--grey);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 0;
    color: var(--text);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--grey);
    font: inherit;
    outline: none;
}

.form-field textarea {
    min-height: 160px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-bottom-color: var(--blue);
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 28px;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
}

.submit-button {
    padding: 11px 28px;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--blue);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.submit-button:hover {
    background: var(--blue);
}

.site-footer { border-top: 1px solid var(--line); }

.footer-inner {
    width: min(var(--content-width), calc(100% - 64px));
    margin: 0 auto;
    padding: 24px 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: var(--grey);
    font-size: 14px;
}

.footer-brand {
    letter-spacing: 0.03em;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.footer-links a:hover { border-bottom-color: transparent; }

/* Sous-activités : titres h3 soulignés avec la couleur du pôle */
.activity-body h3 {
    display: table;
    margin: 36px 0 22px;
    padding-bottom: 8px;
    border-bottom: 6px solid;
}

.activity-body h2 + h3 {
    margin-top: 14px;
}

.activity-green .activity-body h3  { border-bottom-color: var(--green); }
.activity-blue .activity-body h3   { border-bottom-color: var(--blue); }
.activity-pink .activity-body h3   { border-bottom-color: var(--pink); }
.activity-yellow .activity-body h3 { border-bottom-color: var(--yellow); }

