:root{
  --bg: #f7fbff;
  --bg2:#ffffff;
  --text:#0b1220;
  --muted:#5b667a;

  --brand:#0ea5e9;   /* bleu */
  --brand2:#22c55e;  /* vert */
  --brand3:#6366f1;  /* violet léger */
  --stroke: rgba(15, 23, 42, .10);

  --card: rgba(255,255,255,.86);
  --card2: rgba(255,255,255,.74);

  --shadow: 0 18px 55px rgba(2, 6, 23, .10);
  --shadow2: 0 10px 28px rgba(2, 6, 23, .10);

  --r: 22px;
  --r2: 28px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

body{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 700px at 12% 10%, rgba(14,165,233,.18), transparent 55%),
    radial-gradient(900px 700px at 88% 12%, rgba(34,197,94,.16), transparent 55%),
    radial-gradient(1200px 800px at 50% 95%, rgba(99,102,241,.10), transparent 58%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  background-attachment: fixed;
}

/* Filigrane plume/logo */
body::before{
  content:"";
  position:fixed;
  inset:-10%;
  background:
    url("images/logo.jpg") 55% 24% / 860px no-repeat;
  opacity:.12;
  filter: contrast(120%) brightness(1.12) saturate(1.05);
  pointer-events:none;
  z-index:-1;
}

/* Layout */
.container{
  width:min(1100px, 92vw);
  margin-inline:auto;
}

.section{ padding: 26px 0; }
.section.tight{ padding: 18px 0; }

.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
}
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
}

/* Header */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.72);
  border-bottom:1px solid var(--stroke);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 0;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}

.brand .logoWrap{
  width:66px;
  height:66px;
  border-radius:18px;
  background: rgba(255,255,255,.85);
  border:1px solid var(--stroke);
  box-shadow: var(--shadow2);
  display:grid;
  place-items:center;
  overflow:hidden;
}

.brand img.logoImg{
  width:54px;
  height:54px;
  object-fit:contain;
}

.brand .title{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}
.brand .title b{
  font-size: 18px;
  letter-spacing:.2px;
}
.brand .title span{
  font-size: 13px;
  color: var(--muted);
  margin-top:3px;
}

/* Nav links desktop */
.navlinks{
  display:flex;
  align-items:center;
  gap:10px;
}

.navlinks a{
  padding:10px 12px;
  border-radius: 12px;
  color: rgba(11,18,32,.86);
  font-weight:600;
}
.navlinks a:hover{
  background: rgba(14,165,233,.10);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 16px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow2);
  font-weight:800;
}
.btn:hover{ transform: translateY(-1px); }
.btn.primary{
  border:none;
  background: linear-gradient(90deg, var(--brand3), var(--brand));
  color:white;
}
.btn.success{
  border:none;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  color:white;
}
.btnrow{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

/* Hamburger */
.hamburger{
  display:none;
  width:52px;
  height:52px;
  border-radius:16px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.75);
  box-shadow: var(--shadow2);
  font-size: 22px;
  cursor:pointer;
}

@media (max-width: 860px){
  .hamburger{ display:inline-grid; place-items:center; }
  .navlinks{
    position:absolute;
    right: min(4vw, 18px);
    top: 78px;
    width: min(92vw, 360px);
    display:none;
    flex-direction:column;
    align-items:stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255,255,255,.92);
    border:1px solid var(--stroke);
    box-shadow: var(--shadow);
  }
  .navlinks.show{ display:flex; }
  .navlinks a{ padding: 12px 14px; }
}

/* Cards */
.card{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius: var(--r2);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card.soft{ background: var(--card2); }

.h1{
  font-size: clamp(30px, 4vw, 50px);
  margin: 0 0 10px;
  letter-spacing:-.8px;
}
.lead{
  margin: 0;
  font-size: 18px;
  color: rgba(11,18,32,.80);
  line-height: 1.55;
}
.small{
  color: var(--muted);
  font-size: 14px;
}

.badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 14px;
}
.badge{
  padding:8px 10px;
  border-radius: 999px;
  background: rgba(14,165,233,.10);
  border:1px solid rgba(14,165,233,.18);
  color: rgba(11,18,32,.85);
  font-weight:800;
  font-size: 13px;
}

.notice{
  padding: 14px;
  border-radius: 18px;
  background: rgba(34,197,94,.10);
  border:1px dashed rgba(34,197,94,.25);
  color: rgba(11,18,32,.88);
  line-height:1.5;
}

/* Services cards */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 900px){
  .cards{ grid-template-columns: 1fr; }
}
.service{
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.78);
  border:1px solid var(--stroke);
  box-shadow: var(--shadow2);
}
.service .icon{
  width:44px;
  height:44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(14,165,233,.12);
  border:1px solid rgba(14,165,233,.18);
  font-size: 20px;
  margin-bottom: 10px;
}
.service h3{ margin: 0 0 6px; }
.service p{ margin:0; color: rgba(11,18,32,.75); line-height:1.5; }

/* Split sections */
.split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:16px;
}
@media (max-width: 900px){
  .split{ grid-template-columns: 1fr; }
}

/* Inputs */
input, textarea{
  width:100%;
  border:1px solid rgba(15,23,42,.16);
  border-radius: 14px;
  padding: 12px 12px;
  font-size: 15px;
  background: rgba(255,255,255,.92);
  outline:none;
}
textarea{ min-height: 120px; resize: vertical; }
input:focus, textarea:focus{
  border-color: rgba(14,165,233,.40);
  box-shadow: 0 0 0 4px rgba(14,165,233,.12);
}

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
@media (max-width: 900px){
  .gallery{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .gallery{ grid-template-columns: 1fr; }
}

.gItem{
  border-radius: 20px;
  overflow:hidden;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow2);
}
.gItem img{
  width:100%;
  height: 240px;
  object-fit: cover;
}
@media (max-width: 520px){
  .gItem img{ height: 220px; }
}

/* Footer */
.footer{
  padding: 18px 0;
  border-top:1px solid var(--stroke);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
}

/* Modal logo */
.modal{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:100;
  padding: 18px;
}
.modal.show{ display:flex; }
.modal .modalBox{
  width: min(520px, 92vw);
  background: white;
  border-radius: 22px;
  overflow:hidden;
  box-shadow: 0 22px 70px rgba(0,0,0,.35);
}
.modal .modalBox img{
  width:100%;
  height:auto;
}
.modal .modalBar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 12px 14px;
  border-top:1px solid rgba(0,0,0,.10);
}
.modal .closeBtn{
  border:1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.9);
  padding:10px 12px;
  border-radius: 14px;
  font-weight:900;
  cursor:pointer;
  }
