/* Grace Divine Éducation - Base Styles */

/* Polices personnalisées */
@font-face {
  font-family: 'FuturaLT';
  src: url('../fonts/FuturaLT.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FuturaLT';
  src: url('../fonts/FuturaLT-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root{
  --primary:#0057A4; /* Bleu */
  --accent:#F47C20;  /* Orange */
  --light:#F5F5F5;
  --dark:#333333;
  --white:#FFFFFF;
  --font-main: 'FuturaLT', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'FuturaLT', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font-main);
  color:var(--dark);
  background:#fff;
  line-height:1.6;
}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

/* Titres avec police Bold */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: bold;
}

.container{width:min(1200px,92%);margin:0 auto}

/* Header */
header{
  position:sticky;top:0;z-index:50;background:var(--white);border-bottom:1px solid #eee
}
.top-info{background:#f7fbff;border-bottom:1px solid #e6eef8;color:#0f2640}
.top-info .bar{display:flex;align-items:center;justify-content:space-between;padding:6px 0;gap:12px;font-size:13px}
.top-info .item{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.top-info .item i{color:var(--accent)}
.top-info a{color:#0f2640}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:12px 0;min-height:60px}
.logo{display:flex;align-items:center;gap:12px;flex-shrink:0}
.logo img{height:36px;width:auto;object-fit:contain}
.brand{font-family:var(--font-heading);font-weight:bold;color:var(--primary);font-size:16px;white-space:nowrap}

nav ul{display:flex;gap:16px;list-style:none;margin:0;padding:0;align-items:center}
nav a{position:relative;padding:8px 12px;border-radius:6px;font-size:14px;transition:all 0.2s ease}
nav a:hover{background:var(--light)}
nav a.active{color:var(--primary);font-weight:700}
nav a.active:after{content:"";position:absolute;left:12px;right:12px;bottom:4px;height:2px;background:var(--primary);border-radius:2px}
.nav-actions{display:flex;gap:8px;align-items:center}
.cart-link{position:relative;display:inline-flex;align-items:center;gap:6px;border:1px solid #e1e8f0;background:#fff;border-radius:8px;padding:6px 10px;color:#0f2640;font-size:13px;transition:all 0.2s ease}
.cart-link:hover{background:#f8f9fa;border-color:var(--accent)}
.cart-badge{position:absolute;top:-6px;right:-6px;background:var(--accent);color:#fff;border-radius:999px;padding:2px 5px;font-size:10px;line-height:1;min-width:16px;text-align:center}
.menu-toggle{display:none;border:1px solid #e1e8f0;background:#fff;border-radius:6px;padding:6px 8px}
.menu-toggle i{font-size:16px;color:#0f2640}
.btn{display:inline-block;padding:8px 14px;border-radius:6px;font-weight:600;font-size:13px;transition:all 0.2s ease}
.btn.primary{background:var(--primary);color:#fff}
.btn.accent{background:var(--accent);color:#fff}
.btn.ghost{background:transparent;border:1px solid #cfd9e6}
.btn.white{background:#fff;color:#0f2640;border:1px solid #e1e8f0}

/* Hero */
.hero{position:relative;background:linear-gradient(135deg,rgba(0,87,164,.07),rgba(244,124,32,.06));padding:72px 0 56px;overflow:hidden}
.hero.has-bg{background:linear-gradient(0deg,rgba(15,38,64,.25),rgba(15,38,64,.25)), var(--hero-image, url('../images/ACCUEIL.png')) center/cover no-repeat;min-height:520px}
.hero.has-bg:before,.hero.has-bg:after{display:none}
.hero.has-bg h1,.hero.has-bg p,.hero.has-bg .pill,.hero.has-bg .stats{color:#fff}
.hero .stats strong{color:var(--accent)}
.hero.has-bg .stats .muted{color:#fff}
.hero.has-bg .pill{border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.15)}
.hero.has-bg .stat{background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.25)}
.hero:before,.hero:after{content:"";position:absolute;inset:auto auto -80px -80px;width:280px;height:280px;background:radial-gradient(closest-side,rgba(244,124,32,.25),transparent);filter:blur(8px);border-radius:50%}
.hero:after{inset:-80px -80px auto auto;background:radial-gradient(closest-side,rgba(0,87,164,.22),transparent)}
.hero .grid{display:grid;grid-template-columns:1.2fr .8fr;gap:32px;align-items:center}
.hero h1{font-family:var(--font-heading);font-weight:bold;font-size:46px;margin:0 0 12px;color:#0f2640}
.hero p{font-size:18px;margin:0 0 24px;color:#38506b}
.hero .pill{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid #e6eef8;color:#0f2640;padding:8px 12px;border-radius:999px;font-weight:600;margin-bottom:12px}
.hero .stats{display:flex;gap:18px;margin-top:18px;color:#0f2640}
.hero .stat{background:#fff;border:1px solid #eaf0f6;border-radius:12px;padding:10px 12px}
.hero .cta{display:flex;gap:12px;flex-wrap:wrap}

/* Sections */
section{padding:48px 0}
.section-title{font-family:var(--font-heading);font-weight:bold;font-size:28px;margin:0 0 18px;color:var(--dark)}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.card{border:1px solid #eee;border-radius:14px;overflow:hidden;background:#fff;transition:transform .25s ease, box-shadow .25s ease}
.card:hover{transform:translateY(-4px);box-shadow:0 10px 24px rgba(15,38,64,.08)}
.card .content{padding:16px}
.badge{display:inline-block;background:var(--light);padding:4px 10px;border-radius:999px;font-size:12px}

/* Icons */
.icon-circle{width:48px;height:48px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(0,87,164,.1),rgba(244,124,32,.12));color:var(--primary);box-shadow:inset 0 0 0 1px #e6eef8}
.icon-circle.lg{width:56px;height:56px}
.icon-bounce{animation:iconPop .6s ease both}
@keyframes iconPop{0%{transform:scale(.8);opacity:0}60%{transform:scale(1.06);opacity:1}100%{transform:scale(1)}}
.card:hover .icon-circle{transform:translateY(-2px);transition:transform .25s ease}

/* Testimonials */
.testimonials{background:var(--light)}
.testimonials .items{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.quote{background:#fff;border-radius:12px;padding:16px;border:1px solid #eee}
.quote .author{margin-top:10px;font-weight:600;color:var(--primary)}

/* Sub hero (inner pages) */
.sub-hero{position:relative;background:linear-gradient(135deg,rgba(0,87,164,.05),rgba(244,124,32,.05));padding:48px 0 36px;overflow:hidden}
.sub-hero h1{font-family:var(--font-heading);font-weight:bold;margin:0 0 8px;color:#0f2640}
.sub-hero p{margin:0;color:#38506b}
.sub-hero .grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center}

/* Premium profile card */
.profile-card{position:relative;display:flex;gap:16px;align-items:center;background:#fff;border:1px solid #eaf0f6;border-radius:16px;padding:16px;box-shadow:0 12px 30px rgba(15,38,64,.06)}
.profile-photo{position:relative;width:140px;min-width:140px;height:160px;border-radius:14px;overflow:hidden;box-shadow:0 8px 20px rgba(15,38,64,.12)}
.profile-photo img{width:100%;height:100%;object-fit:cover}
.profile-photo:after{content:"";position:absolute;inset:auto -8px -8px auto;width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,var(--accent),#ffb173);box-shadow:0 6px 14px rgba(244,124,32,.35)}
.profile-info h3{margin:0 0 6px;color:#0f2640;font-family:var(--font-heading);font-weight:bold}
.profile-info .role{color:#0f2640;font-weight:600}
.profile-info .meta{color:#567; font-size:14px}
.quote-badge{margin-top:10px;background:#f7fbff;border:1px solid #d6eafc;border-radius:12px;padding:10px 12px;color:#123d76}
.decor-blob{position:absolute;inset:auto -60px -60px auto;width:200px;height:200px;border-radius:50%;background:radial-gradient(closest-side,rgba(0,87,164,.12),transparent);filter:blur(10px)}
.decor-blob.bl2{inset:-60px auto auto -60px;background:radial-gradient(closest-side,rgba(244,124,32,.12),transparent)}

/* Footer */
footer{background:#0f2640;color:#dbe7f7}
footer .cols{display:grid;grid-template-columns:2fr 1fr 1fr;gap:24px;padding:32px 0}
footer a{color:#dbe7f7}
footer .legal{border-top:1px solid rgba(255,255,255,.15);padding:12px 0;color:#b9c6d9}

/* Forms */
form .row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
label{display:block;font-size:14px;margin:10px 0 6px}
input,select,textarea{width:100%;padding:10px 12px;border:1px solid #ddd;border-radius:8px;font:inherit}
textarea{min-height:120px}
form .actions{margin-top:12px}

/* Shop */
.shop-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.product{border:1px solid #eee;border-radius:12px;overflow:hidden;background:#fff;display:flex;flex-direction:column}
.product .info{padding:12px;display:flex;flex-direction:column;gap:8px}
.price{color:var(--accent);font-weight:700}
.cart-bar{position:sticky;bottom:0;background:#fff;border-top:1px solid #eee;padding:10px;display:flex;justify-content:space-between;align-items:center}

/* Boutique grid (cards with hover actions) */
.boutique{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}
.produit{background:#fff;border-radius:10px;box-shadow:0 4px 10px rgba(0,0,0,0.1);padding:15px;text-align:center;position:relative;transition:.3s}
.produit img{max-width:100%;border-radius:5px}
.produit h4{margin:10px 0 5px;font-size:16px}
.produit p{color:#444;font-weight:700}
.produit .actions{position:absolute;top:40%;left:50%;transform:translate(-50%,-50%);display:flex;gap:15px;opacity:0;transition:opacity .3s ease}
.produit:hover .actions{opacity:1}
.produit .actions a{background:#fff;border-radius:50%;padding:12px;font-size:18px;color:#333;box-shadow:0 3px 6px rgba(0,0,0,.2);transition:.3s}
.produit .actions a:hover{background:#ffcc00;color:#fff}

/* Ensure CTA banner actions are visible and not affected by product hover styles */
.cta-banner .actions{position:static;opacity:1;transform:none}

/* Utilities */
.muted{color:#666}
.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}
.shadow-lg{box-shadow:0 14px 30px rgba(15,38,64,.12)}
.reveal{opacity:0;transform:translateY(12px);transition:opacity .5s ease, transform .5s ease}
.reveal.in{opacity:1;transform:none}

/* CTA banner */
.cta-banner{background:linear-gradient(90deg, var(--primary), #0f6fc7);color:#fff;border-radius:16px;padding:24px;display:grid;grid-template-columns:1fr auto;align-items:center}
.cta-banner .actions{display:flex;gap:10px}

/* Social bar (style screenshot-like) */
.share-wrapper{position:fixed;left:8px;top:38%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:flex-start;z-index:1000}
.share-label{color:#1756a8;font-weight:600;font-size:13px;margin:0 0 8px 8px;letter-spacing:.6px}
.share-box{width:66px;background:#f7fbff;border:1px solid #d6eafc;border-radius:0 9px 9px 0;overflow:hidden;box-shadow:0 1px 0 rgba(0,0,0,.03)}
.share-item{display:flex;align-items:center;justify-content:center;height:62px;width:100%;color:#1756a8;text-decoration:none;font-size:28px;border-bottom:1px solid #e6f2ff;transition:background .12s,color .12s}
.share-item:last-child{border-bottom:none}
.share-item .fa-envelope{font-size:20px}
.share-item:hover{background:rgba(23,86,168,.06)}
@media (max-width: 768px){.share-wrapper{display:none}}

/* Responsive */
@media (max-width: 960px){
  .hero .grid{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr 1fr}
  .testimonials .items{grid-template-columns:1fr 1fr}
  .shop-grid{grid-template-columns:1fr 1fr}
  footer .cols{grid-template-columns:1fr 1fr}
  form .row{grid-template-columns:1fr}
  .top-info .bar{flex-direction:column;align-items:flex-start}
  nav ul{position:absolute;top:60px;left:0;right:0;background:#fff;border-bottom:1px solid #eee;flex-direction:column;gap:0;display:none;box-shadow:0 4px 12px rgba(0,0,0,0.1)}
  header.open nav ul{display:flex}
  nav li{border-top:1px solid #f1f4f8}
  nav a{border-radius:0;padding:12px 16px;font-size:15px}
  .menu-toggle{display:inline-flex;align-items:center;justify-content:center}
  .nav-actions{display:none}
  .logo img{height:32px}
  .brand{font-size:15px}
}
@media (max-width: 640px){
  .cards,.testimonials .items,.shop-grid{grid-template-columns:1fr}
}


/* Home: Book carousel */
.book-section{padding:20px;background:#fff}
.book-section h2{margin-bottom:20px;font-size:22px;font-weight:700;color:#333}
.book-carousel{display:flex;gap:20px;overflow-x:auto;scrollbar-width:none}
.book-carousel::-webkit-scrollbar{display:none}
.book-item{position:relative;width:150px;flex-shrink:0;text-align:center;transition:transform .3s}
.book-item:hover{transform:translateY(-5px)}
.book-item img{width:100%;border-radius:6px}
.overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .3s;border-radius:6px}
.book-item:hover .overlay{opacity:1}
.icon{font-size:30px;color:#fff;text-decoration:none;background:rgba(0,0,0,.6);padding:10px 15px;border-radius:50%;transition:background .3s}
.icon:hover{background:#f39c12}
.book-title{margin:10px 0 5px;font-size:14px;font-weight:700;color:#333}
.book-price{font-size:13px;color:#555}

/* Home: Book wrapper with header and arrows */
.book-wrapper{background:#fff;padding:20px;border-radius:8px}
.book-header{display:flex;justify-content:space-between;align-items:center;background:#3c3c3c;color:#fff;padding:10px 15px;border-radius:6px 6px 0 0}
.book-header h2{font-size:18px;margin:0}
.book-controls{display:flex;align-items:center;gap:10px}
.book-controls a{color:#fff;text-decoration:none;font-size:14px;margin-right:5px}
.arrow{background:none;border:none;color:#fff;font-size:18px;cursor:pointer}
.book-wrapper .book-carousel{display:flex;gap:28px;overflow-x:auto;scroll-behavior:smooth;padding:22px 12px;justify-content:center}
.book-wrapper .book-carousel::-webkit-scrollbar{display:none}
.book-wrapper .book-item{flex:0 0 auto;width:220px;text-align:center}
.book-cover{position:relative;border-radius:6px;overflow:hidden}
.book-cover img{width:100%;border-radius:6px;transition:transform .3s}
.book-cover:hover img{transform:scale(1.05)}
.book-cover .overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .3s}
.book-cover:hover .overlay{opacity:1}
.book-wrapper .icon{font-size:34px;color:#fff;background:rgba(0,0,0,.7);padding:12px;border-radius:50%;text-decoration:none}
.book-wrapper .icon:hover{background:#f39c12}
.book-wrapper .book-title{font-size:16px;margin:10px 0 6px;font-weight:700;color:#333}
.book-wrapper .book-price{font-size:14px;color:#777}

/* Modal styles */
.modal{display:none;position:fixed;z-index:1000;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.6);justify-content:center;align-items:center}
.modal-content{background:#fff;width:80%;max-width:900px;padding:20px;border-radius:10px;position:relative;box-shadow:0 10px 30px rgba(0,0,0,0.3)}
.close{position:absolute;top:10px;right:20px;font-size:30px;cursor:pointer;color:#333;transition:color 0.2s ease}
.close:hover{color:var(--accent)}
.modal-body{display:flex;gap:20px}
.modal-left img{width:250px;border-radius:5px;box-shadow:0 4px 12px rgba(0,0,0,0.15)}
.modal-right{flex:1}
.price{font-size:20px;color:var(--accent);margin:5px 0;font-weight:700}
.desc{font-size:14px;margin:10px 0 15px;color:#444;line-height:1.5}
#quantity{width:60px;padding:8px;margin-right:10px;border:1px solid #ddd;border-radius:4px;text-align:center}
.btn-cart{background:var(--accent);color:#fff;border:none;padding:12px 20px;margin:10px 0;cursor:pointer;font-weight:700;border-radius:6px;font-size:14px;transition:background 0.2s ease;display:inline-block}
.btn-cart:hover{background:#e67e1a}
.stock{color:red;font-size:14px}
.btn-whatsapp{display:inline-block;background:#25D366;color:#fff;padding:12px 20px;border-radius:6px;text-decoration:none;font-weight:700;margin-left:10px;transition:background 0.2s ease}
.btn-whatsapp:hover{background:#1ebe5b}

/* Success modal button styles */
.continue-btn:hover, .order-btn:hover {
  background: #e67e1a !important;
}

/* Accordion styles */
.accordion {
  max-width: 100%;
  margin: 0 auto;
}

.accordion-item {
  background: #fff;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 38, 64, 0.08);
  border: 1px solid #eaf0f6;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 8px 24px rgba(15, 38, 64, 0.12);
  transform: translateY(-2px);
}

.accordion-header {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  color: #0f2640;
  background: linear-gradient(135deg, #f7fbff, #ffffff);
  border-bottom: 1px solid #e6eef8;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
  font-weight: bold;
}

.accordion-header:hover {
  background: linear-gradient(135deg, #e6f2ff, #f7fbff);
  color: var(--primary);
}

.accordion-header::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 124, 32, 0.1);
  border-radius: 50%;
}

.accordion-item.active .accordion-header::after {
  content: "−";
  transform: rotate(0deg);
  background: var(--accent);
  color: #fff;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
  background: #fff;
  color: #38506b;
  line-height: 1.7;
}

.accordion-item.active .accordion-content {
  padding: 24px;
  max-height: 500px;
}

.accordion-content p {
  margin: 0 0 16px;
  font-size: 16px;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

/* Responsive accordion */
@media (max-width: 768px) {
  .accordion-header {
    padding: 16px 20px;
    font-size: 16px;
  }
  
  .accordion-content {
    padding: 0 20px;
  }
  
  .accordion-item.active .accordion-content {
    padding: 20px;
  }
  
  .accordion-header::after {
    font-size: 20px;
    width: 28px;
    height: 28px;
  }
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  opacity: 0;
  animation: slideUp 0.8s ease-out forwards;
}

/* Animation pour les éléments qui apparaissent au scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}