:root{
      --bg1:#f3f6fb;
      --bg2:#eef3ff;
      --card:#ffffff;
      --text:#1f2937;
      --muted:#6b7280;
      --line:#e5e7eb;

      --blue:#1f6fb2;          /* ajuste si besoin */
      --blue-dark:#1a5f99;
      --blue-ink:#0f3a5f;

      --radius:28px;
      --shadow: 0 18px 60px rgba(17,24,39,.10);
      --shadow-soft: 0 10px 30px rgba(17,24,39,.08);

      --container-w: 980px;
    }

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  min-height:100vh;
  font-family: system-ui, sans-serif;
  position: relative;
  overflow-x: hidden;
  background-color: rgba(20,113,180,0.9) /*#1471b4;*/

}

body::before{
  content:"";
  position:fixed;
  inset:-40%;
  z-index:0;
  pointer-events:none;

  /* Bande claire : plus fine + haut convexe + bas concave */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 42 C35 28 70 28 100 42 L100 58 C70 66 35 66 0 58 Z' fill='%2382c4f3'/%3E%3C/svg%3E");

  background-repeat:no-repeat;
  background-position:center;
  background-size:100% 100%;

  transform-origin:center;
  transform: rotate(-35deg) scale(1.3);
  opacity:0.9;
}

.wrap{
  min-height:100%;
  display:grid;
  place-items:center;
  padding: clamp(20px, 4vw, 56px);
  position:relative;
  z-index:1;
}

.card{
  width:min(var(--container-w), 100%);
  background:rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.card-inner{
  padding: clamp(22px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.78));
}

.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin-bottom: 18px;
  text-align:center;
}

.logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--blue);
  text-decoration:none;
}

.logo img {
  max-width: 40%;
}

.building{
  margin: 6px 0 10px;
  text-align:center;
  font-size: clamp(23px, 1.6vw, 46px);
  line-height:1.05;
  letter-spacing: -.03em;
  color: #243041;
  font-weight: 700;
}

h1.subtitle{
  margin: 50px 0 ;
  text-align:center;
  color: var(--blue);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 22px);
}

.lead{
  margin: 50px auto 60px;
  /*max-width: 48ch;*/
  text-align:center;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
}

.cta{
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
  margin-bottom: 50px;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding: 14px 22px;
  border-radius: 14px;
  text-decoration:none;
  font-weight: 600;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-width: min(320px, 100%);
  justify-content:center;
  font-size: 18px;
}

.btn:focus-visible{
  outline: 3px solid rgba(31,111,178,.25);
  outline-offset: 3px;
}

.btn-primary{
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover{
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(17,24,39,.12);
}

.btn-ghost{
  background: rgba(255,255,255,.7);
  color: var(--blue-ink);
  border-color: rgba(31,111,178,.25);
}
.btn-ghost:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(17,24,39,.10);
  background: rgba(255,255,255,.92);
}

.icon{
  width:22px; height:22px;
  flex:0 0 22px;
}

hr{
  border:0;
  border-top: 1px solid rgba(229,231,235,.9);
  /*margin: 10px 0 26px;*/
}

.services{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items:start;
  text-align:center;
  padding-bottom: 8px;
}

.service{
  padding: 10px 10px;
  border-radius: 18px;
  margin: 50px 0;
}

.service-icon{
  width:46px; height:46px;
  margin: 0 auto 10px;
  color: var(--blue);
  opacity:.95;
}

.service-title{
  margin: 0;
  font-weight: 800;
  color: #334155;
  font-size: clamp(16px, 1.7vw, 20px);
}

.footer{
  margin-top: 50px;
  text-align:center;
  color: rgba(107,114,128,.9);
  font-size: 12.5px;
}

.footer hr {
  margin-bottom: clamp(22px, 4vw, 56px);
}

.modal {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.6);
  z-index:9999;
}

.modal-content {
  background:white;
  padding:40px;
  border-radius:8px;
  width:90%;
  max-width:500px;
  position:relative;
}

.close-modal {
  position:absolute;
  top:10px;
  right:10px;
  border:none;
  background:none;
  font-size:20px;
  cursor:pointer;
}

.hp {
  position:absolute;
  left:-9999px;
}

/* ===== Modal overlay ===== */
.modal{
  position:fixed;
  inset:0;
  display:none;              /* passe à flex en JS pour ouvrir */
  align-items:center;
  justify-content:center;
  padding:1.25rem;
  background:rgba(0,0,0,.5); /* proche Bootstrap */
  z-index:1050;
}

