/* ============================================================
   INTELLIGENCE IN LIFE — feuille de style principale
   Palette et polices reprises telles quelles du site d'origine.
   ============================================================ */

:root {
    --brand-green: #008000;
    --brand-green-dark: #045c04;
    --brand-blue: #0e9cd1;
    --brand-blue-dark: #0d8ab9;
    --ink: #222222;
    --ink-soft: #282828;
    --ink-muted: #777777;
    --bg: #ffffff;
    --bg-alt: #f3f3f3;
    --border: #eaeaea;
    --border-strong: #dddddd;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Source Sans Pro', sans-serif;
    --max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink-soft);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--ink);
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 .6em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-dark); text-decoration: underline; }

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

ul, ol { padding-left: 1.3em; }
li { margin-bottom: .4em; }

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

/* ---------- Bouton ---------- */
.btn {
    display: inline-block;
    background: var(--brand-green);
    color: #fff;
    padding: .75em 1.6em;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .15s ease;
}
.btn:hover { background: var(--brand-green-dark); color: #fff; text-decoration: none; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--brand-green);
    color: var(--brand-green);
}
.btn-outline:hover { background: var(--brand-green); color: #fff; }

/* ---------- En-tête / navigation ---------- */
#site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 500;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 20px;
}
.site-logo img { height: 56px; width: auto; }
.site-logo { flex-shrink: 0; }

#nav-toggle { display: none; }
.nav-toggle-label {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle-label span {
    width: 26px;
    height: 3px;
    background: var(--ink);
    border-radius: 2px;
}

nav#main-nav { flex-grow: 1; }
nav#main-nav > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}
nav#main-nav > ul > li { position: relative; }
nav#main-nav > ul > li > a {
    display: block;
    padding: 10px 12px;
    color: var(--ink);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .03em;
    text-decoration: none;
    border-radius: 3px;
}
nav#main-nav > ul > li > a:hover,
nav#main-nav > ul > li.active > a { color: var(--brand-green); background: var(--bg-alt); }

nav#main-nav ul ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    min-width: 260px;
    display: none;
    z-index: 600;
}
nav#main-nav ul li:hover > ul,
nav#main-nav ul li:focus-within > ul { display: block; }
nav#main-nav ul ul li a {
    padding: 8px 18px;
    display: block;
    font-size: .85rem;
    font-weight: 400;
    color: var(--ink-soft);
    white-space: normal;
}
nav#main-nav ul ul li a:hover { color: var(--brand-green); background: var(--bg-alt); }

@media (max-width: 980px) {
    .nav-toggle-label { display: flex; }
    nav#main-nav {
        display: none;
        width: 100%;
        order: 3;
    }
    #nav-toggle:checked ~ nav#main-nav { display: block; }
    nav#main-nav > ul { flex-direction: column; align-items: stretch; }
    nav#main-nav ul ul {
        position: static;
        box-shadow: none;
        border: none;
        min-width: 0;
        display: block;
        padding-left: 14px;
    }
    .header-inner { flex-wrap: wrap; }
}

