/* Layout : colonne étroite façon MonPécule, cartes blanches arrondies sur fond crème, liseré tricolore en haut */
:root{
  --bg:#F8F6F2;
  --surface:#FFFFFF;
  --surface-2:#F2EFE9;
  --text:#1A1A1A;
  --text-soft:#5B5853;
  --text-faint:#9C978E;
  --line:#EAE5DC;
  --accent:#1F1F1F;
  --on-accent:#FFFFFF;
  --dot:#0055A4;
  --ok:#00A878;
  --ok-soft:#DEF7EE;
  --wip:#A87300;
  --wip-soft:#FBEFC8;
  --expense:#FF3B5C;
  --blob-a:#3A3A3A;
  --blob-b:#5C5850;
  --shadow:0 2px 12px rgba(40,35,25,0.05);
  --shadow-card:0 14px 34px rgba(40,35,25,0.08);
  --gap:14px;
  --radius-lg:26px;
  --radius-md:18px;
  --radius-sm:12px;
  --font:'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme:light;
}
:root[data-theme="dark"]{
  --bg:#171512; --surface:#211E19; --surface-2:#2A2620;
  --text:#F5F0E6; --text-soft:#B0A99A; --text-faint:#7A7464; --line:#3A362C;
  --accent:#F5F0E6; --on-accent:#1A1A1A; --dot:#5B95FF;
  --ok:#3CE0A8; --ok-soft:#0E2A22; --wip:#E0B24A; --wip-soft:#2E2512;
  --shadow:0 2px 10px rgba(0,0,0,0.35); --shadow-card:0 12px 30px rgba(0,0,0,0.5);
  color-scheme:dark;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
html{scroll-behavior:smooth; scroll-padding-top:16px; -webkit-text-size-adjust:100%; text-size-adjust:100%;}
html, body{touch-action:pan-x pan-y; -ms-touch-action:pan-x pan-y;}
a, button, input, select, textarea, label{touch-action:manipulation;}
body{
  background:var(--bg); color:var(--text);
  font:400 15.5px/1.6 var(--font);
  -webkit-font-smoothing:antialiased;
  position:relative; overflow-x:hidden;
}
body::before, body::after{
  content:""; position:fixed; width:48vmax; height:48vmax; border-radius:50%;
  filter:blur(90px); opacity:0.05; z-index:-1; pointer-events:none; transition:opacity .45s ease;
}
body::before{ background:var(--blob-a); top:-20vmax; right:-16vmax; }
body::after{ background:var(--blob-b); bottom:-22vmax; left:-18vmax; }
:root[data-theme="dark"] body::before, :root[data-theme="dark"] body::after{ opacity:0; }

a{color:inherit;}
a:focus-visible, button:focus-visible{outline:2px solid var(--dot); outline-offset:3px; border-radius:10px;}

.flag{display:flex; height:4px; position:sticky; top:0; z-index:5;}
.flag span{flex:1;}
.flag span:nth-child(1){background:#0055A4;}
.flag span:nth-child(2){background:#FFFFFF;}
.flag span:nth-child(3){background:#EF4135;}

.wrap{max-width:700px; margin:0 auto; padding:22px 18px 56px;}
main{display:grid; gap:var(--gap);}

/* Barre du haut */
.topbar{display:flex; flex-wrap:nowrap; align-items:center; justify-content:space-between; gap:8px; margin-bottom:22px;}
.brand{text-decoration:none; font-size:20px; font-weight:800; letter-spacing:-0.025em; white-space:nowrap; line-height:1;}
.brand b{color:var(--text); font-weight:900; transition:color .45s ease;}
.top-right{
  display:flex; flex-wrap:nowrap; align-items:center; gap:2px; min-width:0;
  background:var(--surface); border:1px solid var(--line); border-radius:999px;
  padding:4px 4px 4px 6px; box-shadow:var(--shadow);
  transition:background-color .45s ease, border-color .45s ease, box-shadow .45s ease;
}
.top-right .theme-toggle{background:var(--surface-2); border-color:transparent; box-shadow:none; width:36px; height:36px;}
nav{display:flex; flex-wrap:nowrap; gap:0;}
nav a{white-space:nowrap;}
nav a{text-decoration:none; font-size:13px; font-weight:700; color:var(--text-soft); padding:8px 11px; border-radius:999px;}
nav a:hover{background:var(--surface-2); color:var(--text);}

/* Bouton jour / nuit */
.theme-toggle{
  width:40px; height:40px; flex-shrink:0; border-radius:50%; cursor:pointer;
  display:grid; place-items:center; padding:0;
  background:var(--surface); border:1px solid var(--line); color:var(--text);
  box-shadow:var(--shadow); transition:background .45s ease, border-color .45s ease, transform .15s ease;
}
.theme-toggle:hover{transform:rotate(-8deg) scale(1.05);}
.theme-toggle:active{transform:scale(0.92);}
.theme-toggle svg{width:22px; height:22px; overflow:visible;}
.sun-core{fill:#F2A900; transition:transform .6s cubic-bezier(.5,1.6,.4,1), fill .5s ease; transform-origin:12px 12px;}
.moon-cut{transition:transform .6s cubic-bezier(.5,1.6,.4,1); transform:translate(8px,-8px);}
.rays{stroke:#F2A900; transform-origin:12px 12px; transition:transform .6s cubic-bezier(.5,1.6,.4,1), opacity .35s ease;}
.stars{opacity:0; transform:scale(.4); transform-origin:18px 6px; transition:opacity .4s ease .25s, transform .5s cubic-bezier(.5,1.6,.4,1) .2s; fill:#FFD86B;}
:root[data-theme="dark"] .sun-core{fill:#F5E7B8; transform:scale(1.55);}
:root[data-theme="dark"] .moon-cut{transform:translate(0,0);}
:root[data-theme="dark"] .rays{opacity:0; transform:rotate(90deg) scale(.4);}
:root[data-theme="dark"] .stars{opacity:1; transform:scale(1);}

/* Cartes */
.card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg);
  box-shadow:var(--shadow); padding:24px;
}
body, .card, .pledge, .fact, .feature, nav a, .btn, .chip, .slogan, .tags li{
  transition:background-color .45s ease, color .45s ease, border-color .45s ease;
}

/* Accueil */
.hero{
  background:linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow:var(--shadow-card); padding:32px 28px; display:grid; gap:16px;
}
.chip{
  justify-self:start; display:inline-flex; align-items:center; gap:7px;
  font-size:12px; font-weight:700; padding:6px 11px; border-radius:999px;
  background:var(--surface); border:1px solid var(--line); color:var(--text-soft);
}
.mini-flag{display:inline-flex; width:15px; height:10px; border-radius:2px; overflow:hidden; box-shadow:0 0 0 1px var(--line);}
.mini-flag i{flex:1;}
.mini-flag i:nth-child(1){background:#0055A4;} .mini-flag i:nth-child(2){background:#fff;} .mini-flag i:nth-child(3){background:#EF4135;}
.hello{margin:0; font-size:15px; font-weight:700; color:var(--text-soft);}
h1{font-size:clamp(31px, 7.2vw, 46px); line-height:1.06; font-weight:900; letter-spacing:-0.04em; margin:0; text-wrap:balance;}
h1 .soft{color:var(--text-faint);}
.lead{margin:0; color:var(--text-soft); font-size:16.5px; max-width:50ch;}
.cta{display:flex; gap:8px; flex-wrap:wrap; margin-top:2px;}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; text-decoration:none;
  font:700 14px/1 var(--font); padding:13px 18px; border-radius:999px;
  border:1px solid var(--line); background:var(--surface); color:var(--text); cursor:pointer;
}
.btn.primary{background:var(--accent); border-color:var(--accent); color:var(--on-accent);}
.btn:hover{filter:brightness(1.06);}
.btn:active{transform:scale(0.97);}
.btn svg{width:16px; height:16px;}

/* Titres de section */
.sec-title{display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin:26px 4px 0;}
h2{font-size:19px; font-weight:900; letter-spacing:-0.025em; margin:0;}
.sec-title span{font-size:12.5px; font-weight:700; color:var(--text-faint);}

/* Projets */
.project{display:grid; gap:16px;}
.project-head{display:flex; align-items:center; gap:14px;}
.app-logo{width:56px; height:56px; flex-shrink:0; display:block; object-fit:contain; user-select:none; -webkit-user-drag:none;}
.logo-d{display:none;}
:root[data-theme="dark"] .logo-l{display:none;}
:root[data-theme="dark"] .logo-d{display:block;}
.icon{
  width:56px; height:56px; flex-shrink:0; border-radius:16px;
  display:grid; place-items:center; background:var(--surface-2); color:var(--text);
}
.icon svg{width:26px; height:26px;}
.project-head h3{font-size:21px; font-weight:900; letter-spacing:-0.03em; margin:0;}
.project-head .sub{font-size:13px; font-weight:600; color:var(--text-faint);}
.project-head .status{margin-left:auto; align-self:flex-start;}
.status{
  display:inline-flex; align-items:center; gap:6px; white-space:nowrap;
  font-size:11.5px; font-weight:800; padding:6px 10px; border-radius:999px;
}
.status::before{content:""; width:6px; height:6px; border-radius:50%; background:currentColor;}
.status.live{color:var(--ok); background:var(--ok-soft);}
.status.live::before{animation:pulse 2s ease-in-out infinite;}
@keyframes pulse{0%,100%{opacity:1;} 50%{opacity:.35;}}
.status.wip{color:var(--wip); background:var(--wip-soft);}
.slogan{
  margin:0; font-size:14px; font-weight:800; letter-spacing:-0.01em; padding:12px 14px; border-radius:var(--radius-sm);
  background:var(--surface-2); color:var(--text);
}
.project p{margin:0; color:var(--text-soft);}
.features{display:grid; grid-template-columns:1fr 1fr; gap:8px; list-style:none; margin:0; padding:0;}
.feature{display:flex; gap:10px; align-items:flex-start; padding:12px; border-radius:var(--radius-sm); border:1px solid var(--line);}
.feature svg{width:18px; height:18px; flex-shrink:0; margin-top:2px; color:var(--text);}
.feature b{display:block; font-size:13.5px; font-weight:800; color:var(--text);}
.feature span{display:block; font-size:12.5px; color:var(--text-soft); line-height:1.45;}
.tags{display:flex; flex-wrap:wrap; gap:6px; list-style:none; margin:0; padding:0;}
.tags li{font-size:12px; font-weight:700; padding:5px 10px; border-radius:999px; border:1px solid var(--line); color:var(--text-soft);}
.project-foot{display:flex;}
.project-foot .btn{width:100%; padding:16px 18px; font-size:15px;}
.project-foot small{font-size:12.5px; font-weight:600; color:var(--text-faint);}

/* Engagements */
.pledges{display:grid; grid-template-columns:1fr 1fr; gap:var(--gap);}
.pledge{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-md);
  box-shadow:var(--shadow); padding:18px;
}
.pledge .k{display:inline-grid; place-items:center; width:34px; height:34px; border-radius:11px; background:var(--surface-2); color:var(--text);}
.pledge .k svg{width:18px; height:18px;}
.pledge h3{font-size:16px; font-weight:900; margin:12px 0 4px; letter-spacing:-0.015em;}
.flag-k .mini-flag{width:20px; height:14px; border-radius:3px;}
.pledge p{margin:0; font-size:13.5px; color:var(--text-soft); line-height:1.5;}

/* À propos */
.about p{margin:0 0 12px; color:var(--text-soft); max-width:60ch;}
.about p.first{color:var(--text); font-size:16.5px; font-weight:600;}
.facts{display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; margin:6px 0 0;}
.fact{background:var(--surface-2); border-radius:var(--radius-sm); padding:12px 14px;}
.fact dt{font-size:11px; font-weight:800; color:var(--text-faint); text-transform:uppercase; letter-spacing:0.05em;}
.fact dd{margin:4px 0 0; font-size:15px; font-weight:900; letter-spacing:-0.01em;}

/* Contact */
.contact{background:var(--accent); color:var(--on-accent); border-color:var(--accent); box-shadow:var(--shadow-card); display:grid; gap:12px; padding:28px;}
.contact h2{font-size:24px; letter-spacing:-0.03em;}
.contact p{margin:0; opacity:0.72; max-width:46ch;}
.mail-row{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:4px;}
.contact .mail{font-weight:800; font-size:16px; text-decoration:none; word-break:break-all;}
.contact .btn{background:var(--on-accent); color:var(--accent); border-color:var(--on-accent); padding:10px 14px; font-size:13px;}

footer{display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-top:22px; padding:0 4px; font-size:12.5px; font-weight:600; color:var(--text-faint);}
footer .made{display:inline-flex; align-items:center; gap:7px;}


/* Citation À propos */
.motto{
  margin:4px 0 16px; padding:14px 16px; border-left:3px solid var(--dot); border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  background:var(--surface-2); color:var(--text); font-weight:800; font-size:15.5px; line-height:1.45; letter-spacing:-0.01em;
}

/* Page contact */
main[hidden]{display:none !important;}
.back{
  justify-self:start; display:inline-flex; align-items:center; gap:4px; text-decoration:none;
  font-size:13.5px; font-weight:700; color:var(--text-soft); padding:6px 10px 6px 4px; border-radius:999px;
}
.back:hover{color:var(--text); background:var(--surface-2);}
.back svg{width:18px; height:18px;}
.form{display:grid; gap:18px;}
.form[hidden]{display:none;}
.row2{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
.field{display:grid; gap:7px; margin:0; padding:0; border:0; min-width:0;}
.field label, .field legend{font-size:13px; font-weight:800; color:var(--text); padding:0;}
.field legend{margin-bottom:7px;}
input[type="text"], input[type="email"], select, textarea{
  width:100%; font:500 16px/1.4 var(--font); color:var(--text);
  background:var(--surface-2); border:1.5px solid transparent; border-radius:var(--radius-sm);
  padding:13px 14px; outline:none; transition:border-color .2s ease, background-color .45s ease, color .45s ease;
  -webkit-appearance:none; appearance:none;
}
select{
  background-image:linear-gradient(45deg, transparent 50%, var(--text-faint) 50%), linear-gradient(135deg, var(--text-faint) 50%, transparent 50%);
  background-position:calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size:5px 5px; background-repeat:no-repeat; padding-right:38px;
}
textarea{resize:vertical; min-height:140px;}
input::placeholder, textarea::placeholder{color:var(--text-faint);}
input:focus, select:focus, textarea:focus{border-color:var(--dot); background:var(--surface);}
.invalid{border-color:var(--expense) !important;}
.choices{display:flex; flex-wrap:wrap; gap:8px;}
.choice{position:relative; cursor:pointer;}
.choice input{position:absolute; opacity:0; pointer-events:none;}
.choice span{
  display:inline-block; font-size:13.5px; font-weight:700; padding:9px 15px; border-radius:999px;
  border:1.5px solid var(--line); color:var(--text-soft); transition:all .2s ease;
}
.choice input:checked + span{background:var(--accent); border-color:var(--accent); color:var(--on-accent);}
.choice input:focus-visible + span{outline:2px solid var(--dot); outline-offset:2px;}
.hint{font-size:12px; font-weight:600; color:var(--text-faint); text-align:right;}
.form-error{margin:0; font-size:13.5px; font-weight:700; color:var(--expense);}
.submit{width:100%; padding:16px 18px; font-size:15px;}
.privacy{margin:-6px 0 0; font-size:12.5px; color:var(--text-faint); text-align:center;}
.done{display:grid; gap:12px; justify-items:start;}
.done[hidden]{display:none;}
.done-icon{width:52px; height:52px; border-radius:16px; display:grid; place-items:center; background:var(--ok-soft); color:var(--ok);}
.done-icon svg{width:26px; height:26px;}
.done h2{font-size:22px;}
.done p{margin:0; color:var(--text-soft);}
.addr{color:var(--text); word-break:break-all;}
@media (max-width:520px){ .row2{grid-template-columns:1fr;} }

@media (max-width:520px){
  .wrap{padding:18px 16px 44px;}
  .hero{padding:26px 20px;}
  .card{padding:20px;}
  .contact{padding:22px;}
  .brand{font-size:17px;}
  nav a{font-size:12px; padding:7px 6px;}
  .theme-toggle svg{width:19px; height:19px;}
  .top-right .theme-toggle{width:32px; height:32px;}
  .top-right{padding:3px 3px 3px 4px;}
  .theme-toggle svg{width:20px; height:20px;}
  .features{grid-template-columns:1fr;}
  .facts{grid-template-columns:1fr 1fr;}
  .facts .fact:last-child{grid-column:1 / -1;}
  .project-head .status{order:3;}
  .project-head{flex-wrap:wrap;}
}


/* Aperçu À propos (accueil) */
.avatar{
  position:relative; display:inline-grid; place-items:center; flex-shrink:0;
  width:52px; height:52px; border-radius:16px; background:var(--accent); color:var(--on-accent);
  font-size:24px; font-weight:900; letter-spacing:-0.04em; transition:background-color .45s ease, color .45s ease;
}
.avatar .dot{position:absolute; right:9px; bottom:12px; width:6px; height:6px; border-radius:2px; background:var(--dot);}
.avatar.big{width:76px; height:76px; border-radius:22px; font-size:36px;}
.avatar.big .dot{width:8px; height:8px; right:13px; bottom:17px;}
.avatar.small{width:30px; height:30px; border-radius:9px; font-size:14px;}
.avatar.small .dot{width:4px; height:4px; right:5px; bottom:7px; border-radius:1px;}
.about-teaser{display:flex; align-items:center; gap:16px; text-decoration:none; color:var(--text); transition:transform .25s ease, box-shadow .25s ease, background-color .45s ease, border-color .45s ease;}
.about-teaser:hover{transform:translateY(-2px); box-shadow:var(--shadow-card);}
.teaser-text{display:grid; gap:3px; flex:1; min-width:0;}
.teaser-text b{font-size:17px; font-weight:900; letter-spacing:-0.02em;}
.teaser-text span{font-size:14px; color:var(--text-soft); line-height:1.5;}
.teaser-go{display:inline-flex; align-items:center; gap:6px; white-space:nowrap; font-size:13.5px; font-weight:800;}
.teaser-go svg{width:17px; height:17px; transition:transform .25s ease;}
.about-teaser:hover .teaser-go svg{transform:translateX(3px);}

/* Page À propos */
.about-hero{gap:18px;}
.about-id{display:flex; align-items:center; gap:14px;}
.about-intro{margin:0; font-size:19px; font-weight:600; line-height:1.5; color:var(--text); max-width:44ch; text-wrap:pretty;}
.about-facts{display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:6px 0 0;}
.about-facts div{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); padding:12px 14px; transition:background-color .45s ease, border-color .45s ease;}
.about-facts dt{font-size:11px; font-weight:800; color:var(--text-faint); text-transform:uppercase; letter-spacing:0.05em;}
.about-facts dd{margin:4px 0 0; font-size:15px; font-weight:900; letter-spacing:-0.01em;}

.story{list-style:none; margin:0; padding:0; display:grid; gap:var(--gap); position:relative;}
.step{display:flex; gap:18px; align-items:flex-start;}
.step-num{
  flex-shrink:0; width:40px; height:40px; border-radius:13px; display:grid; place-items:center;
  background:var(--accent); color:var(--on-accent); font-size:16px; font-weight:900;
  transition:background-color .45s ease, color .45s ease;
}
.step-body{display:grid; gap:10px; min-width:0;}
.step-label{font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:0.06em; color:var(--dot);}
.step h3{margin:0; font-size:20px; font-weight:900; letter-spacing:-0.025em;}
.step p{margin:0; color:var(--text-soft);}
.pains, .gains, .nos{display:flex; flex-wrap:wrap; gap:6px; list-style:none; margin:2px 0 0; padding:0;}
.pains li{
  font-size:12.5px; font-weight:700; padding:6px 11px; border-radius:999px;
  color:var(--expense); background:color-mix(in srgb, var(--expense) 10%, transparent);
}
.pains li::before{content:"✕ "; font-weight:900;}
.gains li{font-size:13px; padding:7px 13px; border-radius:999px; background:var(--accent); color:var(--on-accent); transition:background-color .45s ease, color .45s ease;}
.nos li{font-size:12.5px; font-weight:700; padding:6px 11px; border-radius:999px; color:var(--ok); background:var(--ok-soft);}
.nos li::before{content:"✓ ";}
.big-question{font-size:clamp(22px, 5vw, 30px) !important; line-height:1.2; font-weight:900; letter-spacing:-0.03em; color:var(--text) !important; text-wrap:balance;}

.motto-card{
  margin:0; display:grid; gap:16px; padding:32px 28px;
  background:var(--accent); color:var(--on-accent); border-color:var(--accent); box-shadow:var(--shadow-card);
}
.quote-mark{width:34px; height:26px; color:var(--dot);}
.motto-card blockquote{margin:0; font-size:clamp(22px, 5vw, 32px); line-height:1.2; font-weight:900; letter-spacing:-0.03em; text-wrap:balance;}
.motto-card figcaption{display:flex; align-items:center; gap:10px; font-size:14px; font-weight:800; opacity:.85;}
.motto-card .avatar{background:var(--on-accent); color:var(--accent);}
.about-cta{display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin-top:8px;}

@media (max-width:520px){
  .about-teaser{flex-wrap:wrap;}
  .teaser-go{width:100%; justify-content:flex-end;}
  .about-facts{grid-template-columns:1fr 1fr;}
  .step{gap:14px;}
  .about-intro{font-size:17px;}
}
@media (min-width:960px){
  .about-teaser{padding:28px 32px; gap:22px;}
  .about-teaser .avatar{width:64px; height:64px; border-radius:20px; font-size:30px;}
  .teaser-text b{font-size:21px;}
  .teaser-text span{font-size:15.5px;}
  .hero.about-hero{padding:56px; grid-template-columns:1.3fr 1fr; grid-template-rows:auto auto 1fr; column-gap:48px; row-gap:20px; align-items:start;}
  .about-hero .about-id, .about-hero h1, .about-hero .about-intro{grid-column:1;}
  .about-hero .about-facts{grid-column:2; grid-row:1 / span 3; align-self:center; grid-template-columns:1fr 1fr; gap:var(--gap); margin:0;}
  .about-hero .about-facts div{padding:20px 22px;}
  .about-hero .about-facts dd{font-size:19px;}
  .story{grid-template-columns:1fr 1fr;}
  .story .step:first-child{grid-column:1 / -1;}
  .story .step:nth-child(2){align-items:center;}
  .step-body p{max-width:70ch;}
  .about-hero h1{font-size:64px;}
  .about-intro{font-size:23px;}
  .step{padding:34px 36px; gap:26px;}
  .step-num{width:44px; height:44px; font-size:18px;}
  .step h3{font-size:24px;}
  .step p{font-size:16.5px; max-width:62ch;}
  .motto-card{padding:56px;}
}


/* Grille des projets (téléphone) */
.projects-grid{display:grid; gap:var(--gap);}
.contact-layout{display:grid; gap:var(--gap); align-items:start;}

/* Carte « bientôt » */
.project.soon{
  background:transparent; box-shadow:none; border:2px dashed var(--line);
  align-content:center; justify-items:center; text-align:center; gap:12px; min-height:220px;
}
.soon-icon{width:56px; height:56px; border-radius:16px; display:grid; place-items:center; background:var(--surface-2); color:var(--text-soft); transition:background-color .45s ease;}
.soon-icon svg{width:26px; height:26px;}
.project.soon h3{margin:0; font-size:20px; font-weight:900; letter-spacing:-0.025em; text-wrap:balance;}
.project.soon p{max-width:34ch;}


/* Pastille nuage tricolore */
.chip.cloud{
  position:relative; overflow:hidden; isolation:isolate;
  padding:8px 16px; border:1px solid rgba(255,255,255,.7);
  background:#FFFFFF; color:#1A1A1A; font-weight:800;
  box-shadow:0 4px 14px rgba(0,85,164,.12), 0 4px 14px rgba(239,65,53,.10);
}
.chip.cloud::before, .chip.cloud::after{
  content:""; position:absolute; z-index:-1; pointer-events:none; filter:blur(10px);
}
.chip.cloud::before{
  inset:-80% -30%;
  background:
    radial-gradient(30% 60% at 12% 55%, rgba(0,85,164,.75), transparent 70%),
    radial-gradient(22% 45% at 28% 25%, rgba(70,130,220,.45), transparent 70%),
    radial-gradient(28% 70% at 50% 50%, rgba(255,255,255,1), transparent 72%),
    radial-gradient(22% 45% at 72% 75%, rgba(255,120,110,.45), transparent 70%),
    radial-gradient(30% 60% at 88% 45%, rgba(239,65,53,.75), transparent 70%);
  animation:cloudDrift 9s ease-in-out infinite alternate;
}
.chip.cloud::after{
  inset:-60% -10%;
  background:
    radial-gradient(18% 50% at 38% 70%, rgba(255,255,255,.9), transparent 70%),
    radial-gradient(18% 50% at 62% 30%, rgba(255,255,255,.9), transparent 70%);
  animation:cloudDrift 7s ease-in-out infinite alternate-reverse;
}
@keyframes cloudDrift{
  0%{transform:translateX(-6%) translateY(2%) scale(1);}
  50%{transform:translateX(3%) translateY(-3%) scale(1.06);}
  100%{transform:translateX(6%) translateY(2%) scale(1);}
}
:root[data-theme="dark"] .chip.cloud{background:#211E19; color:#F5F0E6; border-color:rgba(255,255,255,.12); box-shadow:none;}
:root[data-theme="dark"] .chip.cloud::before{
  background:
    radial-gradient(30% 60% at 12% 55%, rgba(40,110,220,.75), transparent 70%),
    radial-gradient(22% 45% at 28% 25%, rgba(70,130,220,.4), transparent 70%),
    radial-gradient(28% 70% at 50% 50%, rgba(255,255,255,.22), transparent 72%),
    radial-gradient(22% 45% at 72% 75%, rgba(255,120,110,.4), transparent 70%),
    radial-gradient(30% 60% at 88% 45%, rgba(239,65,53,.7), transparent 70%);
}
:root[data-theme="dark"] .chip.cloud::after{
  background:
    radial-gradient(18% 50% at 38% 70%, rgba(255,255,255,.12), transparent 70%),
    radial-gradient(18% 50% at 62% 30%, rgba(255,255,255,.12), transparent 70%);
}

/* Éléments réservés à l'ordinateur */
.hero-visual{display:none;}
.hero-text{display:grid; gap:16px;}

/* ===== Version ordinateur ===== */
@media (min-width:960px){
  body{font-size:16px;}
  .wrap{max-width:1140px; padding:30px 40px 72px;}
  :root{--gap:18px;}
  main{gap:var(--gap);}
  .topbar{margin-bottom:30px;}
  .brand{font-size:22px;}
  nav{gap:4px;}
  nav a{font-size:14.5px; padding:9px 15px;}
  .top-right{padding:5px 5px 5px 8px;}
  .top-right .theme-toggle{width:40px; height:40px; margin-left:4px;}

  .hero{grid-template-columns:1.25fr 1fr; gap:48px; align-items:center; padding:56px 56px;}
  .hero-text{gap:20px;}
  h1{font-size:56px;}
  .lead{font-size:18px;}
  .btn{padding:15px 22px; font-size:15px;}
  .hero-visual{display:block;}
  .showcase{
    position:relative; display:grid; justify-items:center; gap:10px; text-align:center;
    background:var(--surface); border:1px solid var(--line); border-radius:30px; padding:26px 26px 22px;
    box-shadow:var(--shadow-card); transform:rotate(2deg); transition:transform .5s ease, background-color .45s ease, border-color .45s ease;
  }
  .showcase:hover{transform:rotate(0deg) translateY(-4px);}
  .showcase-top{width:100%; display:flex; justify-content:space-between; align-items:center;}
  .showcase-url{font-size:12px; font-weight:700; color:var(--text-faint);}
  .showcase-logo{width:120px; height:120px; object-fit:contain; margin-top:6px;}
  .showcase-name{font-size:26px; font-weight:900; letter-spacing:-0.035em;}
  .showcase-slogan{font-size:13.5px; font-weight:700; color:var(--text-soft); line-height:1.45;}
  .showcase-stats{width:100%; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:8px;}
  .showcase-stats div{background:var(--surface-2); border-radius:var(--radius-sm); padding:10px 6px; transition:background-color .45s ease;}
  .showcase-stats b{display:block; font-size:18px; font-weight:900; letter-spacing:-0.02em;}
  .showcase-stats span{display:block; font-size:11.5px; font-weight:700; color:var(--text-faint);}

  .sec-title{margin:44px 4px 2px;}
  h2{font-size:24px;}
  .sec-title span{font-size:13.5px;}

  .projects-grid{grid-template-columns:1.55fr 1fr; align-items:stretch;}
  .card{padding:30px;}
  .project{align-content:start;}
  .project-head h3{font-size:23px; white-space:nowrap;}
  .project-head{flex-wrap:wrap; row-gap:10px;}

  .pledges{grid-template-columns:repeat(3,1fr);}
  .pledge{padding:24px;}
  .pledge h3{font-size:17px;}
  .pledge p{font-size:14.5px;}

  .about{display:grid; grid-template-columns:1.7fr 1fr; gap:40px; align-items:start; padding:40px;}
  .about p{font-size:16px;}
  .about p.first{font-size:19px;}
  .about .facts{grid-template-columns:1fr; gap:10px; margin:0; position:sticky; top:24px;}
  .about .facts .fact{padding:18px 20px;}
  .about .facts dd{font-size:18px;}

  .contact{grid-template-columns:1fr auto; align-items:center; column-gap:40px; padding:40px;}
  .contact h2{font-size:28px;}
  .contact .btn{grid-column:2; grid-row:1 / span 2; padding:16px 24px; font-size:15px;}

  /* Page contact */
  .contact-layout{grid-template-columns:1fr 1.25fr;}
  .contact-layout .intro{position:sticky; top:24px; padding:40px; grid-template-columns:1fr; gap:18px;}
  .contact-layout .intro h1{font-size:46px;}
  .form{padding:36px; gap:22px;}
  .done{padding:40px;}

  footer{margin-top:40px; font-size:13.5px;}
}

/* ===== Tablette / petite fenêtre ===== */
@media (min-width:760px) and (max-width:959px){
  .wrap{max-width:920px; padding:26px 28px 60px;}
  .projects-grid{grid-template-columns:1.4fr 1fr; align-items:stretch;}
  .pledges{grid-template-columns:repeat(3,1fr);}
  .contact{grid-template-columns:1fr auto; align-items:center; column-gap:28px;}
  .contact .btn{grid-column:2; grid-row:1 / span 2; width:auto;}
  .about-facts{grid-template-columns:repeat(4,1fr);}
}
@media (min-width:960px) and (max-width:1100px){
  .hero{padding:44px 40px; gap:32px;}
  h1{font-size:48px;}
}

@media (max-width:360px){ .pledges{grid-template-columns:1fr;} nav a{font-size:12px; padding:6px 5px;} .brand{font-size:15px;} }
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *, *::before, *::after{transition:none !important; animation:none !important;}
}
