@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');
:root{--forest:#163e36;--deep:#102b29;--green:#527766;--sage:#e7eee4;--cream:#faf9f4;--sand:#ebe6da;--ink:#1e302c;--muted:#61716b;--line:#dce4db}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font:16px/1.65 'DM Sans',Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin-top:0}h1,h2{letter-spacing:-.035em;line-height:1.14}h1{font-size:clamp(3rem,6.2vw,6.3rem)}h2{font-size:clamp(2rem,3.5vw,3.6rem)}h3{font-size:1.3rem}h1 em,h2 em{font-family:'Playfair Display',Georgia,serif;font-weight:500}p{color:var(--muted)}.container{width:min(1180px,calc(100% - 48px));margin:auto}.nav{display:flex;align-items:center;justify-content:space-between;padding:15px clamp(22px,5vw,78px);background:var(--cream);gap:24px;position:relative;z-index:5}.brand{display:flex;align-items:center;gap:12px;line-height:1.12;white-space:nowrap;font-size:14px;letter-spacing:.07em}.brand small{display:block;font-size:9px;letter-spacing:.2em;margin-top:7px;color:var(--muted)}.brand-muted{font-weight:500}.emblem{font-size:33px;color:var(--green)}nav{display:flex;gap:23px;align-items:center;font-size:13px;font-weight:600}nav a:hover,.text-link:hover{color:var(--green)}.nav-cta,.btn{border-radius:4px;display:inline-flex;align-items:center;justify-content:center;gap:20px;padding:13px 19px;font-weight:700}.nav-cta{background:var(--forest);color:white}.nav-cta:hover{color:white;background:#28574d}.menu-toggle{display:none;background:none;border:1px solid var(--line);padding:8px}.hero{min-height:610px;background:linear-gradient(90deg,rgba(14,46,39,.96) 0%,rgba(14,46,39,.82) 42%,rgba(14,46,39,.16) 100%),url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=2200&q=85') center/cover;position:relative;color:white;display:flex;align-items:center}.hero-content{position:relative;padding-block:92px}.hero h1{max-width:920px;margin:20px 0 26px}.hero h1 em{color:#d9e8d7}.hero p{max-width:540px;font-size:18px;color:#e1ebe5}.hero-stamp{position:absolute;right:8%;bottom:45px;border:1px solid #dcebe4a8;border-radius:50%;width:128px;height:128px;display:flex;justify-content:center;align-items:center;text-align:center;transform:rotate(12deg);font-size:11px;font-weight:700;letter-spacing:.1em}.hero-stamp span{font-size:22px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.2em;color:var(--green);text-transform:uppercase}.eyebrow.light{color:#cae4d6}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}.btn-light{background:#f6f5ed;color:var(--deep)}.btn-outline{border:1px solid #d0dfd8;color:white}.btn-dark{background:var(--forest);color:white;border:0}.btn:hover{filter:brightness(1.08);transform:translateY(-1px)}.stats{background:var(--deep);color:white}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);padding:28px 0;gap:20px}.stat-grid>div{padding-left:35px;border-left:1px solid #ffffff33}.stat-grid strong{display:block;font-size:32px;font-family:'Playfair Display',Georgia,serif;font-weight:500}.stat-grid span{font-size:12px;color:#d1ded7}.section{padding-block:100px}.intro-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}.lead{font-size:20px;line-height:1.85}.text-link{display:inline-block;margin-top:20px;text-decoration:underline;text-underline-offset:8px;font-weight:700;font-size:14px}.pale{background:#eef1eb}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:35px}.cards{display:grid;gap:19px}.cards.three{grid-template-columns:repeat(3,1fr)}.feature,.news-card{background:white;border:1px solid var(--line);padding:34px;min-height:218px}.feature-icon{font-size:42px;color:var(--green);margin:13px 0}.feature-num,.date{color:var(--green);font-weight:700;letter-spacing:.1em;font-size:11px}.feature h3,.news-card h3{margin:15px 0 8px}.news-card p,.feature p{margin:0;font-size:14px}.cta{background:var(--forest);color:white;padding:85px 0}.cta-inner{display:flex;justify-content:space-between;gap:32px;align-items:center}.cta h2{margin:18px 0}.cta p{color:#d7e6de}.page-hero{background:linear-gradient(120deg,#173f35,#527460);color:white;padding:105px 0}.page-hero.compact{padding:66px 0}.page-hero h1{font-size:clamp(2.8rem,5vw,5.1rem);margin:16px 0}.page-hero p{color:#e0eae3}.page-content{max-width:860px}.page-content p{font-size:18px;line-height:1.9}.document-list{display:grid;gap:10px}.doc-row{display:flex;gap:15px;align-items:center;padding:19px 24px;background:white;border:1px solid var(--line)}.doc-icon{background:var(--sage);border-radius:40px;width:44px;height:44px;display:grid;place-items:center}.doc-row small,.admin-row small{display:block;color:var(--muted)}.auth{max-width:650px}.panel,.contact-panel{padding:32px;border:1px solid var(--line);background:white}.form{display:grid;gap:14px}.form label{font-weight:600;font-size:13px;display:grid;gap:7px}.form input:not([type=checkbox]),.form textarea,.form select,.inline-form input,.inline-form select,.edit-form input,.edit-form textarea,.edit-form select{width:100%;border:1px solid #cad6cd;border-radius:3px;padding:12px 13px;background:#fff;min-width:0}.form input:focus,.form textarea:focus{outline:2px solid #87ab95}.form .checkline{display:flex;align-items:center;gap:8px}.hint{font-size:13px;margin-top:22px}.dash-heading,.admin-row{display:flex;justify-content:space-between;align-items:center;gap:20px}.text-button{border:0;background:none;text-decoration:underline;font-weight:700}.dashboard-grid,.admin-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:35px;margin-top:55px}.dashboard-grid h2{font-size:28px}.mini-post{padding:16px 0;border-bottom:1px solid var(--line)}.mini-post p{margin:4px 0}.admin-grid{grid-template-columns:1fr 1fr}.admin-subtitle{font-size:28px;margin-top:65px}.admin-list{display:grid;gap:10px}.admin-row{border:1px solid var(--line);background:white;padding:20px}.admin-row>div{flex:1;min-width:0}.admin-row p{margin:8px 0 0;overflow-wrap:anywhere}.inline-form{display:flex;gap:7px;align-items:center}.inline-form input{max-width:220px}.small-btn{border:0;color:white;background:var(--forest);padding:10px}.danger{border:1px solid #e8b2a9;background:#fff7f4;color:#a12e1f;padding:10px}.edit-form{margin-top:14px;max-width:650px}.flash-wrap{position:relative;z-index:9}.flash{padding:14px 5%;background:#dceee0;color:#165c32}.flash.error{background:#ffe6e2;color:#89261b}footer{background:#112c26;color:white}.footer-inner{width:min(1180px,calc(100% - 48px));margin:auto;padding:68px 0;display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}footer p{color:#bdcec5}.footer-logo{font-weight:700;letter-spacing:.06em}footer a{display:block;font-size:13px;color:#dae7df;margin-top:10px}.copyright{border-top:1px solid #ffffff21;text-align:center;padding:18px;color:#b9c9c0;font-size:12px}@media(max-width:960px){.menu-toggle{display:block}nav{display:none;position:absolute;top:100%;left:0;right:0;background:var(--cream);padding:25px;box-shadow:0 15px 25px #0002;flex-direction:column;align-items:stretch}nav.is-open{display:flex}.intro-grid,.dashboard-grid,.admin-grid{grid-template-columns:1fr;gap:28px}.hero-stamp{display:none}}@media(max-width:700px){.container{width:min(100% - 32px,1180px)}.brand{font-size:11px}.brand small{font-size:8px}.emblem{font-size:24px}.hero{min-height:560px}.hero h1{font-size:clamp(2.65rem,11vw,4.5rem)}.section{padding-block:64px}.cards.three,.stat-grid{grid-template-columns:1fr 1fr}.cards.three .feature:last-child{grid-column:span 2}.stat-grid>div{padding-left:15px}.stat-grid strong{font-size:25px}.cta-inner,.section-head,.admin-row,.dash-heading{align-items:flex-start;flex-direction:column}.footer-inner{grid-template-columns:1fr 1fr}.footer-inner>div:first-child{grid-column:span 2}.inline-form{width:100%}}@media(max-width:480px){.cards.three,.stat-grid{grid-template-columns:1fr}.cards.three .feature:last-child{grid-column:auto}.hero-content{padding-block:65px}.panel,.feature,.news-card{padding:23px}}
/* Photo accueil */
.hero {
    background-image:
        linear-gradient(
            rgba(0, 35, 25, 0.45),
            rgba(0, 35, 25, 0.45)
        ),
        url("/static/accueil.png") !important;

    background-size: 100% auto !important;
background-position: center 55% !important;
    background-repeat: no-repeat !important;
}
/* PHOTO PROFESSION DE FOI */
.page-hero.profession-hero {
    background-image:
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0) 72%,
            rgba(255, 255, 255, 1) 100%
        ),
        url("/static/panneau.png") !important;

    background-size: 100% auto !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #ffffff !important;

    min-height: 260px !important;
    padding: 35px 0 !important;
}
.page-hero.profession-hero h1 {
    color: white !important;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
/* BANNIÈRE PAGE CONTACT */
.page-hero.contact-hero {
    background-image: url("/static/banniere-contact.png") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;

    height: 350px !important;
    min-height: 0 !important;
    padding: 0 !important;
}
/* BANNIÈRE NOS TRAVAUX */
.page-hero.actions-hero {
    background-image: url("/static/banniere-travaux.png") !important;

    background-size: 100% auto !important;
    background-position: center 70% !important;
    background-repeat: no-repeat !important;

    height: 350px !important;
    min-height: 0 !important;
    padding: 0 !important;
}
/* BANNIÈRE NOTRE PROJET */
.page-hero.profession-hero {
    background-image: url("/static/banniere-projet.png") !important;
    background-size: 100% 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;

    height: 350px !important;
    min-height: 0 !important;
    padding: 0 !important;
}

/* ===== PANNEAU ADMINISTRATION PRIVÉ ===== */

.asa-admin {
    background: #f7f8f5;
    color: #20382f;
}

.asa-admin-hero {
    background: linear-gradient(120deg, #112f28, #31574b);
    color: white;
    padding: 65px 0 75px;
}

.asa-admin-hero h1 {
    color: white;
    font-size: clamp(40px, 5vw, 64px);
    margin: 18px 0;
}

.asa-admin-hero em {
    font-family: Georgia, serif;
    font-weight: normal;
}

.asa-admin-hero p {
    color: #d7e5dd;
    font-size: 17px;
}

.asa-admin-eyebrow {
    color: #d9ca98;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
}

.asa-admin-hero-actions {
    margin-top: 30px;
}

.asa-admin-link-light {
    color: white;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.asa-admin-content {
    padding-top: 50px;
    padding-bottom: 75px;
}

.asa-admin-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.asa-admin-heading h2 {
    font-size: clamp(28px, 3vw, 40px);
    margin: 8px 0 0;
}

.asa-admin-status {
    font-size: 13px;
    color: #28634c;
    font-weight: 700;
}

.asa-admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.asa-admin-stat {
    background: #173e32;
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: white;
}

.asa-admin-stat-icon {
    color: #dbc995;
    font-size: 27px;
}

.asa-admin-stat-label {
    color: #b9d0c2;
    font-size: 12px;
    letter-spacing: 1.5px;
}

.asa-admin-stat strong {
    font-size: 40px;
    color: white;
}

.asa-admin-stat small {
    color: #c2d6cb;
}

.asa-admin-section {
    margin-top: 60px;
    scroll-margin-top: 110px;
}

.asa-admin-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.asa-admin-shortcut {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    background: white;
    border: 1px solid #e1e7e0;
    border-radius: 14px;
    color: #20382f;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

.asa-admin-shortcut:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 50, 35, .10);
}

.asa-admin-shortcut span {
    font-size: 29px;
    color: #567e64;
}

.asa-admin-shortcut strong {
    font-size: 17px;
}

.asa-admin-shortcut small {
    color: #718479;
}

.asa-admin-forms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.asa-admin-panel {
    background: #fff;
    border: 1px solid #e0e7df;
    border-radius: 15px;
    padding: 30px;
    min-width: 0;
}

.asa-admin-panel-top {
    margin-bottom: 25px;
}

.asa-admin-panel-icon {
    font-size: 30px;
    color: #567e64;
}

.asa-admin-panel-top h3 {
    font-size: 25px;
    margin: 12px 0;
}

.asa-admin-panel-top p,
.asa-admin-hint {
    color: #718479;
    line-height: 1.6;
}

.asa-admin .form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.asa-admin .form input:not([type="checkbox"]),
.asa-admin .form select,
.asa-admin .form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.asa-admin-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding: 22px 0;
    border-bottom: 1px solid #e5eae4;
}

.asa-admin-row:last-child {
    border-bottom: none;
}

.asa-admin-row-content {
    flex: 1;
    min-width: 0;
}

.asa-admin-row-content strong,
.asa-admin-row-content small {
    display: block;
    margin-bottom: 9px;
}

.asa-admin-row-content small {
    color: #718479;
}

.asa-admin-row details {
    margin-top: 15px;
}

.asa-admin-row summary {
    cursor: pointer;
    color: #28634c;
    font-weight: 700;
}

.asa-admin-edit {
    margin-top: 22px;
}

.asa-admin-empty {
    padding: 15px 0;
    color: #718479;
}

.asa-admin-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 70px;
    padding: 30px 0;
    border-top: 1px solid #d9e3db;
}

.asa-admin-bottom p {
    color: #718479;
    margin-top: 7px;
}

.asa-admin-logout {
    background: #173e32;
    color: white;
    padding: 14px 22px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

@media (max-width: 800px) {
    .asa-admin-stats,
    .asa-admin-shortcuts,
    .asa-admin-forms {
        grid-template-columns: 1fr;
    }

    .asa-admin-row,
    .asa-admin-bottom {
        flex-direction: column;
    }

    .asa-admin-hero {
        padding: 45px 0;
    }

    .asa-admin-panel {
        padding: 20px;
    }
}
