:root{
  --bg:#0b0c10;
  --panel:#12141a;
  --text:#e8eaed;
  --muted:#b8b9bd;
  --brand:#4f8cff;
  --brand-ink:#0f1a33;
  --border:#23252c;
  --shadow:0 8px 30px rgba(0,0,0,.25);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;
  color:var(--text); background:linear-gradient(180deg,var(--bg),#0e1117);
}
.container{max-width:1100px; margin-inline:auto; padding:0 20px}
h1,h2,h3{line-height:1.2; margin:0 0 .6rem}
p{margin:.5rem 0 1rem; color:var(--muted)}
ul{margin:.25rem 0 1rem 1rem}
a{color:var(--brand); text-decoration:none}
.btn{
  display:inline-block; padding:.75rem 1rem; border:1px solid var(--border); border-radius:10px; color:var(--text);
  background:transparent; transition:.2s ease; box-shadow:none;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--brand); border-color:var(--brand); color:#fff; box-shadow:var(--shadow)}
.btn-ghost{background:transparent}

.site-header{
  position:sticky; top:0; z-index:1000; border-bottom:1px solid var(--border);
  background:rgba(10,12,16,.6); backdrop-filter:saturate(150%) blur(8px);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; height:64px}
.brand{
  display:flex; align-items:center; gap:.5rem;
  font-weight:700; color:#fff; letter-spacing:.2px;
}
.brand-logo{ height:28px; width:auto; display:block }
.brand-text{ font-weight:700; color:#fff; letter-spacing:.2px }
.site-nav{display:flex; gap:1rem}
.site-nav a{padding:.5rem .25rem; color:var(--text)}
.nav-toggle{display:none; background:none; border:0; width:44px; height:44px}
.burger, .burger:before, .burger:after{
  display:block; width:22px; height:2px; background:#fff; content:""; position:relative; transition:.2s
}
.burger:before{position:absolute; top:-6px}
.burger:after{position:absolute; top:6px}

.hero{padding:80px 0 40px}
.hero h1{font-size:clamp(28px,4vw,44px)}
.hero p{max-width:720px; font-size:1.05rem}
.cta-row{display:flex; gap:.75rem; margin-top:1rem; flex-wrap:wrap}

.services{padding:40px 0}
.services h2, .about h2, .contact h2{font-size:clamp(22px,3vw,28px); margin-bottom:1rem}
.cards{
  display:grid; gap:18px;
  grid-template-columns:repeat(12,1fr);
  align-items: stretch;
}
.card{
  grid-column:span 12;
  padding:20px;
  background:linear-gradient(180deg, #161b24, #0f141c);
  border:1px solid #363c48;
  border-radius:14px;
  display:flex; flex-direction:column;
  box-shadow:0 6px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.02);
}
.card h3{ color:#fff; margin-bottom:.5rem }
.card p, .card ul{ color:#d1d5dc }
.card:hover, .card:focus-within{
  border-color: var(--brand);
  box-shadow:0 10px 32px rgba(0,0,0,.45), 0 0 0 2px rgba(79,140,255,.18) inset;
}
.card h3{margin-bottom:.5rem}
.card ul{color:var(--muted)}
.card .btn{ margin-top:auto; align-self:flex-start; }
.service-logo{
  height:36px; width:auto; display:block;
  margin-bottom:.5rem; opacity:.95;
}
.card .logo-badge {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #e6e9ee; /* gris clair */
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden; /* important pour clipper l'image aux coins arrondis */
}

/* Header des cards (si absent) */
.card .card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

/* Contraindre l'image dans le badge */
.card .logo-badge img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}

.about, .contact{padding:40px 0}
.contact-form{margin-top:.5rem}
.contact-form .grid{display:grid; gap:12px; grid-template-columns:1fr}
label{display:grid; gap:.35rem; font-size:.95rem}
input, textarea{
  width:100%; padding:.75rem .8rem; border-radius:10px; border:1px solid var(--border); background:#0c0f15; color:var(--text)
}
/* Espace entre textarea et le bouton Envoyer */
.contact-form button[type="submit"] { margin-top: .75rem; }
input:focus, textarea:focus{outline:2px solid var(--brand-ink); border-color:var(--brand)}
.form-note{font-size:.9rem}

.site-footer{border-top:1px solid var(--border); padding:24px 0; background:#0a0d13}
.footer-inner{display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap}
.footer-links{display:flex; gap:1rem}

/* Mise en page À propos */
.about .about-content{
  display:grid;
  gap:16px;
  grid-template-columns:1fr;           /* mobile: image au-dessus */
  align-items:center;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:14px;
  padding:16px;
}
.about-portrait {
  width:96px;
  height:96px;
  border-radius:50%;
  object-fit:cover;
  object-position:center 60%; /* Centre horizontal, 60% vertical (plus bas que le centre) */
  border:1px solid var(--border);
  box-shadow:0 0 0 3px rgba(79,140,255,.12);
  margin-top: -12px;
}
.about .about-text p{ margin:0 0 .75rem }
.about .about-text p:last-child{ margin-bottom:0 }

/* Nom dans la section À propos */
.about-name{
  margin:0 0 .25rem;
  font-size:1.1rem;
  font-weight:700;
  color:var(--text);
  letter-spacing:.2px;
}

/* Lien LinkedIn dans À propos */
.about-links{ margin:.25rem 0 .75rem }
.about-link{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.35rem .6rem; border-radius:999px;
  border:1px solid var(--border); color:#e8eaed; text-decoration:none;
  background:linear-gradient(180deg,#1d232f,#141922);
}
.about-link:hover{
  border-color:var(--brand);
  box-shadow:0 0 0 2px rgba(79,140,255,.18) inset;
}

.cookie-manage-link{
  background:none; border:none; color:var(--muted); cursor:pointer; font:inherit; padding:0; text-decoration:underline; font-size:.9rem;
}
.cookie-manage-link:hover{color:var(--text)}

.cookie-banner{
  position:fixed; inset:auto 0 0 0; z-index:500;
  background:#121821ee; backdrop-filter:blur(6px);
  border-top:1px solid #2a3140;
  padding:18px 20px;
  animation:slideUp .45s ease;
  font-size:.9rem;
}
.cookie-banner-inner{max-width:1100px; margin:0 auto}
.cookie-banner h3{margin:0 0 .5rem; font-size:1.05rem}
.cookie-actions{display:flex; flex-wrap:wrap; gap:8px; margin-top:.75rem}

.cookie-modal[hidden]{display:none}
.cookie-modal{
  position:fixed; inset:0; z-index:600; display:grid; place-items:center;
}
.cookie-modal-backdrop{
  position:absolute; inset:0; background:#000a; backdrop-filter:blur(4px);
}
.cookie-modal-panel{
  position:relative; z-index:1;
  width:min(480px,92%);
  background:#161b24;
  border:1px solid #2c3340;
  border-radius:16px;
  padding:28px 26px 26px;
  box-shadow:0 12px 48px -8px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.cookie-modal-panel h3{margin-top:0; font-size:1.15rem}
.cookie-cat{
  display:flex; gap:.65rem; align-items:flex-start;
  margin:.75rem 0; font-size:.9rem; line-height:1.35;
}
.cookie-cat input{margin-top:3px}
.cookie-modal-actions{
  margin-top:1.2rem; display:flex; justify-content:flex-end; gap:.6rem;
}

@keyframes slideUp{
  from{transform:translateY(30px); opacity:0}
  to{transform:translateY(0); opacity:1}
}

@media (min-width:720px){
  .cards .card{grid-column:span 6}
  .contact-form .grid{grid-template-columns:1fr 1fr}
  .about .about-content{ grid-template-columns:auto 1fr; padding:20px; }
  .about-portrait{
    width:120px;
    height:120px;
    object-position:center 18%; /* idem desktop */
  }
}
@media (min-width:1000px){
  .cards .card{grid-column:span 4}
  .hero{padding:110px 0 60px}
}

.copilot-note{
  text-align:center;
  font-size:.95rem;
  color:#bfc7d5;
  margin-top:12px;
}
.copilot-note-accent{
  color:#27ae60;
  font-weight:600;
}