/* =======================================================
   VARIABLES + RESET
   ======================================================= */
:root{
  --primary:#00B0DC;
  --primary-dark:#0099C3;
  --primary-light:#33C0E6;
  --dark:#1A1A2E;
  --light:#F8F9FA;
  --gray:#6C757D;
  --accent:#FF6B6B;
}

*{ margin:0; padding:0; box-sizing:border-box; }

img{ max-width:100%; height:auto; display:block; }

body{
  font-family:'Raleway',sans-serif;
  line-height:1.6;
  color:var(--dark);
  background:var(--light);
  overflow-x:hidden;

  /* Header fixed : base pour tout le site */
  padding-top:80px;
}

h1,h2,h3,h4{
  font-family:'Playfair Display',serif;
  font-weight:600;
  margin-bottom:1rem;
}

.container{
  width:90%;
  max-width:1200px;
  margin:0 auto;
  padding:0 15px;
}

section{ scroll-margin-top:100px; }

/* =======================================================
   HEADER + NAV
   ======================================================= */
header{
  position:fixed;
  top:0; left:0;
  width:100%;
  background:rgba(255,255,255,.95);
  box-shadow:0 2px 10px rgba(0,0,0,.1);
  z-index:1000;
  transition:all .3s ease;
}

.header-container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1rem 0;
}

.logo{
  display:flex;
  align-items:center;
  font-size:1.8rem;
  font-weight:600;
  color:var(--primary);
  text-decoration:none;
}
.logo i{ margin-right:10px; font-size:2rem; }

nav ul{
  display:flex;
  list-style:none;
}
nav ul li{ margin-left:2rem; }

nav ul li a{
  text-decoration:none;
  color:var(--dark);
  font-weight:500;
  position:relative;
  transition:color .3s ease;
}
nav ul li a:hover{ color:var(--primary); }

nav ul li a::after{
  content:"";
  position:absolute;
  left:0; bottom:-5px;
  width:0;
  height:2px;
  background:var(--primary);
  transition:width .3s ease;
}
nav ul li a:hover::after{ width:100%; }

.mobile-menu{
  display:none;
  font-size:1.5rem;
  cursor:pointer;
}

@media (max-width:768px){
  nav ul{
    display:none;
    flex-direction:column;
    background:#fff;
    width:100%;
    position:absolute;
    top:70px; left:0;
    padding:1rem 0;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
  }
  nav ul.show{ display:flex; }
  nav ul li{ margin:1rem 0; text-align:center; }
  .mobile-menu{ display:block; }
}

/* =======================================================
   PRE HERO HOOK
   ======================================================= */
.pre-hero-hook{
  background:rgba(0,176,220,.08);
  text-align:center;
  padding:12px 16px;
}
.pre-hero-hook p{
  margin:0;
  font-size:1.1rem;
  font-weight:500;
  color:var(--primary);
}

/* =======================================================
   BUTTONS / CTA
   ======================================================= */
.cta-group{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
  text-align:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 30px;
  border-radius:30px;
  font-weight:600;
  text-decoration:none;
  border:none;
  cursor:pointer;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease;
  background:var(--primary);
  color:#fff;
}

.btn:hover{
  background:var(--primary-dark);
  transform:translateY(-3px);
  box-shadow:0 10px 20px rgba(0,0,0,.1);
}

.btn-primary{ background:var(--primary); }
.btn-primary:hover{ background:var(--primary-dark); }

.btn-secondary{ background:var(--primary-light); }
.btn-secondary:hover{ background:var(--primary); }

.btn-outline{
  background:transparent;
  border:2px solid var(--primary);
  color:var(--primary);
}
.btn-outline:hover{
  background:var(--primary);
  color:#fff;
}

/* =======================================================
   HERO
   ======================================================= */
