:root {
    --vert: #006233;
    --nuit: #08291c;
    --rouge: #d21034;
    --rouge-fonce: #a80d29;
    --or: #c8a24a;
    --ivoire: #fffdf7;
    --menthe: #eaf2ec;
    --encre: #17231d;
    --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23c8a24a' stroke-opacity='.3' stroke-width='1'%3E%3Crect x='16' y='16' width='32' height='32'/%3E%3Crect x='16' y='16' width='32' height='32' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3C/g%3E%3C/svg%3E");
    --etoile: polygon(50% 0, 61% 20%, 85% 15%, 80% 39%, 100% 50%, 80% 61%, 85% 85%, 61% 80%, 50% 100%, 39% 80%, 15% 85%, 20% 61%, 0 50%, 20% 39%, 15% 15%, 39% 20%);
}
html { scroll-behavior: smooth; }
body { font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; color: var(--encre); background: var(--ivoire); line-height: 1.7; }
h1, h2, h3, h4, .kufi { font-family: 'Reem Kufi', 'Cairo', sans-serif; font-weight: 700; }
section[id], header[id] { scroll-margin-top: 70px; }
a { color: var(--vert); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }

.drapeau { height: 6px; background: linear-gradient(90deg, var(--vert) 50%, #fff 50%, #fff 52%, var(--rouge) 52%); }

.navbar { background: var(--nuit); border-bottom: 2px solid var(--or); }
.navbar-brand { display: flex; align-items: center; gap: .6rem; color: #fff; }
.navbar-brand:hover { color: #fff; }
.navbar-brand svg { width: 40px; height: 40px; }
.marque { font-family: 'Reem Kufi', sans-serif; font-size: 1.35rem; line-height: 1; }
.marque small { display: block; font-family: 'Cairo', sans-serif; font-size: .8rem; color: var(--or); margin-top: 2px; }
.navbar .nav-link { color: #e7efe9; font-weight: 600; }
.navbar .nav-link:hover { color: var(--or); }
.navbar-toggler { color: #fff; border-color: var(--or); }
.btn-entrer-nav { background: var(--or); color: var(--nuit); font-weight: 700; border-radius: 50rem; padding: .35rem 1.1rem; }
.btn-entrer-nav:hover { background: #fff; color: var(--nuit); }

.hero { position: relative; background: radial-gradient(ellipse at 78% 40%, #0d5a3a 0%, var(--nuit) 62%); background-color: var(--nuit); color: #fff; padding: 64px 0 80px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--zellige); }
.hero .container { position: relative; }
.hero h1 { margin: 0 0 1rem; }
.hero h1 .ar { display: block; font-size: clamp(3.2rem, 9vw, 5.8rem); line-height: 1.15; color: var(--or); }
.hero h1 .fr { display: block; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.3; max-width: 17em; }
.hero .lead { max-width: 30em; color: #d6e4db; }
.atouts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.atouts li { border: 1px solid var(--or); border-radius: 50rem; padding: .2rem .9rem; font-size: .95rem; color: #fff; }
.atouts i { color: var(--or); margin-inline-end: .4rem; }

.arche { background: var(--ivoire); color: var(--encre); max-width: 430px; margin: 0 auto;
    padding: 112px 28px 28px; border: 3px solid var(--or);
    border-radius: 50% 50% 22px 22px / 130px 130px 22px 22px;
    box-shadow: 0 0 0 7px var(--nuit), 0 0 0 9px var(--or), 0 24px 50px rgba(0,0,0,.45); position: relative; }
.arche .croissant { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; }
.arche h2 { position: absolute; top: 80px; left: 0; right: 0; text-align: center; font-size: 1.35rem; margin: 0; color: var(--vert); }
.arche label.champ { font-weight: 600; font-size: .95rem; margin-bottom: .2rem; }
.arche .form-control, .arche .form-select { border: 2px solid #cfd9d2; border-radius: 10px; padding: .55rem .8rem; background-color: #fff; }
.arche .form-control:focus, .arche .form-select:focus { border-color: var(--vert); box-shadow: 0 0 0 .2rem rgba(0,98,51,.2); }
.arche input::placeholder { color: #6c757d; opacity: .8; }
.choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.choix input { position: absolute; opacity: 0; pointer-events: none; }
.choix label { display: block; text-align: center; padding: .5rem .2rem; border: 2px solid #cfd9d2; border-radius: 10px; background: #fff; cursor: pointer; font-weight: 600; font-size: .95rem; }
.choix input:checked + label { background: var(--vert); border-color: var(--vert); color: #fff; }
.choix input:focus-visible + label { outline: 3px solid var(--or); outline-offset: 2px; }
.btn-entrer { width: 100%; background: var(--rouge); color: #fff; font-family: 'Reem Kufi', sans-serif; font-weight: 700; font-size: 1.2rem; padding: .7rem 1rem; border: 0; border-radius: 12px; transition: background-color .2s; }
.btn-entrer:hover, .btn-entrer:focus-visible { background: var(--rouge-fonce); color: #fff; }

.bloc { padding: 72px 0; }
.titre { text-align: center; margin-bottom: 2.5rem; }
.titre h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--vert); margin-bottom: .4rem; }
.titre p { color: #4a5a51; margin: 0 auto; max-width: 36em; }
.orn { display: flex; align-items: center; gap: .8rem; max-width: 220px; margin: .8rem auto 0; }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: var(--or); }
.orn i { width: 16px; height: 16px; background: var(--or); clip-path: var(--etoile); }
.sur-vert .titre h2 { color: #fff; }
.sur-vert .titre p { color: #d6e4db; }

.motifs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.2rem 3rem; max-width: 960px; margin: 0 auto; }
.motif { display: flex; gap: 1rem; }
.motif .etoile { flex: 0 0 44px; height: 44px; background: var(--vert); clip-path: var(--etoile); display: grid; place-items: center; color: #fff; }
.motif h3 { font-size: 1.25rem; color: var(--vert); margin-bottom: .3rem; }
.motif p { margin: 0; color: #36443c; }

.villes { background: var(--menthe); padding: 28px 0; border-block: 1px solid #d3e0d7; text-align: center; }
.villes p { margin: 0 0 .8rem; font-weight: 600; color: var(--vert); }
.villes ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.villes li { background: #fff; border: 1px solid var(--or); border-radius: 50rem; padding: .1rem .9rem; font-size: .95rem; }

.sur-vert { background: var(--vert); position: relative; color: #fff; }
.sur-vert::before { content: ""; position: absolute; inset: 0; background-image: var(--zellige); }
.sur-vert .container { position: relative; }
.regle { text-align: center; padding: 0 1rem; }
.regle .octo { width: 78px; height: 78px; margin: 0 auto 1rem; background: var(--or); clip-path: var(--etoile); display: grid; place-items: center; color: var(--nuit); font-size: 1.5rem; }
.regle h3 { font-size: 1.4rem; }
.regle p { color: #e3ede6; }

.apropos { max-width: 44em; margin: 0 auto; text-align: center; font-size: 1.1rem; }
.staff { background: var(--menthe); }
.staff p { max-width: 40em; margin-inline: auto; text-align: center; }
.recrute { display: inline-block; margin-top: .5rem; background: var(--vert); color: #fff; border-radius: 50rem; padding: .4rem 1.4rem; font-weight: 700; text-decoration: none; }
.recrute:hover { background: var(--nuit); color: #fff; }

#partenaires img { border: 1px solid #ccd6cf; border-radius: 8px; background: #fff; transition: opacity .2s; }
#partenaires a:hover img { opacity: .65; }

.contact { background: var(--nuit); color: #fff; position: relative; text-align: center; }
.contact::before { content: ""; position: absolute; inset: 0; background-image: var(--zellige); }
.contact .container { position: relative; }
.contact h2 { color: var(--or); }
.contact a { color: #fff; font-weight: 700; font-size: 1.2rem; }
.contact ul { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; }
.contact li i { color: var(--or); margin-inline-end: .4rem; }

footer { background: #051a12; color: #b9cabf; padding: 20px 0; font-size: .95rem; border-top: 2px solid var(--or); }
footer a { color: var(--or); }
.modal-header { background: var(--vert); color: #fff; }
.modal-header .btn-close { filter: invert(1); }
.modal .btn-primary { background: var(--vert); border-color: var(--vert); }

@media (max-width: 575px) {
    .arche { padding: 100px 18px 22px; }
    .hero { padding: 40px 0 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }