/* Montserrat SemiBold 600 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2'),
       url('../fonts/Montserrat-SemiBold.woff') format('woff');
  font-display: swap;
}

/* Montserrat Light 300 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/Montserrat-Light.woff2') format('woff2'),
       url('../fonts/Montserrat-Light.woff') format('woff');
  font-display: swap;
}

/* Inter Regular 300 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/Inter-Light.woff2') format('woff2'),
       url('../fonts/Inter-Light.woff') format('woff');
  font-display: swap;
}

/* Inter Regular 600 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2'),
       url('../fonts/Inter-SemiBold.woff') format('woff');
  font-display: swap;
}

:root{
    --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji","Segoe UI Emoji";
    --font-title: Montserrat, var(--font-sans);
    --bg: #0f1724;           /* page dark bg used for dark sections; we will mostly use white layout */
    --surface: #ffffff;      /* white surface */
    --primary: #5b4bff;      /* main purple/blue (adaptable) */
    --accent: #ff2b2b;       /* red accent */
    --muted: #6b7280;
    --glass: rgba(255,255,255,0.06);
    --max-width: 1100px;
    --radius: 12px;
}

/* Reset / base */
*{
    box-sizing:border-box
}
html,body{
    height:100%
}
body{
    margin:0;
    font-family: var(--font-sans);
    color:#0b1220;
    background: linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    line-height:1.5;
}

a{
  color:var(--primary);
  text-decoration:none;
}
img{
  max-width:100%;
  height:auto;
  display:block;
}

/* Container */
.container{
    max-width:var(--max-width);
    margin:0 auto;
}