/* ---------- Bannière / tagline ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-blue) 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero .tagline { font-size: 1.05rem; opacity: .95; }

.page-hero.has-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #06210f;
    min-height: 60vh;
    padding: 60px 0 56px;
    display: flex;
    align-items: flex-end;
    text-align: left;
}
.page-hero.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(6,20,10,.92) 0%, rgba(6,20,10,.55) 42%, rgba(6,20,10,.25) 68%, rgba(6,20,10,.55) 100%),
        linear-gradient(120deg, rgba(0,50,20,.35) 0%, rgba(14,80,110,.15) 100%);
}
.page-hero.has-image .container { position: relative; z-index: 1; width: 100%; }
.page-hero.has-image h1 {
    font-size: clamp(2rem, 5vw, 3.1rem);
    text-transform: uppercase;
    letter-spacing: .01em;
    max-width: 780px;
    text-shadow: 0 2px 18px rgba(0,0,0,.4);
}
.page-hero.has-image .tagline {
    font-size: 1.15rem;
    font-weight: 600;
    max-width: 640px;
}
.page-hero.has-image .hero-seal {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #fff;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
    margin-bottom: 22px;
}
@media (max-width: 640px) {
    .page-hero.has-image { min-height: 300px; padding: 40px 0 34px; }
    .page-hero.has-image .hero-seal { width: 64px; height: 64px; margin-bottom: 14px; }
}

/* ---------- Contenu ---------- */
main { min-height: 50vh; }
.content-section { padding: 50px 0; }
.content-section:nth-of-type(even) { background: var(--bg-alt); }
.content-section h2 {
    border-left: 5px solid var(--brand-green);
    padding-left: 14px;
    margin-bottom: .8em;
}
.prose { max-width: 820px; }
.prose p { color: var(--ink-soft); }
.prose::after { content: ""; display: table; clear: both; }
@media (max-width: 640px) {
    .prose figure[style*="float"] { float: none !important; max-width: 100% !important; margin: 0 0 20px !important; }
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 14px rgba(20,20,20,.06);
    transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(20,20,20,.10);
}
.card h3 { color: var(--brand-green); }
.card .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.card .card-icon svg { width: 26px; height: 26px; stroke: var(--brand-green); fill: none; stroke-width: 1.8; }
.card.card-highlight { background: #eef8ee; border-color: #d8ecd8; }

.breadcrumb {
    font-size: .82rem;
    color: var(--ink-muted);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--brand-green); }

/* ---------- Photos ---------- */
.bio-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 44px;
    align-items: start;
}
.bio-grid .bio-photo img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.bio-grid .bio-photo h1 {
    margin-top: 20px;
    font-size: 1.5rem;
}
.bio-grid .bio-photo .tagline-dark {
    color: var(--ink-muted);
    font-weight: 600;
    font-size: .95rem;
}
@media (max-width: 760px) {
    .bio-grid { grid-template-columns: 1fr; }
    .bio-grid .bio-photo img { max-width: 280px; margin: 0 auto; }
    .bio-grid .bio-photo { text-align: center; }
}

.portrait-block {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.portrait-block img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    flex-shrink: 0;
}
.portrait-block .portrait-text { flex: 1; min-width: 260px; }

.prose figure { margin: 28px 0; }
.prose figure img {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.prose figure figcaption {
    font-size: .85rem;
    color: var(--ink-muted);
    margin-top: 8px;
    text-align: center;
}
.prose img.inline-photo {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    margin: 24px 0;
}

.card-media {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin: -24px -24px 18px;
    width: calc(100% + 48px);
}
.card-media.contain {
    object-fit: contain;
    background: #fff;
    padding: 16px;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    align-items: center;
    margin-top: 24px;
}
.logo-grid .logo-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
}
.logo-grid .logo-item img {
    max-height: 55px;
    max-width: 100%;
    width: auto;
    filter: grayscale(15%);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 24px 0;
}
.photo-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

/* ---------- Formulaire de contact ---------- */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.form-field input,
.form-field textarea {
    width: 100%;
    padding: .7em .9em;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--ink-muted); margin-top: 10px; }

/* ---------- Pied de page ---------- */
#site-footer {
    background: #141414;
    color: #ccc;
    padding: 50px 0 24px;
    margin-top: 40px;
}
#site-footer a { color: #ccc; }
#site-footer a:hover { color: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}
.footer-grid h4 {
    color: #fff;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 1em;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5em; font-size: .9rem; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    font-size: .82rem;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 34px; height: 34px;
    border: 1px solid #444;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
}
.social-links a:hover { border-color: var(--brand-green); color: var(--brand-green); }

/* ---------- Boîtes d'alerte ---------- */
.notice {
    background: #fff7e0;
    border: 1px solid #f0d38a;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: .92rem;
}