/* optionnel: empêcher le scroll du body quand modal ouverte */
body.modal-open{
  overflow:hidden;
}

/* ===== Modal card ===== */
.modal-content{
  position:relative;
  width:100%;
  max-width:540px;
  background:#fff;
  border:1px solid rgba(0,0,0,.175);
  border-radius:.5rem;       /* Bootstrap-ish */
  box-shadow:0 0.5rem 1rem rgba(0,0,0,.15);
  padding:1.25rem 1.25rem 1rem;
}

/* ===== Title ===== */
.modal-content h2{
  margin:0 0 1rem 0;
  font-size:1.25rem;
  font-weight:600;
  line-height:1.2;
}

/* ===== Close button ===== */
.close-modal{
  position:absolute;
  top:.75rem;
  right:.75rem;
  width:2.25rem;
  height:2.25rem;
  border:0;
  border-radius:.375rem;
  background:transparent;
  color:#6c757d;             /* bootstrap secondary */
  font-size:1.25rem;
  line-height:1;
  cursor:pointer;
}

.close-modal:hover{
  background:rgba(108,117,125,.15);
  color:#343a40;
}

.close-modal:focus{
  outline:0;
  box-shadow:0 0 0 .25rem rgba(13,110,253,.25); /* bootstrap primary ring */
}

/* ===== Form layout ===== */
.modal-content form{
  margin:0;
}

.modal-content label{
  display:block;
  margin:.5rem 0 .25rem;
  font-size:.95rem;
  font-weight:500;
  color:#212529;
}

/* Inputs & textarea (form-control style) */
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content textarea{
  width:100%;
  display:block;
  padding:.5rem .75rem;
  font-size:1rem;
  line-height:1.5;
  color:#212529;
  background-color:#fff;
  border:1px solid #ced4da;
  border-radius:.375rem;
  transition:border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

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

.modal-content input::placeholder,
.modal-content textarea::placeholder{
  color:#6c757d;
  opacity:1;
}

/* Focus ring */
.modal-content input:focus,
.modal-content textarea:focus{
  outline:0;
  border-color:#86b7fe;
  box-shadow:0 0 0 .25rem rgba(13,110,253,.25);
}

/* ===== Primary button (btn btn-primary style) ===== */
.modal-content button[type="submit"]{
  margin-top:1rem;
  display:inline-block;
  width:auto;
  padding:.6rem .9rem;
  font-size:1rem;
  font-weight:600;
  line-height:1.5;
  border:1px solid transparent;
  border-radius:.375rem;
  cursor:pointer;
  color:#fff;
  background-color:#0d6efd;   /* bootstrap primary */
  transition:background-color .15s ease-in-out, box-shadow .15s ease-in-out, transform .05s ease-in-out;
}

.modal-content button[type="submit"]:hover{
  background-color:#0b5ed7;
}

.modal-content button[type="submit"]:active{
  transform:translateY(1px);
}

.modal-content button[type="submit"]:focus{
  outline:0;
  box-shadow:0 0 0 .25rem rgba(13,110,253,.25);
}

.modal-content button[type="submit"]:disabled{
  opacity:.65;
  cursor:not-allowed;
}

/* ===== Honeypot hidden (clean) ===== */
.hp{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

/* ===== Small screens ===== */
@media (max-width:480px){
  .modal-content{
    padding:1rem;
    border-radius:.5rem;
  }
}

.alert{
  margin-top:1rem;
  padding:.75rem 1rem;
  border-radius:.375rem;
  border:1px solid transparent;
  font-size:.95rem;
}
.alert-success{ background:#d1e7dd; border-color:#badbcc; color:#0f5132; }
.alert-danger{  background:#f8d7da; border-color:#f5c2c7; color:#842029; }

@media (max-width: 768px){
  body{ background-attachment: scroll; }
  h1 br, .building br { display: none }
  h1.subtitle{margin: 25px 0;}
  .lead{margin: 25px auto;}
  .service{margin: 25px 0;}
}

@media (max-width: 720px){
  .logo-text{ font-size: 34px; }
  .logo-mark{ width:52px; height:52px; }
  .services{ grid-template-columns: 1fr; }
  .btn{ min-width: 100%; }
  .brand{margin-top: 20px;}
}