.hero{
  height:calc(100vh - 80px);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
  position:relative;
  overflow:hidden;
  will-change:transform;
  background:
    linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)),
    url("https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80")
    no-repeat center/cover;
}
.hero-content{ max-width:800px; z-index:1; }
.hero h1{ font-size:3.5rem; margin-bottom:1rem; color:#fff; }
.hero p{ font-size:1.5rem; margin-bottom:2rem; font-weight:300; }

@media (max-width:768px){
  .hero h1{ font-size:2.2rem; }
  .hero p{ font-size:1.1rem; }
}

/* =======================================================
   FLOATING CONTACT BUTTON (optionnel)
   ======================================================= */
.floating-contact-btn{
  position:fixed;
  right:30px; bottom:30px;
  width:60px; height:60px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:#fff;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  box-shadow:0 4px 20px rgba(0,176,220,.3);
  transition:all .4s cubic-bezier(.175,.885,.32,1.275);
  z-index:999;
  overflow:hidden;
  opacity:0;
  transform:translateY(20px);
}
.floating-contact-btn.visible{ opacity:1; transform:translateY(0); }
.floating-contact-btn:hover{
  transform:translateY(-5px) scale(1.05);
  box-shadow:0 8px 30px rgba(0,176,220,.4);
  background:linear-gradient(135deg,var(--primary-dark),var(--primary));
}
.floating-contact-btn i{ font-size:1.5rem; transition:transform .3s ease; }
.floating-contact-btn:hover i{ transform:scale(1.1); }

@media (max-width:768px){
  .floating-contact-btn{
    right:20px; bottom:20px;
    width:55px; height:55px;
  }
  .floating-contact-btn i{ font-size:1.3rem; }
}

/* =======================================================
   CAROUSEL
   ======================================================= */
.carousel-section{ padding:5rem 0; background:#fff; }

.section-title{ text-align:center; margin-bottom:3rem; }
.section-title h2{
  font-size:2.5rem;
  color:var(--dark);
  position:relative;
  display:inline-block;
}
.section-title h2::after{
  content:"";
  position:absolute;
  left:50%; bottom:-10px;
  transform:translateX(-50%);
  width:80px; height:3px;
  background:var(--primary);
}

.carousel{
  position:relative;
  width:100%;
  height:500px;
  overflow:hidden;
  border-radius:10px;
  box-shadow:0 10px 30px rgba(0,0,0,.1);
}
.carousel-inner{
  display:flex;
  height:100%;
  transition:transform .5s ease;
  will-change:transform;
}
.carousel-item{
  min-width:100%;
  height:100%;
  background-size:cover;
  background-position:center;
}
.carousel-controls{
  position:absolute;
  left:50%; bottom:20px;
  transform:translateX(-50%);
  display:flex;
}
.carousel-indicator{
  width:12px; height:12px;
  border-radius:50%;
  background:rgba(255,255,255,.5);
  margin:0 5px;
  cursor:pointer;
  transition:background-color .3s ease;
}
.carousel-indicator.active{ background:#fff; }

@media (max-width:768px){
  .carousel{ height:400px; }
}

/* =======================================================
   ABOUT / TEAM / PROJECTS (global)
   ======================================================= */
.about-section{ padding:5rem 0; background:#f8f9fa; }

.about-content{
  display:flex;
  align-items:center;
  gap:3rem;
}
.about-text{ flex:1; }

.about-image{
  flex:1;
  height:400px;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.1);
}
.about-image img{ width:100%; height:100%; object-fit:cover; }

@media (max-width:768px){
  .about-content{ flex-direction:column; }
  .about-image{ height:300px; }
}

.team-section{ padding:5rem 0; background:#fff; }
.team-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:2rem;
}
.team-member{
  text-align:center;
  padding:2rem;
  border-radius:10px;
  background:#f8f9fa;
  transition:transform .3s ease, box-shadow .3s ease;
}
.team-member:hover{
  transform:translateY(-10px);
  box-shadow:0 15px 30px rgba(0,0,0,.1);
}
.member-photo{
  width:150px; height:150px;
  border-radius:50%;
  margin:0 auto 1.5rem;
  overflow:hidden;
  border:3px solid var(--primary);
}
.member-photo img{ width:100%; height:100%; object-fit:cover; }
.member-name{ font-size:1.3rem; margin-bottom:.5rem; }
.member-role{ color:var(--primary); font-weight:500; margin-bottom:1rem; }

.projects-section{ padding:5rem 0; background:#f8f9fa; }
.projects-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:2rem;
}
.project-card{
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 5px 15px rgba(0,0,0,.1);
  transition:transform .3s ease;
}
.project-card:hover{ transform:translateY(-10px); }
.project-image{ height:200px; overflow:hidden; }
.project-image img{
  width:100%; height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.project-card:hover .project-image img{ transform:scale(1.1); }
.project-info{ padding:1.5rem; }
.project-title{ font-size:1.3rem; margin-bottom:.5rem; }
.project-category{ color:var(--primary); font-weight:500; margin-bottom:1rem; }

/* =======================================================
   FOOTER
   ======================================================= */
footer{
  background:var(--dark);
  color:#fff;
  padding:4rem 0 2rem;
}
.footer-content{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:2rem;
  margin-bottom:3rem;
}
.footer-column h3{
  color:#fff;
  margin-bottom:1.5rem;
  font-size:1.3rem;
  position:relative;
  display:inline-block;
}
.footer-column h3::after{
  content:"";
  position:absolute;
  left:0; bottom:-8px;
  width:40px; height:2px;
  background:var(--primary);
}
.footer-column p{ margin-bottom:1rem; color:#aaa; }

.footer-links{ list-style:none; }
.footer-links li{ margin-bottom:.8rem; }

.footer-links a{
  color:#aaa;
  text-decoration:none;
  transition:color .3s ease;
}
.footer-links a:hover{ color:var(--primary); }

.footer-email{
  color:#aaa;
  text-decoration:none;
  transition:color .3s ease;
}
.footer-email:hover{ color:var(--primary); text-decoration:underline; }

.footer-whatsapp{
  color:inherit;
  text-decoration:none;
  font-weight:500;
}
.footer-whatsapp:hover{ color:var(--primary); }

.footer-bottom{
  text-align:center;
  padding-top:2rem;
  border-top:1px solid rgba(255,255,255,.1);
  color:#aaa;
  font-size:.9rem;
}

@media (max-width:768px){
  .footer-content{
    grid-template-columns:1fr;
    gap:1.5rem;
    text-align:center;
  }
  .footer-links li{ margin-bottom:.5rem; }
}

/* =======================================================
   SOCIAL FLOATER RIGHT (unique)
   ======================================================= */
.social-floater.right{
  position:fixed;
  right:25px;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  gap:12px;
  z-index:998;
  opacity:1;
  pointer-events:auto;
}

.social-floater.right a{
  width:42px; height:42px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:#fff;
  font-size:1.1rem;
  position:relative;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  box-shadow:0 6px 20px rgba(0,176,220,.35);
  transition:transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.social-floater.right a:hover{
  transform:translateX(-6px) scale(1.05);
  background:linear-gradient(135deg,var(--primary-dark),var(--primary-light));
  box-shadow:0 10px 30px rgba(0,176,220,.45);
}

/* Badge letters */
.social-floater.right .platform{
  font-family:'Raleway',sans-serif;
  font-weight:700;
  letter-spacing:.5px;
}

/* Fiverr / Malt */
.social-floater.right .fiverr{
  background:linear-gradient(135deg,#1DBF73,#18A864);
  box-shadow:0 6px 20px rgba(29,191,115,.35);
}
.social-floater.right .fiverr:hover{
  background:linear-gradient(135deg,#18A864,#1DBF73);
}
.social-floater.right .malt{
  background:linear-gradient(135deg,#FC575E,#F63A44);
  box-shadow:0 6px 20px rgba(252,87,94,.35);
}
.social-floater.right .malt:hover{
  background:linear-gradient(135deg,#F63A44,#FC575E);
}

/* Tooltips desktop */
.social-floater.right a::after{
  content:attr(aria-label);
  position:absolute;
  right:52px;
  top:50%;
  transform:translateY(-50%);
  background:var(--dark);
  color:#fff;
  padding:6px 12px;
  border-radius:20px;
  font-size:.75rem;
  opacity:0;
  white-space:nowrap;
  pointer-events:none;
  transition:all .25s ease;
}
.social-floater.right a:hover::after{
  opacity:1;
  transform:translate(-6px,-50%);
}

@media (max-width:768px){
  .social-floater.right{ right:12px; gap:10px; }
  .social-floater.right a{ width:40px; height:40px; font-size:1rem; }
  .social-floater.right a::after{ display:none; }
}

/* =======================================================
   PAGE: RDV (scoped)
   ======================================================= */
body.rdv-body{
  min-height:100vh;
  display:flex;
  flex-direction:column;

  /* on gère l’espace via .rdv-page */
  padding-top:0;
}

body.rdv-body .rdv-page{
  flex:1;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:110px 0 40px;
}

body.rdv-body .rdv-page-container{ width:90%; max-width:800px; }

body.rdv-body .rdv-container{
  background:#fff;
  border-radius:15px;
  box-shadow:0 15px 50px rgba(0,0,0,.10);
  overflow:hidden;
}

body.rdv-body .rdv-header{
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
  padding:2.5rem;
  text-align:center;
}
body.rdv-body .rdv-header h1{ font-size:2.5rem; margin-bottom:.5rem; color:#fff; }
body.rdv-body .rdv-header p{ font-size:1.1rem; opacity:.9; }

body.rdv-body .rdv-content{ padding:2.5rem; }

body.rdv-body .rdv-benefits{ list-style:none; margin-bottom:2rem; }
body.rdv-body .rdv-benefits li{ margin-bottom:10px; color:var(--gray); font-size:.95rem; }

body.rdv-body .rdv-calendar{
  background:var(--light);
  border-radius:12px;
  padding:20px;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.05);
}
body.rdv-body .rdv-calendar iframe{
  width:100%;
  height:700px;
  border:none;
  border-radius:8px;
}

body.rdv-body .back-link{
  display:inline-block;
  margin-top:1.5rem;
  color:var(--primary);
  text-decoration:none;
  font-weight:500;
}
body.rdv-body .back-link:hover{ color:var(--primary-dark); }

@media (max-width:768px){
  body.rdv-body .rdv-header h1{ font-size:2rem; }
  body.rdv-body .rdv-calendar iframe{ height:600px; }
}

/* =======================================================
   PAGE: NOTRE HISTOIRE (story-page) — CLEAN + RESPONSIVE
   ======================================================= */
body.story-page{
  /* header fixed est plus "haut" visuellement sur cette page */
  padding-top:110px;
}

/* ton main doit être <main class="story-main container"> */
body.story-page .story-main{
  padding-top:40px;
  padding-bottom:60px;
}

/* IMPORTANT : on neutralise le .about-content global (homepage)
   uniquement pour la story-page */
body.story-page section.about-content{
  max-width:1100px;
  margin:30px auto 0;
  padding:60px 20px;

  display:grid;
  grid-template-columns:1fr 1fr;
  gap:50px;
  align-items:center;

  /* reset anti-collision */
  flex-direction:unset;
}

/* Par défaut : texte à gauche, image à droite */
body.story-page section.about-content .about-text{ grid-column:1; }
body.story-page section.about-content .about-image{ grid-column:2; }

/* Alternance : sections paires => image à gauche */
body.story-page section.about-content:nth-of-type(even) .about-image{ grid-column:1; }
body.story-page section.about-content:nth-of-type(even) .about-text{ grid-column:2; }

/* Image style */
body.story-page section.about-content .about-image{
  height:auto !important;
  overflow:hidden;
  border-radius:16px;
  box-shadow:0 15px 35px rgba(0,0,0,.15);
}
body.story-page section.about-content .about-image img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}

/* MOBILE : ordre logique TEXTE puis IMAGE
   + CTA tout en bas après la dernière image */
@media (max-width:768px){
  body.story-page section.about-content{
    display:flex;
    flex-direction:column;
    gap:18px;
    padding:40px 16px;
  }

  body.story-page section.about-content .about-text{ order:1; }
  body.story-page section.about-content .about-image{ order:2; }

  /* CTA : seulement la dernière section (ajoute class="is-last") */
  body.story-page section.about-content.is-last .cta-group{
    order:3;
    width:100%;
    justify-content:center;
    margin-top:18px;
  }
}

/* =======================================================
   PAGE: CONTACT (light touch)
   (si tu as du CSS inline dans contact.html, tu peux garder)
   ======================================================= */
body.contact-page{
  padding-top:110px;
  padding-bottom:40px;
}

/* CTA dernière section: desktop/tablette */
body.story-page section.about-content.is-last .story-cta{
  grid-column: 1 / -1;
  margin-top: 10px;
}

/* Mobile: texte -> image -> CTA */
@media (max-width: 768px){
  body.story-page section.about-content.is-last{
    display:flex;
    flex-direction:column;
  }
  body.story-page section.about-content.is-last .about-text{ order:1; }
  body.story-page section.about-content.is-last .about-image{ order:2; }
  body.story-page section.about-content.is-last .story-cta{ order:3; }
}
