:root{
  --sidebar:#0f172a;
  --sidebar-muted:#9ca3af;
  --text:#0b0d10;
  --muted:#6b7280;
  --blue:#1f7ccb;
  --blue-deep:#0f63b5;
  --blue-light:#d9ebf9;
  --bg1:#f9fbff;
  --bg2:#e3f0fb;
  --card:#ffffff;
  --line:#dde5f0;
  --radius:18px;
  --maxw:960px;
}

/* GLOBAL */

*{box-sizing:border-box}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 900px at 10% 0%, #ffffff 0%, transparent 55%),
    radial-gradient(1200px 900px at 90% 0%, #eef4ff 0%, transparent 60%),
    linear-gradient(180deg,var(--bg1),var(--bg2));
  background-attachment:fixed;
  line-height:1.6;
}

a{color:inherit;text-decoration:none}
a:hover{color:var(--blue-deep)}

.page{
  display:grid;
  grid-template-columns:230px 1fr;
  min-height:100vh;
}

/* SIDEBAR / TOP BAR */

.sidebar{
  background:var(--sidebar);
  color:#e5e7eb;
  padding:24px 18px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.logo{
  font-weight:800;
  letter-spacing:0.5px;
  font-size:20px;
  display:flex;
  align-items:center;
  gap:8px;
}

.logo-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:var(--blue);
}

.nav{
  margin-top:24px;
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:14px;
}

.nav a{
  padding:9px 10px;
  border-radius:10px;
  color:#e5e7eb;
  background:transparent;
  transition:background 0.2s ease,color 0.2s ease;
}

.nav a.active{
  background:linear-gradient(135deg,var(--blue),var(--blue-deep));
  color:#f9fafb;
}

.nav a:hover{
  background:var(--blue-deep);
  color:#f9fafb;
}

.sidebar-footer{
  margin-top:auto;
  font-size:12px;
  color:var(--sidebar-muted);
}

/* MAIN */

main{padding:40px 32px 48px;}
.container{max-width:var(--maxw);margin:0 auto;}

h1{
  font-size:28px;
  margin:0 0 4px;
  letter-spacing:-0.2px;
}

h2{
  font-size:20px;
  margin:0 0 6px;
}

p{
  margin:0 0 10px;
  color:var(--muted);
}

/* HERO (home) */

.hero{
  display:grid;
  grid-template-columns:1.3fr 0.7fr;
  gap:28px;
  align-items:center;
}

.meta-row{
  display:flex;
  gap:32px;
  flex-wrap:wrap;
  font-size:14px;
  color:var(--muted);
  margin-top:8px;
}

.meta-label{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0.09em;
  color:#9ca3af;
  margin-bottom:2px;
}

.tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:24px;
}

.tag{
  font-size:12px;
  padding:4px 9px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--blue-light);
  color:#0f172a;
  font-weight:600;
}

/* Portrait logo */

.portrait{
  width:230px;
  height:230px;
  border-radius:999px;
  border:6px solid #ffffff;
  background:#e5e7eb;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  box-shadow:0 14px 35px rgba(15,23,42,0.16);
  margin-left:auto;
  margin-right:auto;
}

.portrait img{
  width:75%;
  height:auto;
  object-fit:contain;
  filter:brightness(0.1);
}

/* CARDS / GRID (services & contact) */

.grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:16px;
}

.card{
  background:var(--card);
  border-radius:var(--radius);
  border:1px solid var(--line);
  padding:16px 18px;
  box-shadow:0 10px 30px rgba(15,23,42,0.06);
}

ul{
  margin:8px 0 0 0;
  padding-left:18px;
  color:var(--muted);
  font-size:14px;
}

.process{
  margin-top:24px;
  background:var(--blue-light);
  border-radius:var(--radius);
  padding:16px 18px;
  border:1px solid var(--line);
  font-size:14px;
}
.process span{font-weight:600;color:var(--blue-deep);}

/* Buttons */

.cta-row{
  margin-top:18px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  font-size:14px;
}

.btn{
  padding:8px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:transparent;
  font-weight:600;
  color:var(--blue-deep);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
  transition:background 0.2s ease,color 0.2s ease,border-color 0.2s ease;
}

.btn.primary{
  background:linear-gradient(135deg,var(--blue),var(--blue-deep));
  border:none;
  color:#f9fafb;
}

.btn:hover{
  background:var(--blue-deep);
  color:#f9fafb;
  border-color:var(--blue-deep);
}

.btn.primary:hover{
  background:var(--blue-deep);
  color:#f9fafb;
}

/* Forms (email page) */

form{margin-top:4px;}

label{
  display:block;
  font-size:13px;
  margin-bottom:4px;
  color:#4b5563;
}

input[type="text"],
textarea{
  width:100%;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--line);
  font-family:inherit;
  font-size:14px;
  color:var(--text);
  background:#ffffff;
  box-sizing:border-box;
}

textarea{
  min-height:140px;
  resize:vertical;
}

.field{margin-bottom:12px;}

.hint{
  font-size:12px;
  color:#9ca3af;
  margin-top:2px;
}

.btn-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

/* Language switch & toggle */

.lang-switch{
  display:flex;
  justify-content:flex-end;
  margin-bottom:10px;
  gap:6px;
}

.lang-btn{
  padding:3px 6px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#ffffffaa;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background 0.2s ease,border-color 0.2s ease;
}

.lang-btn img{
  width:18px;
  height:auto;
  display:block;
}

.lang-btn.active{
  background:linear-gradient(135deg,var(--blue),var(--blue-deep));
  border:0.25pt solid var(--blue-deep);
}

.lang-btn.active img{
  filter:brightness(1.1);
}

/* no visual hover change for language buttons */
.lang-btn:hover{
  background:#ffffffaa;
  border:1px solid var(--line);
}

/* Language visibility */

.t.fr{display:none;}
body.lang-fr .t.en{display:none;}
body.lang-fr .t.fr{display:block;}

/* RESPONSIVE: mobile & small tablets */

@media (max-width:900px){

  .page{
    grid-template-columns:1fr;
    grid-template-rows:auto 1fr;
  }

  .sidebar{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    height:auto;
    padding:12px 16px;
    position:sticky;
    top:0;
    z-index:20;
  }

  .logo{
    font-size:16px;
    line-height:1.2;
  }

  .nav{
    flex-direction:row;
    flex-wrap:wrap;
    margin-top:0;
    gap:8px;
  }

  .nav a{
    padding:6px 12px;
    font-size:14px;
    border-radius:999px;
  }

  .sidebar-footer{
    display:none;
  }

  main{
    padding:20px 16px 32px;
  }

  .hero{
    grid-template-columns:1fr;
    gap:20px;
    text-align:left;
  }

  h1{
    font-size:24px;
  }

  .portrait{
    width:170px;
    height:170px;
    margin-top:8px;
  }

  .grid{
    grid-template-columns:1fr;
  }

  .lang-switch{
    justify-content:flex-start;
    margin-bottom:12px;
  }
}