/* Header */
header{
    position:sticky; top:0; z-index:30;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(11,18,32,0.04);
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.brand svg{
  width:46px;
  height:46px;
}
.brand h1{
  font-family: var(--font-title);
  font-weight:600;
  margin:0;
  font-size:18px;
  color:var(--primary);
}

.cta{
    background:var(--primary);
    color:white;
    padding:10px 14px;
    border-radius:10px;
    font-weight:600;
    border:none;
    cursor:pointer;
    box-shadow: 0 6px 22px rgba(91,75,255,0.16);
    font-size: 1rem; /* Ajouté pour correspondre à 16px */
}
.cta:hover{
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 6px 22px rgba(91,75,255,0.16);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.cta.secondary{
  background:transparent;
  color:var(--primary);
  border:1px solid rgba(91,75,255,0.14);
}
.cta.secondary:hover{
  background: var(--primary);
  color: white;
  box-shadow: 0 6px 22px rgba(91,75,255,0.16);
}

nav {
  padding: 5px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  z-index: 1;
}
nav .logo {
  display: flex;
  align-items: center;
}
nav .logo img {
  height: auto;
  max-width: 200px;
  margin: 10px 10px 10px 0;
}

nav ul {
  font-size: 1.3rem;
  list-style: none;
  display: flex;
  gap: 20px;
  padding-left: 0;
  margin-bottom: 0;
}

nav ul li a {
  text-decoration: none;
  color: #000;
  font-size: 95%;
  font-weight: 400;
  padding: 4px 8px;
  border-radius: 5px;
}

nav ul li a:hover {
  background-color: #f5f5f5;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger .line {
  width: 25px;
  height: 1px;
  background-color: #1f1f1f;
  display: block;
  margin: 7px auto;
  transition: all 0.3s ease-in-out;
}
.hamburger-active {
  transition: all 0.3s ease-in-out;
  transition-delay: 0.6s;
  transform: rotate(45deg);
}

.hamburger-active .line:nth-child(2) {
  width: 0px;
}

.hamburger-active .line:nth-child(1),
.hamburger-active .line:nth-child(3) {
  transition-delay: 0.3s;
}

.hamburger-active .line:nth-child(1) {
  transform: translateY(12px);
}

.hamburger-active .line:nth-child(3) {
  transform: translateY(-5px) rotate(90deg);
}

.menubar {
  position: absolute;
  top: 0;
  left: -60%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 60%;
  height: 100vh;
  padding: 20% 0;
  background: rgba(255, 255, 255);
  transition: all 0.5s ease-in;
  z-index: 2;
}
.active {
  left: 0;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.menubar ul {
  padding: 0;
  list-style: none;
}
.menubar ul li {
  margin-bottom: 32px;
}

.menubar ul li a {
  text-decoration: none;
  color: #000;
  font-size: 95%;
  font-weight: 400;
  padding: 5px 10px;
  border-radius: 5px;
}

.menubar ul li a:hover {
  background-color: #f5f5f5;
}

/* Par défaut, l'image mobile est masquée */
.mobile-image {
  display: none;
}

main{
    padding:0 20px;
}
/* Hero */
.hero{
  padding:52px 0;
}
.hero-grid{
  display:grid;
  grid-template-columns:1fr 420px;
  gap:40px;
  align-items:center;
}
.kicker{
    display:inline-block;
    background:linear-gradient(90deg,var(--primary),#7f6bff);
    color:white;
    padding:6px 10px;
    border-radius:999px;
    font-size: 14px; /* Augmenté de 13px à 14px */
    font-weight:700;
}
h2{
    font-family: var(--font-title);
    font-size: clamp(1.875rem, 4vw, 2.25rem); /* Min passé de 1.8rem (28px) à 1.875rem (30px) */
    margin:18px 0 10px;
    line-height:1.05;
    color:#071029;
}
p.lead{
    color:var(--muted);
    margin:0 0 18px;
    font-size: 16px; /* Ajouté pour garantir une taille minimale */
}

/* Card */
.card{
  background:var(--surface);
  border-radius:16px;
  padding:22px;
  box-shadow: 0 8px 30px rgba(17,24,39,0.06);
  border:1px solid rgba(11,18,32,0.04);
}

.card:hover{
  box-shadow: 0 12px 40px rgba(17,24,39,0.12);
  transform: scale(1.02);
  transition: box-shadow 0.3s ease, transform 0.3s ease; /* Added for smooth transition */
}

.pack-launch {
  border-color: var(--accent);
}

.pack-launch:hover {
  box-shadow: 0 0 0 3px var(--accent);
}

.features{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin-top:14px;
}
.feat{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.icon{
    width:38px;
    height:38px;
    border-radius:10px;
    background:linear-gradient(180deg, rgba(91,75,255,0.12), rgba(91,75,255,0.06));
    display:grid;
    place-items:center;
    color:var(--primary);
    font-weight:700;
    font-size: 1rem; /* Ajouté pour correspondre à 16px */
}

/* Process */
.process{
  padding:36px 0;
}
.step{
  background:linear-gradient(180deg,#fff,#fbfdff);
  padding:18px;
  border-radius:12px;
  border:1px solid rgba(11,18,32,0.04);
}
.step h3{
  margin:6px 0 8px;
}
.step p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

/* Contact */
.contact{
  padding:42px 0;
}
.contact-grid{
  display:grid;
  grid-template-columns:1fr 420px;
  gap:28px;
  align-items:start;
}
form label{
  display:block;
  font-weight:600;
  margin:8px 0 6px;
  font-size:13px;
}
input[type="text"], input[type="email"], textarea{
    width:100%;
    padding:12px 14px;
    border-radius:10px;
    border:1px solid rgba(11,18,32,0.06);
    font-size:15px;
    background:white;
}
textarea{
  min-height:140px;
  resize:vertical;
}
.form-actions{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:12px;
}

/* Footer */
footer{
  padding:28px 0;
  color:var(--muted);
  font-size:14px;
  border-top:1px solid rgba(11,18,32,0.03);
}

/* small interactions */
.smooth-link{
  cursor:pointer;
}
.logo-mark{
  filter: drop-shadow(0 6px 18px rgba(91,75,255,0.12));
}


.notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #4caf50; /* Vert pour succès */
  color: white;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-size: 16px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.notification.error {
  background-color: #f44336; /* Rouge pour erreur */
}

.notification.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -60%);
}

.notification.visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.pourquoi:hover{
  transform: scale(1.05);
  transition: transform 0.3s ease; /* Ajouté pour une transition douce */
}

.optilico-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}

.optilico-footer a{
  vertical-align: middle;
}

/* Responsive */
@media (max-width:980px){
  .contact-grid{
      grid-template-columns:1fr;
  }
}

@media screen and (max-width: 790px) {
.hamburger {
  display: block;
}
nav ul {
  display: none;
}
nav .logo img {
  max-width: 100px;
}

.hero-grid {
  grid-template-columns: 1fr !important; /* Une seule colonne */
  gap: 20px; /* Ajuster l'espacement si nécessaire */
}

.desktop-image {
    display: none;
}
.mobile-image {
    display: block;
}

.optilico-footer{
  justify-content: center;
}
}

@media (max-width:560px){
  h2{
      font-size:28px;
  }
}