:root{
  --bg: #f9fafb;
  --card: #e8f8ff;    /* bleu ciel léger */
  --primary: #0ea5e9; /* bleu principal */
  --deep: #0369a1;
  --accent: #22c55e;
  --gold: #facc15;
  --max-w: 1200px;
  --soft-shadow: 0 8px 18px rgba(2,6,23,0.03);
  --rounded: 12px;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{width:100%;overflow-x:hidden;font-family:'Inter','Poppins',sans-serif;background:var(--bg);color:#222;line-height:1.45;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}

a{color:inherit}

/* ========== HEADER ========== */
header{
  position:fixed;top:0;left:0;width:100%;
  background:rgba(255,255,255,0.95);backdrop-filter: blur(4px);
  padding:1.1rem 1.25rem;
  box-shadow:0 3px 10px rgba(0,0,0,.06);z-index:80;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  transition:background .25s ease, box-shadow .25s ease, padding .25s ease;
}
header.scrolled{
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  padding:0.6rem 1.25rem;
}

.logo{display:flex;align-items:center;gap:.8rem;flex-shrink:0}
.logo img{height:56px;width:auto;display:block}
.logo h1{font-family:'Playfair Display',serif;color:var(--primary);font-size:1.25rem;letter-spacing:0.6px;margin:0}

nav{display:flex;align-items:center;gap:.75rem;position:relative}
.nav-links{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}
nav a{color:#555;text-decoration:none;padding:.35rem .65rem;border-radius:8px;font-weight:600;display:inline-flex;align-items:center;transition:all .18s}
nav a:hover{background:var(--primary);color:#fff}

.nav-toggle{display:none;align-items:center;justify-content:center;width:42px;height:42px;border-radius:10px;border:1px solid rgba(14,165,233,0.35);background:rgba(14,165,233,0.08);cursor:pointer;transition:background .18s ease,border-color .18s ease}
.nav-toggle span,.nav-toggle span::before,.nav-toggle span::after{content:'';display:block;width:22px;height:2px;background:var(--deep);border-radius:2px;transition:transform .2s ease,opacity .2s ease}
.nav-toggle span::before{transform:translateY(-6px)}
.nav-toggle span::after{transform:translateY(6px)}
.nav-toggle:hover{background:rgba(14,165,233,0.18)}

nav.is-open .nav-toggle span{background:transparent}
nav.is-open .nav-toggle span::before{transform:translateY(0) rotate(45deg)}
nav.is-open .nav-toggle span::after{transform:translateY(0) rotate(-45deg)}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.cta {
  background:var(--accent);color:#fff;border:none;padding:.6rem .9rem;border-radius:10px;font-weight:700;cursor:pointer;margin-left:0.6rem;
  box-shadow: 0 6px 18px rgba(34,197,94,0.12);
}
.cta:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(34,197,94,0.14)}

.socials{display:flex;gap:.45rem;align-items:center;margin-left:.5rem}
.socials a{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:8px;color:var(--primary);text-decoration:none;transition:all .15s}
.socials a:hover{background:var(--primary);color:#fff}

main{padding-top:96px;max-width:var(--max-w);margin:0 auto;} /* espace pour header */

.container{max-width:var(--max-w);margin:0 auto;padding:0 1.25rem}

h2.section-title, h3{font-family:'Playfair Display',serif;color:var(--deep);margin-bottom:1rem}
h2.section-title{font-size:2rem}
h3{font-size:1.6rem;text-align:center}

/* ========== HERO ========== */
.hero {
  position:relative;
  width:100%;
  height:80vh;
  max-height:820px;
  overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  background:#eef9ff;
  margin-bottom:2rem;
}
.hero .slides{display:flex;transition:transform .8s ease;height:100%;}
.hero img{width:100%;height:100%;object-fit:cover;flex-shrink:0;display:block}
.hero .hero-message{
  position:absolute;
  z-index:2;
  left:6%;
  bottom:7%;
  max-width:88%;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0.75rem;
  text-align:left;
}
.hero-title{
  font-family:'Playfair Display','DM Serif Display',serif;
  font-weight:600;
  font-size:1.7rem;
  letter-spacing:.3px;
  line-height:1.2;
  color:#fff;
  margin:0 0 12px 0;
  text-shadow:0 3px 10px rgba(0,0,0,.35);
}
.hero-mobile-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--accent);
  color:#fff;
  font-family:'Inter','Poppins',sans-serif;
  font-weight:600;
  font-size:.95rem;
  letter-spacing:.2px;
  text-decoration:none;
  padding:10px 18px;
  border-radius:48px;
  border:none;
  box-shadow:0 6px 18px rgba(34,197,94,0.18);
  transition:transform .18s ease, box-shadow .18s ease;
}
.hero-mobile-cta:hover,
.hero-mobile-cta:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(34,197,94,0.22);
  outline:none;
}
.hero-mobile-cta:focus-visible{
  outline:3px solid rgba(34,197,94,0.35);
  outline-offset:4px;
}
@media(min-width:769px){
  .hero .hero-message{
    left:8%;
    bottom:10%;
    max-width:420px;
  }
  .hero-title{
    font-size:2.5rem;
    margin-bottom:1rem;
  }
}
@media(min-width:1024px){
  .hero .hero-message{
    left:10%;
    bottom:12%;
    max-width:520px;
  }
  .hero-title{
    font-size:clamp(3rem, 3.2vw, 3.4rem);
  }
  .hero-mobile-cta{display:none;}
}

/* ========== ABOUT ========== */
.about{background:linear-gradient(180deg,var(--card), #f4fbff);border-radius:var(--rounded);padding:1.5rem;overflow:hidden;margin:2.5rem 0 2rem;scroll-margin-top:110px}
.about-inner{display:flex;flex-direction:column;gap:1.25rem;align-items:center}
.about img{width:100%;max-width:420px;border-radius:12px;object-fit:cover;display:block;box-shadow:var(--soft-shadow)}
.about .text{max-width:820px;display:flex;flex-direction:column;gap:0.6rem}
.about .text h3{margin:0 0 .25rem 0}
.about .text p{color:#344054;text-align:justify;margin:0}
.about .text>p{margin-bottom:1rem}
.about #bio-more p{margin:0}
.about #bio-more p:not(:last-child){margin-bottom:1rem}
.about .read-row{display:flex;justify-content:flex-start;width:100%;margin-top:0.85rem}
.read-row .read-more-btn{
  background:linear-gradient(135deg, var(--primary), var(--deep));
  border:0;
  color:#fff;
  font-weight:700;
  cursor:pointer;
  padding:0.55rem 1.3rem;
  border-radius:999px;
  box-shadow:0 12px 24px rgba(14,165,233,0.18);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.read-row .read-more-btn:hover,
.read-row .read-more-btn:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 16px 32px rgba(3,105,161,0.26);
  outline:none;
}
.read-row .read-more-btn:focus-visible{
  outline:3px solid rgba(14,165,233,0.35);
  outline-offset:3px;
}
@media(min-width:900px){ .about-inner{flex-direction:row;align-items:flex-start} .about .text{text-align:left} }

/* Animation slide pour biographie */
#bio-more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}
#bio-more.open {
  max-height: 2200px;
}

@media(min-width:768px){
  .about .read-row{display:none}
  #bio-more{max-height:none;overflow:visible}
}

@media(max-width:767px){
  .about .text.collapsed > p:first-of-type{
    display:-webkit-box;
    -webkit-line-clamp:4;
    -webkit-box-orient:vertical;
    overflow:hidden;
    position:relative;
  }

  .about .text.collapsed > p:first-of-type::after{
    content:'';
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:2.1rem;
    background:linear-gradient(180deg, rgba(244,251,255,0), rgba(244,251,255,1));
    pointer-events:none;
  }
}

/* ========== SERVICES ========== */
.services .grid {
  display: grid;
  gap: 1.5rem;
  grid-auto-rows: 1fr;
}

/* 3 colonnes desktop */
@media(min-width: 992px){
  .services .grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 2 colonnes tablettes */
@media(min-width: 768px) and (max-width: 991px){
  .services .grid.grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 colonne mobile */
@media(max-width:767px){
  .services .grid.grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Carreaux */
.service {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: var(--soft-shadow);
  min-height: 340px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.service:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(2,6,23,0.08); }

.service h4 { font-size:1.12rem; text-align:center; color:var(--deep); margin:0.2rem 0 .2rem 0 }
.service p { color:#4b5563; text-align:center; flex: 1 1 auto; padding:0 .5rem }
.service-description-mobile { display:none; }

@media(min-width:992px){
  .service p{
    text-align:left;
    padding:0;
  }
}

@media(max-width:767px){
  .service-description-desktop{display:none;}
  .service-description-mobile{display:block;}
}

/* Mini carrousel */
.service-carousel {
  width: 100%;
  height: 350px; /* plus grand */
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  margin-bottom: 0.6rem;
  background:#f3f7fb;
}

.service-carousel img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.2s ease;
  z-index: 0;
}

.service-carousel img.active {
  opacity: 1;
  z-index: 1;
  transform: scale(1);
}

/* Flèches */
.service-carousel .prev,
.service-carousel .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0.9;
}
.service-carousel .prev { left: 8px; }
.service-carousel .next { right: 8px; }
.service-carousel .prev:hover, .service-carousel .next:hover { background: rgba(0,0,0,0.72); }

/* Dots */
.service-carousel .dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display:flex;gap:8px;z-index:2;
}
.service-carousel .dots span {
  width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,0.6);cursor:pointer;display:block;box-shadow:0 2px 6px rgba(0,0,0,0.08)
}
.service-carousel .dots span.active { background: #fff;transform:scale(1.05) }

/* ========== TEAM & TESTIMONIALS ========== */
.team .grid,.testimonials .grid{display:grid;gap:1rem}
@media(min-width:768px){ .team .grid.grid-3,.testimonials .grid.grid-3{grid-template-columns:repeat(3,1fr)} }
.member,.testimonial{background:var(--card);border-radius:12px;padding:1rem;text-align:center;box-shadow:var(--soft-shadow)}
.member img{width:120px;height:120px;border-radius:50%;object-fit:cover;margin:0 auto .6rem}

.stars{color:var(--gold);margin-bottom:.5rem}

/* ========== CONTACT ========== */
#contact{background:var(--card);border-radius:12px;padding:1.5rem;margin-top:1.25rem}
.contact-info{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:.6rem;align-items:center}
.contact-info address{font-style:normal;display:flex;flex-direction:column;gap:0.5rem}
.contact-info p{display:grid;grid-template-columns:100px 1fr;text-align:left;gap:0.5rem;align-items:start}
.contact-info a{color:var(--primary);text-decoration:none;font-weight:600}
.contact-info a:hover{text-decoration:underline}

/* ========== FOOTER ========== */
footer{background:var(--deep);color:#fff;text-align:center;padding:1.25rem;margin-top:1.25rem;border-radius:6px}

@media(max-width:768px){
  header{padding:0.9rem 1rem}
  nav{width:100%;justify-content:flex-end}
  .nav-toggle{display:inline-flex}
  .nav-links{position:absolute;top:calc(100% + .75rem);right:0;left:auto;background:#fff;border-radius:16px;padding:1.1rem;display:none;flex-direction:column;align-items:stretch;gap:0.75rem;box-shadow:0 24px 50px rgba(15,23,42,0.16);width:min(320px,calc(100vw - 2.5rem));z-index:120}
  nav.is-open .nav-links{display:flex}
  .nav-links a{width:100%;justify-content:flex-start;font-size:0.95rem}
  .nav-links .cta{width:100%;margin-left:0;text-align:center}
  .socials{justify-content:flex-start;margin-left:0}
  .socials a{width:32px;height:32px}

  .hero{height:70vh;max-height:none}
  .hero .slides{height:100%}
  .hero .overlay{padding:0 1.25rem 1.25rem}
  .hero .hero-message{bottom:15%;left:10%;max-width:min(520px,70%);transform:none;text-align:left;}

  .services .grid{gap:1.25rem}
  .service{min-height:auto;padding:1.1rem}
  .service-carousel{height:320px}
  .team .grid,.testimonials .grid{grid-template-columns:1fr;gap:1.1rem}
  .testimonial,.member{text-align:left;padding:1.1rem}
  .testimonial p,.member p{text-align:left}
  .testimonials{display:none}

  #contact{padding:1.25rem}
  #contact iframe{height:260px}
  .contact-info{align-items:center;text-align:left}
  .contact-info p{display:grid;grid-template-columns:90px 1fr;column-gap:0.4rem}
  .contact-info p strong{white-space:nowrap}
}

@media(max-width:520px){
  .logo img{height:48px}
  .logo h1{font-size:1rem}
  .hero{height:65vh}
  .hero .overlay{padding:0 1rem 1rem}
  .hero .hero-message{bottom:15%;left:10%;max-width:min(520px,80%);}
  .service-carousel{height:300px}
  .services .grid{gap:1rem}
  #contact iframe{height:220px}
}
