/* djil.org : le site public. Même identité que l'application : fond clair
   teinté de vert, étoile à huit branches, rouge en touche rare. */
@import url("fonts/polices.css");

:root {
  color-scheme: light;
  --fond: #F4F8F5; --surface: #FFFFFF; --surface-2: #EEF4F0; --ligne: #D8E4DC; --ligne-2: #E8F0EA;
  --encre: #0E281D; --texte: #30453A; --discret: #62776B;
  --v9: #07301F; --v8: #0A4430; --v7: #006233; --v6: #0B7A45; --v5: #1B9660; --v2: #CFEBDC; --v1: #E6F4EC;
  --r6: #D21034; --a1: #FCF4E4; --a7: #8A5A0E;
  --drapeau: linear-gradient(90deg, #006233 0%, #1B9660 86%, #fff 86%, #fff 87.5%, #D21034 87.5%);
  --f-titre: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --f-corps: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-ar: 'Noto Sans Arabic', 'Figtree', 'Segoe UI', Tahoma, sans-serif;
  --f-kufi: 'Reem Kufi', 'Noto Sans Arabic', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--f-corps); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
[dir="rtl"] body { font-family: var(--f-ar); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--v6); }
h1, h2, h3 { font-family: var(--f-titre); color: var(--v9); margin: 0; line-height: 1.15; text-wrap: balance; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: var(--f-ar); line-height: 1.4; }
h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.4px; margin-bottom: 14px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { margin: 0 0 12px; }
.dedans { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.etroit { max-width: 820px; }
.petit { font-size: 14px; color: var(--discret); }
.surtitre { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--v6); margin-bottom: 10px; }
.surtitre::before { content: ""; width: 7px; height: 7px; background: var(--r6); transform: rotate(45deg); }
[dir="rtl"] .surtitre { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.chapeau { font-size: 18px; color: var(--texte); max-width: 66ch; }

.annonce { background: var(--v7); color: #fff; text-align: center; font-size: 14px; padding: 8px 16px; }

/* en-tête */
.tete-site { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ligne-2); }
.tete-site::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--drapeau); }
.tete-site .dedans { display: flex; align-items: center; gap: 24px; height: 68px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--v9); }
.marque svg { width: 30px; height: 30px; }
.marque .nom { font-family: var(--f-titre); font-weight: 700; font-size: 22px; }
.marque .sep { width: 1.5px; height: 18px; background: var(--v2); }
.marque .ar { font-family: var(--f-kufi); font-weight: 700; font-size: 20px; color: var(--v6); }
.menu { display: flex; gap: 22px; margin-inline-start: 10px; }
.menu a { color: var(--texte); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.menu a:hover { color: var(--v6); }
.tete-site .droite { margin-inline-start: auto; display: flex; gap: 12px; align-items: center; }
.langues { display: inline-flex; border: 1px solid var(--ligne); border-radius: 8px; overflow: hidden; background: #fff; }
.langues button { border: 0; background: none; padding: 7px 11px; font: inherit; font-size: 13px; font-weight: 700; color: var(--discret); cursor: pointer; }
.langues button + button { border-inline-start: 1px solid var(--ligne); }
.langues button.actif { background: var(--v1); color: var(--v8); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--ligne); background: #fff; color: var(--v9); font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn:hover { border-color: #B9CFC1; }
.btn.principal { background: var(--v7); border-color: var(--v7); color: #fff; }
.btn.principal:hover { background: var(--v8); }
.btn.grand { height: 50px; padding: 0 24px; font-size: 16px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }

/* héros */
.heros { position: relative; overflow: hidden; padding: 64px 0 0; }
.heros .fond { position: absolute; inset: 0; background:
  radial-gradient(620px 520px at 82% 24%, rgba(27, 150, 96, .14), transparent 70%),
  radial-gradient(520px 420px at 0% 60%, rgba(210, 16, 52, .06), transparent 70%),
  linear-gradient(180deg, #FFFFFF 0%, var(--fond) 100%); }
.heros .fond::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 120 120'%3E%3Cpath d='M100 50L85.36 64.64L85.36 85.36L64.64 85.36L50 100L35.36 85.36L14.64 85.36L14.64 64.64L0 50L14.64 35.36L14.64 14.64L35.36 14.64L50 0L64.64 14.64L85.36 14.64L85.36 35.36Z' fill='none' stroke='%23006233' stroke-opacity='.07' stroke-width='2.2'/%3E%3C/svg%3E"); background-size: 60px 60px; -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 55%); mask-image: linear-gradient(200deg, #000 0%, transparent 55%); }
.heros > * { position: relative; }
.heros-grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; }
.heros h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -1.4px; line-height: 1.04; margin-bottom: 20px; }
[dir="rtl"] .heros h1 { letter-spacing: 0; line-height: 1.35; }
.heros .note { font-size: 14px; color: var(--discret); }
.heros .note b { color: var(--v8); font-weight: 650; }
.heros-etoile { position: relative; aspect-ratio: 1; max-width: 400px; width: 100%; justify-self: center; }
.heros-etoile svg { width: 100%; height: 100%; }
.heros-etoile .mot { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.heros-etoile .ar { font-family: var(--f-kufi); font-weight: 700; font-size: clamp(56px, 7vw, 92px); color: var(--v7); line-height: 1.1; }
.heros-etoile .trait { width: 70px; height: 4px; border-radius: 2px; background: var(--drapeau); margin: 8px 0 10px; }
.heros-etoile .lat { font-family: var(--f-titre); font-weight: 700; font-size: clamp(30px, 4vw, 48px); color: var(--v8); line-height: 1; }
.navigateur { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--ligne); background: #fff; box-shadow: 0 24px 60px rgba(7, 48, 31, .14), 0 3px 10px rgba(7, 48, 31, .06); }
.navigateur .barre { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--ligne); }
.navigateur .barre i { width: 10px; height: 10px; border-radius: 50%; background: #CBD8D0; }
.navigateur .barre span { margin-inline-start: 14px; font-size: 12px; color: var(--discret); background: #fff; border: 1px solid var(--ligne); border-radius: 6px; padding: 2px 12px; direction: ltr; }
.apercu-heros { margin-top: 56px; margin-bottom: -120px; }

/* faits */
.faits { background: var(--v9); color: #fff; padding: 160px 0 44px; }
.grille-faits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.grille-faits div { border-top: 2px solid rgba(255, 255, 255, .22); padding-top: 14px; }
.grille-faits b { display: block; font-family: var(--f-titre); font-size: 40px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.grille-faits span { color: #CFE3D7; font-size: 14.5px; }

/* sections */
.bloc { padding: 88px 0; }
.bloc.creux { background: #fff; border-block: 1px solid var(--ligne-2); }
.etapes-site { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; counter-reset: e; }
.etapes-site li { counter-increment: e; position: relative; padding-top: 58px; }
.etapes-site li::before { content: counter(e); position: absolute; top: 0; inset-inline-start: 0; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1.5px solid var(--v5); color: var(--v7); font-family: var(--f-titre); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.etapes-site li::after { content: ""; position: absolute; top: 20px; inset-inline-start: 52px; inset-inline-end: -16px; height: 1.5px; background: var(--v2); }
.etapes-site li:last-child::after { display: none; }
.etapes-site b { display: block; font-family: var(--f-titre); font-size: 19px; color: var(--v9); margin-bottom: 6px; }
[dir="rtl"] .etapes-site b { font-family: var(--f-ar); }
.etapes-site p { color: var(--texte); font-size: 15px; }

.onglets-site { display: flex; gap: 4px; border-bottom: 1px solid var(--ligne); margin: 28px 0 24px; overflow-x: auto; }
.onglets-site button { border: 0; background: none; font: inherit; font-weight: 650; font-size: 15px; color: var(--discret); padding: 10px 16px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.onglets-site button.actif { color: var(--v8); border-bottom-color: var(--v6); }
.galerie { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.galerie .legendes { display: flex; flex-direction: column; gap: 10px; }
.galerie .legendes button { text-align: start; font: inherit; font-size: 15px; color: var(--texte); background: var(--fond); border: 1px solid var(--ligne-2); border-radius: 10px; padding: 14px 16px; cursor: pointer; display: flex; gap: 12px; }
.galerie .legendes button b { font-family: var(--f-titre); color: var(--v6); }
.galerie .legendes button.actif { background: var(--v1); border-color: var(--v2); color: var(--v9); }
.galerie.telephones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.telephone { margin: 0; border: 9px solid #0E281D; border-radius: 36px; overflow: hidden; box-shadow: 0 18px 44px rgba(7, 48, 31, .18); max-width: 300px; justify-self: center; background: #fff; }
.telephone img { width: 100%; }
.telephone + figcaption, .fig-tel figcaption { text-align: center; color: var(--texte); font-size: 14.5px; margin-top: 12px; }

.grille-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.grille-4 article, .cadre article { background: #fff; border: 1px solid var(--ligne); border-radius: 12px; padding: 22px; }
.grille-4 article { border-top: 3px solid var(--v5); }
.grille-4 p, .cadre p { font-size: 15px; color: var(--texte); margin: 0; }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.cadre { margin-top: 30px; }
.cadre article { background: var(--fond); }

.cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 26px 0 18px; }
.carte-projet { background: var(--fond); border: 1px solid var(--ligne); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; }
.carte-projet .haut { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 700; color: var(--v6); letter-spacing: .6px; text-transform: uppercase; margin-bottom: 8px; }
[dir="rtl"] .carte-projet .haut { letter-spacing: 0; text-transform: none; }
.carte-projet .exemple { background: var(--a1); color: var(--a7); border-radius: 999px; padding: 1px 9px; font-size: 11.5px; text-transform: none; letter-spacing: 0; }
.carte-projet h3 { font-size: 18px; }
.carte-projet p { font-size: 14.5px; color: var(--texte); flex: 1; }
.carte-projet .pied { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--discret); border-top: 1px solid var(--ligne-2); padding-top: 12px; margin-top: 8px; }

.carte-site { background: #fff; border: 1px solid var(--ligne); border-radius: 12px; padding: 26px; }
.bloc.creux .carte-site { background: var(--fond); }
.carte-site h2 { font-size: 24px; }
.installer { display: flex; gap: 22px; align-items: center; justify-content: space-between; }
.installer figure { margin: 0; text-align: center; flex: none; }
.installer figcaption { font-size: 12.5px; color: var(--discret); margin-top: 6px; max-width: 140px; }
.ligne-form { display: flex; gap: 10px; margin-top: 16px; }
input, select, textarea { width: 100%; font: inherit; font-size: 15px; color: var(--encre); background: #fff; border: 1px solid #CCDAD1; border-radius: 8px; padding: 10px 12px; min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--v5); box-shadow: 0 0 0 3px rgba(27, 150, 96, .16); }
#form-contact label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 650; }
.piege { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.retour { margin: 12px 0 0; font-size: 14px; }
.retour.ok { color: var(--v7); }
.retour.ko { color: #A10D2A; }

.faq details { border-bottom: 1px solid var(--ligne); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; color: var(--v9); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-family: var(--f-titre); color: var(--v6); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 10px 0 0; color: var(--texte); }

.pied-site { background: var(--v9); color: #CFE3D7; padding: 36px 0; font-size: 14px; }
.pied-site .dedans { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pied-site b { color: #fff; }
.pied-site p { margin: 4px 0 0; }
.pied-site nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.pied-site a { color: #CFE3D7; }

@media (max-width: 1000px) {
  .menu { display: none; }
  .heros-grille { grid-template-columns: minmax(0, 1fr); }
  .heros-etoile { max-width: 260px; order: -1; }
  .grille-faits, .etapes-site, .grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etapes-site li::after { display: none; }
  .galerie, .galerie.telephones, .cartes, .grille-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .dedans { padding-inline: 16px; }
  .tete-site .dedans { gap: 10px; }
  .tete-site .btn { display: none; }
  .heros { padding-top: 32px; }
  .grille-faits, .etapes-site, .grille-4 { grid-template-columns: minmax(0, 1fr); }
  .bloc { padding: 60px 0; }
  .apercu-heros { margin-top: 32px; margin-bottom: -60px; }
  .faits { padding-top: 96px; }
  .installer { flex-direction: column; align-items: flex-start; }
  .ligne-form { flex-direction: column; }
}

.annonce.test { background: #EAF2F8; color: #1D5A86; border-bottom: 1px solid #C9DDEC; }
@media (max-width: 700px) { .annonce.test { font-size: 12.5px; line-height: 1.45; } }
