/* Evite les débordements et garde les blocs bien centrés */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  /* On utilise clip au lieu de hidden pour que le Sticky Header fonctionne ! */
  overflow-x: clip; 
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #fffdf8 0%, #fff8fb 45%, #f7fbff 100%);
  color: #2b2b2b;
}

/****************************** Header **************************************/
.header {
  position: sticky;
  top: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  width: 100%;
  padding: 10px clamp(16px, 2vw, 30px);

  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 182, 193, 0.4);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.055);

  transition:
    padding 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.header,
.logo,
.logo img,
.menu-content,
.nav-links,
.header-icons {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  order: -1;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: auto;
  display: block;
  object-fit: contain;
  transform: none !important;
  transition: height 0.25s ease, transform 0.25s ease;
}

.logo img:hover {
  transform: scale(1.03) !important;
}

/* Tailles normales */
.header.state-guest .logo.logo-v1 img { height: 76px; }
.header.state-guest .logo.logo-v3 img { height: 86px; }

.header.state-user .logo.logo-v1 img { height: 70px; }
.header.state-user .logo.logo-v3 img { height: 78px; }

.header.state-admin .logo.logo-v1 img { height: 58px; }
.header.state-admin .logo.logo-v3 img { height: 66px; }

.menu-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nav-links,
.header-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 0;
}

.nav-links a,
.header-icons a {
  text-decoration: none;
  color: rgba(0,0,0,0.84);
  font-weight: 750;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  padding: 8px 10px;
  border-radius: 999px;

  font-size: clamp(12px, 0.82vw, 14px);
  line-height: 1.15;
  white-space: nowrap;

  transition: all 0.2s ease;
}

.nav-links a:hover,
.header-icons a:hover {
  background: linear-gradient(135deg, #ffe1ec, #e8f5ff);
  transform: translateY(-1px);
  color: #000;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.nav-links a.active,
.header-icons a.active {
  background: linear-gradient(135deg, #ffd6e7, #dff4ff);
  color: #000;
}

.header .icon {
  font-size: 0.95em;
  line-height: 1;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  flex: 0 0 auto;
}

.language-switcher-label {
  font-size: 0.95rem;
  line-height: 1;
}

.language-switcher-select {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
  color: #111;
  outline: none;
  max-width: 88px;
}

.language-switcher-select:hover {
  border-color: rgba(0, 0, 0, 0.28);
}

/* Header réduit au scroll */
.header.scrolled {
  padding: 4px 10px !important;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.header.scrolled .logo {
  display: none;
}

.header.scrolled .menu-content {
  width: 100%;
  justify-content: center;
}

.header.scrolled .nav-links,
.header.scrolled .header-icons {
  gap: 4px;
}

.header.scrolled .nav-links a,
.header.scrolled .header-icons a {
  font-size: 12.5px !important;
  padding: 6px 9px !important;
}

.header.scrolled .language-switcher-select {
  padding: 5px 8px;
  font-size: 0.75rem;
}

/* Burger */
.burger {
  display: none;
  font-size: 1.85rem;
  cursor: pointer;
  user-select: none;
  margin-left: auto;
  padding: 7px 11px;
  border-radius: 12px;
  transition: background-color 0.2s ease;
}

.burger:hover {
  background: rgba(0,0,0,0.06);
}

/* Desktop moyen : compresse avant de passer burger */
@media (max-width: 1500px) {
  .header {
    padding: 8px 18px;
    gap: 12px;
  }

  .header.state-guest .logo.logo-v3 img { height: 76px; }
  .header.state-user .logo.logo-v3 img { height: 72px; }
  .header.state-admin .logo.logo-v3 img { height: 62px; }

  .menu-content {
    gap: 7px;
  }

  .nav-links,
  .header-icons {
    gap: 4px;
  }

  .nav-links a,
  .header-icons a {
    padding: 7px 8px;
    font-size: 12.5px;
  }

  .language-switcher-label {
    display: none;
  }

  .language-switcher-select {
    max-width: 76px;
    padding: 5px 7px;
    font-size: 0.74rem;
  }
}

/* Petit laptop : on évite que ça parte en 2 lignes moches */
@media (max-width: 1280px) {
  .header.state-guest .logo.logo-v3 img { height: 68px; }
  .header.state-user .logo.logo-v3 img { height: 66px; }
  .header.state-admin .logo.logo-v3 img { height: 58px; }

  .nav-links a,
  .header-icons a {
    padding: 6px 7px;
    font-size: 12px;
  }

  .header .icon {
    font-size: 0.9em;
  }
}

/* Mobile/tablette : menu burger */
@media (max-width: 1180px) {
  .header {
    padding: 8px 16px !important;
    justify-content: space-between !important;
  }

  .logo {
    display: flex !important;
  }

  .logo.logo-v1 img { height: 58px !important; }
  .logo.logo-v3 img { height: 68px !important; }

  .header.scrolled {
    justify-content: space-between !important;
    padding: 6px 16px !important;
  }

  .header.scrolled .logo {
    display: flex !important;
  }

  .header.scrolled .logo.logo-v1 img { height: 44px !important; }
  .header.scrolled .logo.logo-v3 img { height: 52px !important; }

  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu-content {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;

    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;

    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.12);
  }

  .menu-content.show {
    display: flex;
  }

  .nav-links,
  .header-icons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  .nav-links a,
  .header-icons a {
    width: 100%;
    justify-content: flex-start;
    border-radius: 14px;
    padding: 12px 12px !important;
    font-size: 15px !important;
    background: rgba(0,0,0,0.03);
  }

  .language-switcher {
    width: 100%;
    justify-content: center;
    margin: 6px 0;
  }

  .language-switcher-select {
    width: 100%;
    max-width: 220px;
    text-align: center;
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}

@media (max-width: 520px) {
  .logo.logo-v1 img { height: 50px !important; }
  .logo.logo-v3 img { height: 58px !important; }

  .burger {
    font-size: 1.65rem;
    padding: 6px 9px;
  }

  .menu-content {
    left: 8px;
    right: 8px;
    border-radius: 16px;
  }
}

/************************************ Hero **************************************/
.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  place-items: center;
  padding: 120px 40px;
  text-align: center;
  overflow: hidden;

  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 214, 231, 0.75), transparent 22%),
    radial-gradient(circle at 85% 18%, rgba(255, 243, 176, 0.70), transparent 20%),
    radial-gradient(circle at 25% 85%, rgba(208, 244, 222, 0.70), transparent 20%),
    radial-gradient(circle at 75% 80%, rgba(210, 234, 255, 0.75), transparent 22%),
    url("img/visuel_pro.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: min(760px, 92vw);
  height: auto;

  padding: 40px 34px;
  border-radius: 30px;

  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 2px solid rgba(255,255,255,0.75);
  box-shadow: 0 18px 60px rgba(255, 183, 197, 0.18);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
  color: #ff5f8f;
}

.hero p {
  margin: 0 0 26px;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.6;
  color: #4a5568;
}

/* CTA plus stylée */
.hero .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 26px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 650;

  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero .cta-button:hover {
  transform: translateY(-2px);
  background: #000;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .hero {
    padding: 90px 18px;
  }
  .hero-content {
    padding: 26px 18px;
    border-radius: 18px;
  }
}



.cta-button {
  background: linear-gradient(135deg, #ff7aa8, #ffb347);
  color: #fff;
  padding: 14px 28px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 12px 28px rgba(255, 122, 168, 0.22);
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.02);
  opacity: 0.95;
  color: #fff;
}

.cta-button.dark {
  background: linear-gradient(135deg, #4db8ff, #7b68ee);
  color: #fff;
}

.cta-button.dark:hover {
  background: linear-gradient(135deg, #3caaf5, #6d5ce7);
  color: #fff;
}

.product-secondary-btn {
  background: linear-gradient(135deg, #fff1a8, #ffd6e7);
  color: #444;
}

.product-secondary-btn:hover {
  color: #333;
  background: linear-gradient(135deg, #ffe88a, #ffc6de);
}/************************************ Templates Section *****************************************/

.templates{
  padding: 90px 40px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 239, 173, 0.55), transparent 25%),
    radial-gradient(circle at 85% 15%, rgba(210, 234, 255, 0.55), transparent 25%),
    #fffefb;
}

.templates-content{
  max-width: 1150px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;

  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 26px;
  padding: 34px;

  box-shadow: 0 18px 60px rgba(0,0,0,0.08);
}

/* Image plus "premium" */
.templates-img{
  width: 100%;
  max-width: none;        /* on laisse la grid gérer */
  border-radius: 20px;
  display: block;
  aspect-ratio: 16 / 10;  /* garde un rendu stable */
  object-fit: cover;

  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
  transform: translateZ(0);
}

/* Texte plus clean */
.templates-text{
  max-width: 520px;
  text-align: left;
}

.templates-text h2{
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.templates-text p{
  margin: 0 0 22px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(0,0,0,0.72);
}

/* Bouton un peu plus "CTA" (sans casser ton style global) */
.templates .cta-button.dark{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 26px;
  border-radius: 999px;

  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.templates .cta-button.dark:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

/* Responsive */
@media (max-width: 900px){
  .templates{
    padding: 70px 18px;
  }

  .templates-content{
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px;
    border-radius: 20px;
  }

  .templates-text{
    max-width: 100%;
  }

  .templates-img{
    aspect-ratio: 16 / 11;
  }
}



.cta-button.dark {

  background-color: #000;

  color: #fff;

}



.cta-button.dark:hover {

  background-color: #333;

}



/****************************************** Collage Gallery Section ************************************/

/****************************************** Collage Gallery Section ************************************/
.collage-gallery{
  padding: 90px 40px;
  text-align: center;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 214, 231, 0.45), transparent 24%),
    radial-gradient(circle at 90% 15%, rgba(208, 244, 222, 0.45), transparent 24%),
    #ffffff;
}

.collage-gallery h2{
  color: #ff6b81;
}

.collage-gallery h2{
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.gallery-intro{
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(0,0,0,0.72);

  max-width: 720px;
  margin: 0 auto 34px;
}

/* un conteneur "carte" autour de la grille */
.collage-grid{
  max-width: 1200px;
  margin: 0 auto 34px;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;

  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 60px rgba(0,0,0,0.08);
}

/* cartes images clean + ratio stable */
.collage-grid img{
  width: 100%;
  display: block;

  border-radius: 18px;
  aspect-ratio: 4 / 3;
  object-fit: cover;

  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  transform: translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  cursor: pointer;
}

.collage-grid img:hover{
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 18px 45px rgba(0,0,0,0.16);
  filter: saturate(1.05);
}

/* bouton + spacing */
.collage-gallery .cta-button.dark{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;

  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.collage-gallery .cta-button.dark:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

/* Responsive */
@media (max-width: 1100px){
  .collage-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px){
  .collage-gallery{
    padding: 70px 18px;
  }
  .collage-grid{
    grid-template-columns: 1fr;
    padding: 14px;
    border-radius: 20px;
  }
  .collage-grid img{
    border-radius: 16px;
    aspect-ratio: 16 / 10;
  }
}



/************************************ Product Section *****************************************/
.product-section{
  padding: 95px 40px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(210, 234, 255, 0.50), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(255, 243, 176, 0.45), transparent 24%),
    #fffdfa;
}

.product-section h2{
  color: #6c63ff;
}

.product-section h2{
  margin: 0 0 34px;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}

/* grid stable et responsive */
.product-gallery{
  max-width: 1100px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

/* cartes premium */
.product-card{
  background: linear-gradient(180deg, #ffffff, #fffafc);
  border: 1px solid rgba(255, 182, 193, 0.22);
  border-radius: 28px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 18px 55px rgba(255, 182, 193, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover{
  transform: translateY(-5px) rotate(-0.4deg);
  box-shadow: 0 24px 70px rgba(123, 104, 238, 0.14);
}

.product-card h3{
  color: #444;
}

.product-card .price{
  color: #ff7a59;
  font-size: 1.15rem;
  font-weight: 800;
}

/* image: ratio stable + zoom léger */
.product-card img{
  width: 100%;
  display: block;

  border-radius: 18px;
  aspect-ratio: 16 / 10;
  object-fit: cover;

  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.product-card:hover img{
  transform: scale(1.02);
  filter: saturate(1.05);
}

/* titre + spacing */
.product-card h3{
  margin: 16px 10px 10px;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* prix plus lisible */
.product-card .price{
  margin: 0 0 16px;
}

/* bouton cohérent */
.product-section .cta-button.dark{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;

  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.product-section .cta-button.dark:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

/* responsive */
@media (max-width: 900px){
  .product-section{
    padding: 75px 18px;
  }
  .product-gallery{
    grid-template-columns: 1fr;
  }
}



.product-card.placeholder {

  background: #eee;

  color: #666;

  display: flex;

  align-items: center;

  justify-content: center;

}



.product-card .coming-soon {

  font-style: italic;

  font-size: 1rem;

}



/*********************** Contact page ********************/

/* Important : empêche le dépassement des champs */
.contact-form,
.contact-form *{
  box-sizing: border-box;
}

.contact-form{
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 90px);
  padding: 90px 20px;

  display: grid;
  place-items: center;

  overflow: hidden;
  background: transparent; /* on laisse l'image faire le taf */
}

/* Image de fond bien visible + éclairée */
.contact-form::before{
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("img/visuel_pro.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  opacity: 0.88;          /* ✅ image visible */
  filter: brightness(1.05) contrast(1.02) saturate(1.02);
  z-index: -2;
}

/* Overlay léger (juste pour la lisibilité, sans tuer l'image) */
.contact-form::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.22);   /* ✅ léger */
  z-index: -1;
}

/* Carte du formulaire */
.form-card{
  width: min(760px, 92vw);
  padding: 34px 30px;
  border-radius: 26px;

  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);

  text-align: left;
}

.form-card h2{
  margin: 0 0 10px;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
}

.form-card p{
  margin: 0 0 22px;
  color: rgba(0,0,0,0.70);
  text-align: center;
  line-height: 1.6;
}

/* Form layout */
.form-card form{
  display: grid;
  gap: 16px;
}

.form-group{
  margin: 0;
}

.form-group label{
  display: block;
  margin-bottom: 8px;
  font-weight: 750;
  color: rgba(0,0,0,0.82);
  font-size: 0.95rem;
}

/* Champs : ne dépassent plus */
.form-group input,
.form-group textarea{
  width: 100%;
  max-width: 100%;
  display: block;

  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);

  font-size: 1rem;
  background: rgba(255,255,255,0.92);

  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-group textarea{
  resize: vertical;
  min-height: 160px;
}

.form-group input:focus,
.form-group textarea:focus{
  outline: none;
  border-color: rgba(0,0,0,0.28);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.08);
}

/* bouton */
.contact-form .cta-button.dark{
  justify-self: center;
  margin-top: 6px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 26px;
  border-radius: 999px;

  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form .cta-button.dark:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

/* responsive */
@media (max-width: 650px){
  .contact-form{
    padding: 70px 18px;
  }
  .form-card{
    padding: 24px 16px;
    border-radius: 20px;
  }
}



/* Bouton élégant */

.cta-button {

  background-color: #111;

  color: #fff;

  padding: 14px 30px;

  border: none;

  border-radius: 30px;

  font-weight: 600;

  font-size: 1rem;

  cursor: pointer;

  transition: all 0.3s ease;

}



.cta-button:hover {

  background-color: #333;

  transform: translateY(-2px);

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);

}

/* Style personnalisé pour la page d'inscription */

.form-register {

  background-color: white;

  max-width: 500px;

  margin-top:-20rem;;

  padding: 40px;

  border-radius: 20px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

  position: relative;

  z-index: 10;

  width: 100%;

}



.form-register h2 {

  text-align: center;

  font-size: 1.8em;

  margin-bottom: 10px;

  font-weight: bold;

}



.form-register p {

  text-align: center;

  margin-bottom: 30px;

  color: #666;

}



.form-register .form-group {

  margin-bottom: 20px;

}



.form-register label {

  display: block;

  margin-bottom: 5px;

  font-weight: 500;

}



.form-register input[type="text"],

.form-register input[type="email"],

.form-register input[type="password"] {

  width: 100%;

  padding: 12px;

  border: 1px solid #ccc;

  border-radius: 8px;

  font-size: 1em;

  transition: border-color 0.3s;

}



.form-register input:focus {

  outline: none;

  border-color: #8a2be2;

}



.form-register .cta-button {

  display: block;

  width: 100%;

  padding: 12px;

  font-size: 1em;

  font-weight: bold;

  border: none;

  border-radius: 8px;

  background-color: #000;

  color: white;

  cursor: pointer;

  transition: background-color 0.3s;

}



.form-register .cta-button:hover {

  background-color: #333;

}



.form-register .form-footer {

  text-align: center;

  margin-top: 20px;

}



/*************************************** Footer ***************************************/
.footer{
  position: relative;
  color: #fff;
  text-align: center;
  padding: 72px 40px 42px;

  /* noir premium + profondeur */
  background: radial-gradient(900px 520px at 50% -10%, rgba(255,255,255,0.10), transparent 60%),
              linear-gradient(180deg, #0b0b0b 0%, #000 100%);
  border-top: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
}

/* petit glow décoratif */
.footer::before{
  content: "";
  position: absolute;
  inset: -200px -200px auto -200px;
  height: 340px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.12), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.footer-container{
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
}

.newsletter{
  max-width: 720px;
  margin: 0 auto 26px;
}

.footer h3{
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.footer p{
  margin: 0 0 18px;
  color: rgba(255,255,255,0.78);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* Form newsletter plus clean */
.newsletter-form{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  margin: 18px auto 12px;
  max-width: 640px;
}

.newsletter-form input{
  width: min(520px, 78vw);
  padding: 14px 16px;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  color: #fff;

  font-size: 1rem;
  outline: none;

  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-form input::placeholder{
  color: rgba(255,255,255,0.55);
}

.newsletter-form input:focus{
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.13);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.10);
}

/* bouton rond + contrast */
.newsletter-form button{
  width: 48px;
  height: 48px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.92);
  color: #000;

  cursor: pointer;
  font-size: 1rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.newsletter-form button:hover{
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.footer small{
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer small a{
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer small a:hover{
  color: #fff;
}

/* Liens footer en "pills" */
.footer-links{
  margin: 26px 0 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a{
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;

  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);

  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.footer-links a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
  color: #fff;
}

/* Copyright */
.copyright{
  margin-top: 18px;
  color: rgba(255,255,255,0.50);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 650px){
  .footer{
    padding: 62px 18px 36px;
  }

  .newsletter-form{
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-form input{
    width: 100%;
  }

  .newsletter-form button{
    width: 100%;
    height: 48px;
    border-radius: 14px;
  }
}

/************************************ About page (Hero content) **************************************/
.hero-content-about {
  position: relative;
  z-index: 1;
  width: min(920px, 92vw);
  margin: 0 auto;

  padding: 44px 40px;
  border-radius: 30px;

  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 24px 80px rgba(0,0,0,0.12);
  text-align: left;
}

/* Titre principal H1 */
.hero-content-about h1 {
  margin: 0 0 30px;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-align: center;
  color: #ff4f87;
}

/* Sous-titres H2 */
.hero-content-about h2 {
  margin: 36px 0 16px;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 850;
  color: #111;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

/* Les nouvelles cartes aérées pour le texte */
.about-text-card {
  padding: 24px 28px;
  border-radius: 22px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.about-text-card p {
  margin: 0 0 14px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(0,0,0,0.75);
}

.about-text-card p:last-child {
  margin: 0;
}

/* Style propre pour les listes intégrées dans les cartes */
.about-text-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-text-card li {
  margin-bottom: 12px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(0,0,0,0.75);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.about-text-card li:last-child {
  margin-bottom: 0;
}

.hero-content-about strong {
  color: #111;
  font-weight: 800;
}

.hero-content-about .text-center {
  text-align: center;
}

/* Responsive pour mobiles */
@media (max-width: 650px){
  .hero-content-about {
    padding: 30px 20px;
    border-radius: 24px;
  }
  .about-text-card {
    padding: 20px;
    border-radius: 18px;
  }
  .about-text-card p, 
  .about-text-card li {
    font-size: 1rem;
  }
}

/************************************ Login page only ************************************/
/* Cible uniquement la page où l'onglet Login est actif */
.header-icons a.active[href*="login-graphidel"] ~ * {}

/* On cible le bloc main + carte quand Login est actif dans le header */
.header:has(.header-icons a.active[href*="login-graphidel"]) + main.contact-form{
  /* image bien visible, comme contact */
  background: transparent;
}

.header:has(.header-icons a.active[href*="login-graphidel"]) + main.contact-form::before{
  opacity: 0.92;
  filter: brightness(1.08) contrast(1.02) saturate(1.03);
}

.header:has(.header-icons a.active[href*="login-graphidel"]) + main.contact-form::after{
  background: rgba(255,255,255,0.16);
}

/* carte un poil plus compacte (login = moins de champs) */
.header:has(.header-icons a.active[href*="login-graphidel"]) + main.contact-form .form-card{
  width: min(720px, 92vw);
  padding: 30px 28px;
}

/* Titre plus punchy */
.header:has(.header-icons a.active[href*="login-graphidel"]) + main.contact-form .form-card h2{
  font-size: clamp(2rem, 3.3vw, 2.8rem);
  letter-spacing: -0.03em;
}

/* footer "Register here" mieux stylé */
.header:has(.header-icons a.active[href*="login-graphidel"]) + main.contact-form .form-footer{
  margin: 14px 0 0;
  text-align: center;
  color: rgba(0,0,0,0.70);
}

.header:has(.header-icons a.active[href*="login-graphidel"]) + main.contact-form .form-footer a{
  color: #000;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header:has(.header-icons a.active[href*="login-graphidel"]) + main.contact-form .form-footer a:hover{
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 650px){
  .header:has(.header-icons a.active[href*="login-graphidel"]) + main.contact-form .form-card{
    padding: 22px 16px;
  }
}

/************************************ Login page (no :has) ************************************/
.page-login main.contact-form::before{
  opacity: 0.92;
  filter: brightness(1.08) contrast(1.02) saturate(1.03);
}

.page-login main.contact-form::after{
  background: rgba(255,255,255,0.16);
}

.page-login .form-card{
  width: min(720px, 92vw);
  padding: 30px 28px;
}

.page-login .form-footer{
  margin: 14px 0 0;
  text-align: center;
  color: rgba(0,0,0,0.70);
}

.page-login .form-footer a{
  color: #000;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Login: password toggle + forgot link */
.password-wrap{
  position: relative;
  width: 100%;
}

.password-wrap input{
  padding-right: 52px; /* place pour le bouton 👁️ */
}

.toggle-password{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);

  width: 40px;
  height: 40px;
  border-radius: 12px;

  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.85);
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.15s ease, background-color 0.2s ease;
}

.toggle-password:hover{
  transform: translateY(-50%) scale(1.03);
  background: #fff;
}

.form-extra{
  display: flex;
  justify-content: flex-end;
  margin-top: -6px; /* rapproche du champ */
}

.forgot-link{
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(0,0,0,0.72);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.forgot-link:hover{
  color: #000;
}

/************************************ All Collages Page ************************************/
.collages-hero{
  position: relative;
  min-height: 52vh;
  display: grid;
  place-items: center;
  padding: 100px 20px 70px;
  text-align: center;
  overflow: hidden;

  background-image: url("img/visuel_pro.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.collages-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.18);
  z-index: 0;
}

.collages-hero-content{
  position: relative;
  z-index: 1;
  width: min(820px, 92vw);
  padding: 34px 28px;
  border-radius: 28px;

  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 24px 80px rgba(0,0,0,0.14);
}

.collages-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;

  background: rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.78);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.collages-hero-content h1{
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 900;
  color: #0b0b0b;
}

/* --- AÉRATION DU TEXTE HERO --- */
.collages-hero-content p {
  margin: 0 auto;
  max-width: 740px;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
  color: rgba(0,0,0,0.75);
}

.hero-text-blocks {
  margin-top: 18px;
  text-align: left; /* Aligne à gauche pour mieux lire les gros blocs */
}

.hero-text-blocks p {
  margin-bottom: 16px;
}

.hero-text-blocks p.highlight-text {
  text-align: center;
  font-weight: 800;
  color: #ff4f87;
  font-size: 1.15rem;
  margin-top: 24px;
}

.collages-intro-card h2{
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.collages-intro-card p{
  margin: 0;
  line-height: 1.7;
  color: rgba(0,0,0,0.72);
  font-size: 1.02rem;
}

/* --- SECTION GALERIE & CARTE FLOTTANTE --- */
.all-collages-section {
  padding: 0 40px 100px; /* Plus de padding en haut, la carte va remonter ! */
  background:
    radial-gradient(1100px 520px at 15% 10%, rgba(0,0,0,0.04), transparent 55%),
    radial-gradient(900px 480px at 85% 15%, rgba(0,0,0,0.03), transparent 60%),
    #fafafa;
}

.collages-intro-card {
  position: relative;
  z-index: 10;
  max-width: 980px;
  /* La magie est ici : -60px remonte la carte sur l'image, 70px l'éloigne du titre en dessous ! */
  margin: -60px auto 70px; 
  padding: 36px 30px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(250,250,250,0.98));
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 24px 60px rgba(0,0,0,0.08); /* Belle ombre pour le relief */
  text-align: center;
}

.collages-intro-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #111;
}

.collages-intro-card p {
  margin: 0 auto;
  max-width: 800px;
  line-height: 1.7;
  color: rgba(0,0,0,0.72);
  font-size: 1.08rem;
}

.all-collages-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px; /* Plus d'espace sous le header de la grille */
}

.all-collages-header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.all-collages-header p {
  margin: 0;
  color: rgba(0,0,0,0.72);
  line-height: 1.6;
  font-size: 1.02rem;
}

.all-collages-header h2{
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.all-collages-header p{
  margin: 0;
  color: rgba(0,0,0,0.72);
  line-height: 1.6;
  font-size: 1.02rem;
}

.all-collages-grid{
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.collage-item{
  text-decoration: none;
  color: inherit;
  display: block;

  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  overflow: hidden;

  box-shadow: 0 18px 55px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.collage-item:hover{
  transform: translateY(-5px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.12);
}

.collage-item img{
  width: 100%;
  display: block;
  aspect-ratio: 4 / 4;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.collage-item:hover img{
  transform: scale(1.03);
  filter: saturate(1.04);
}

.collage-item-info{
  padding: 16px 16px 18px;
  text-align: left;
}

/* --- ALIGNEMENT IDÉAL DES TITRES DE CARTES --- */
.collage-item-info h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.4;
  
  /* Force le titre sur 2 lignes max avec "..." à la fin */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em; /* Assure que toutes les cartes ont la même hauteur */
}

.collage-item-info span{
  display: inline-block;
  font-size: 0.92rem;
  color: rgba(0,0,0,0.58);
}

@media (max-width: 1100px){
  .all-collages-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px){
  .all-collages-section{
    padding: 60px 18px 80px;
  }

  .all-collages-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .collages-hero{
    padding: 80px 18px 50px;
  }

  .collages-hero-content{
    padding: 26px 18px;
    border-radius: 22px;
  }
}

@media (max-width: 520px){
  .all-collages-grid{
    grid-template-columns: 1fr;
  }

  .collage-item img{
    aspect-ratio: 16 / 12;
  }
}

/************************************ Product Detail Page ************************************/
.product-detail-section{
  padding: 80px 40px 50px;
  background:
    radial-gradient(1100px 520px at 15% 10%, rgba(0,0,0,0.04), transparent 55%),
    radial-gradient(900px 480px at 85% 15%, rgba(0,0,0,0.03), transparent 60%),
    #fafafa;
}

.product-detail-container{
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.product-detail-image-card{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.08);
}

.product-detail-image-card img{
  width: 100%;
  display: block;
  border-radius: 24px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: 0 12px 34px rgba(0,0,0,0.10);
}

.product-detail-content{
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 30px;
  padding: 34px 30px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.08);
}

.product-detail-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.07);
  color: rgba(0,0,0,0.75);
  font-size: 0.9rem;
  font-weight: 800;
}

.product-detail-content h1{
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.product-detail-price{
  margin: 0 0 18px;
  font-size: 1.8rem;
  font-weight: 900;
  color: #111;
}

.product-detail-description{
  margin: 0 0 22px;
  font-size: 1.04rem;
  line-height: 1.75;
  color: rgba(0,0,0,0.72);
}

.product-detail-features{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.product-feature-item{
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.05);
  font-weight: 700;
  color: rgba(0,0,0,0.78);
}

.product-detail-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-secondary-btn{
  background: rgba(0,0,0,0.08);
  color: #000;
}

.product-secondary-btn:hover{
  background: rgba(0,0,0,0.14);
  color: #000;
}

.product-info-section{
  padding: 20px 40px 70px;
  background: #fafafa;
}

.product-info-container{
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-info-card{
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.06);
}

.product-info-card h2{
  margin: 0 0 12px;
  font-size: 1.28rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.product-info-card p{
  margin: 0;
  line-height: 1.72;
  color: rgba(0,0,0,0.72);
}

.product-bottom-cta{
  padding: 0 40px 90px;
  background: #fafafa;
}

.product-bottom-cta-card{
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: 34px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,250,250,0.98));
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 60px rgba(0,0,0,0.08);
}

.product-bottom-cta-card h2{
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.product-bottom-cta-card p{
  margin: 0 0 20px;
  color: rgba(0,0,0,0.72);
  line-height: 1.6;
  font-size: 1.02rem;
}

.product-bottom-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 980px){
  .product-detail-container{
    grid-template-columns: 1fr;
  }

  .product-info-container{
    grid-template-columns: 1fr;
  }

  .product-detail-features{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px){
  .product-detail-section,
  .product-info-section,
  .product-bottom-cta{
    padding-left: 18px;
    padding-right: 18px;
  }

  .product-detail-image-card,
  .product-detail-content,
  .product-info-card,
  .product-bottom-cta-card{
    border-radius: 22px;
  }

  .product-detail-image-card{
    padding: 16px;
  }

  .product-detail-content{
    padding: 24px 18px;
  }

  .product-detail-image-card img{
    border-radius: 18px;
  }
}

/************************************ Checkout / Order page ************************************/
.checkout-page{
  background:
    radial-gradient(1100px 520px at 15% 10%, rgba(0,0,0,0.04), transparent 55%),
    radial-gradient(900px 480px at 85% 15%, rgba(0,0,0,0.03), transparent 60%),
    #f6f6f6;
  padding: 70px 40px 90px;
}

.checkout-wrapper{
  max-width: 1280px;
  margin: 0 auto;
}

.checkout-grid{
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.checkout-card,
.checkout-summary-card{
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.06);
}

.checkout-top{
  margin-bottom: 18px;
}

.checkout-top h1{
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.checkout-account-msg{
  margin: 0 0 10px;
  color: rgba(0,0,0,0.68);
  line-height: 1.6;
}

.checkout-account-msg a{
  color: #000;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-account-msg.success{
  color: #0f6a30;
}

.checkout-error{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,0,0,0.08);
  border: 1px solid rgba(255,0,0,0.16);
  color: #a00000;
  font-weight: 700;
}

.checkout-form{
  display: grid;
  gap: 18px;
}

.checkout-two-cols{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkout-form .form-group{
  margin: 0;
}

.checkout-form .form-group label{
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  color: rgba(0,0,0,0.82);
}

.checkout-form .form-group label span{
  color: #000;
}

.checkout-form input,
.checkout-form select{
  width: 100%;
  max-width: 100%;
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  font-size: 1rem;
  box-sizing: border-box;
}

.checkout-form input:focus,
.checkout-form select:focus{
  outline: none;
  border-color: rgba(0,0,0,0.28);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.08);
}

.checkout-form small{
  display: block;
  margin-top: 8px;
  color: rgba(0,0,0,0.45);
  line-height: 1.4;
}

.checkout-radio-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.checkout-radio-grid label{
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.02);
  font-weight: 700 !important;
  cursor: pointer;
  margin-bottom: 0 !important;
}

.checkout-checkbox{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: rgba(0,0,0,0.72);
}

.checkout-checkbox input{
  width: auto;
}

.checkout-actions{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.checkout-back-link{
  color: rgba(0,0,0,0.72);
  text-decoration: none;
  font-weight: 700;
}

.checkout-back-link:hover{
  color: #000;
}

.checkout-next-btn{
  border: none;
  background: #f57c20;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 16px 28px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.checkout-next-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245,124,32,0.25);
}

.checkout-summary-card h2{
  margin: 0 0 18px;
  font-size: 1.35rem;
  font-weight: 900;
}

.checkout-product-box{
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.checkout-product-box img{
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 16px;
}

.checkout-product-box h3{
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.checkout-product-price{
  margin: 0;
  font-weight: 900;
  font-size: 1.1rem;
}

.checkout-summary-line,
.checkout-summary-total{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.checkout-summary-total{
  font-size: 1.08rem;
  font-weight: 900;
}

.checkout-summary-note{
  margin: 16px 0 0;
  color: rgba(0,0,0,0.58);
  line-height: 1.6;
  font-size: 0.95rem;
}

@media (max-width: 1050px){
  .checkout-grid{
    grid-template-columns: 1fr;
  }

  .checkout-radio-grid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px){
  .checkout-page{
    padding: 50px 18px 70px;
  }

  .checkout-card,
  .checkout-summary-card{
    padding: 20px 16px;
    border-radius: 20px;
  }

  .checkout-two-cols{
    grid-template-columns: 1fr;
  }

  .checkout-radio-grid{
    grid-template-columns: 1fr;
  }

  .checkout-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .checkout-next-btn{
    width: 100%;
  }
}

/************************************ Payment step ************************************/
.payment-page{
  background: #f4f4f4;
  min-height: 100vh;
  padding-bottom: 70px;
}

.payment-topbar{
  background: #2f91d9;
  padding: 28px 20px 70px;
}

.payment-steps{
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.payment-step{
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
  text-align: center;
}

.payment-step span{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.25);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.45);
}

.payment-step p{
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #fff;
  line-height: 1.3;
}

.payment-step.done span{
  background: #fff;
  color: #2f91d9;
  border-color: #fff;
}

.payment-step.current span{
  background: #2f91d9;
  color: #fff;
  border-color: #fff;
}

.payment-line{
  width: 60px;
  height: 2px;
  background: rgba(255,255,255,0.35);
  margin: 0 6px;
}

.payment-line.done,
.payment-line.active{
  background: #fff;
}

.payment-layout{
  max-width: 1260px;
  margin: -48px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
  align-items: start;
}

.payment-main-card,
.payment-summary-card{
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 35px rgba(0,0,0,0.06);
  padding: 24px;
}

.payment-main-card h1{
  margin: 0 0 18px;
  font-size: 1.6rem;
  font-weight: 900;
  color: #1780d7;
}

.payment-method-form{
  display: grid;
  gap: 10px;
}

.payment-method-option{
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.payment-method-option:hover{
  border-color: #2f91d9;
  background: rgba(47,145,217,0.03);
}

.payment-method-option input{
  transform: scale(1.1);
}

.payment-method-content{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-method-content strong{
  font-size: 1rem;
  color: #222;
}

.payment-method-content small{
  color: rgba(0,0,0,0.55);
  line-height: 1.4;
}

.payment-method-option.disabled{
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(0,0,0,0.02);
}

.payment-actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.payment-back-link{
  text-decoration: none;
  color: #1780d7;
  font-weight: 700;
}

.payment-submit-btn{
  border: none;
  background: #f57c20;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 15px 26px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.payment-submit-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245,124,32,0.25);
}

.payment-summary-card h2{
  margin: 0 0 6px;
  font-size: 1.4rem;
  color: #1780d7;
  font-weight: 900;
}

.payment-summary-items{
  margin: 0 0 18px;
  color: rgba(0,0,0,0.55);
}

.payment-summary-product{
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.payment-summary-product img{
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.payment-summary-product h3{
  margin: 0 0 6px;
  font-size: 0.98rem;
  line-height: 1.35;
}

.payment-summary-product p{
  margin: 0;
  color: rgba(0,0,0,0.6);
}

.payment-summary-line,
.payment-summary-total{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.payment-summary-total{
  font-weight: 900;
  font-size: 1.05rem;
}

.payment-summary-note{
  margin: 16px 0 0;
  color: rgba(0,0,0,0.55);
  line-height: 1.5;
  font-size: 0.94rem;
}

@media (max-width: 980px){
  .payment-layout{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px){
  .payment-topbar{
    padding: 22px 14px 60px;
  }

  .payment-layout{
    margin-top: -40px;
    padding: 0 14px;
  }

  .payment-steps{
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
  }

  .payment-main-card,
  .payment-summary-card{
    padding: 18px 16px;
  }

  .payment-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .payment-submit-btn{
    width: 100%;
  }
}

/************************************ Cart page ************************************/
.cart-page{
  background: #f7f7f7;
  min-height: 100vh;
}

.cart-hero-simple{
  padding: 70px 20px 30px;
  text-align: center;
}

.cart-hero-simple-content{
  max-width: 760px;
  margin: 0 auto;
}

.cart-hero-simple h1{
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
}

.cart-hero-simple p{
  margin: 0;
  color: rgba(0,0,0,0.65);
  font-size: 1.05rem;
}

.cart-content-section{
  padding: 0 20px 70px;
}

.cart-layout{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.cart-items-card,
.cart-summary-card,
.cart-empty-card{
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 14px 40px rgba(0,0,0,0.06);
  padding: 24px;
}

.cart-items-card h2,
.cart-summary-card h2,
.cart-empty-card h2{
  margin: 0 0 18px;
  font-size: 1.5rem;
  font-weight: 850;
}

.cart-item-row{
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.cart-item-row:first-of-type{
  border-top: none;
  padding-top: 0;
}

.cart-item-row img{
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 18px;
}

.cart-item-info h3{
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.4;
}

.cart-item-info p{
  margin: 0 0 6px;
  color: rgba(0,0,0,0.65);
}

.cart-item-actions{
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item-actions strong{
  font-size: 1.05rem;
}

.cart-remove-link{
  color: #c0392b;
  text-decoration: none;
  font-weight: 700;
}

.cart-remove-link:hover{
  text-decoration: underline;
}

.cart-summary-line,
.cart-summary-total{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.cart-summary-total{
  font-size: 1.08rem;
  font-weight: 850;
}

.cart-checkout-btn{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  justify-content: center;
  margin-top: 18px;

  display: inline-flex;
  padding: 14px 20px;
}

.cart-summary-note{
  color: rgba(0,0,0,0.6);
  line-height: 1.5;
}

.cart-empty-card{
  text-align: center;
}

.cart-empty-card p{
  margin: 0 0 18px;
  color: rgba(0,0,0,0.65);
}

@media (max-width: 920px){
  .cart-layout{
    grid-template-columns: 1fr;
  }

  .cart-item-row{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cart-item-row img{
    margin: 0 auto;
  }

  .cart-item-actions{
    text-align: center;
  }
}

.login-result-actions{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.login-result-actions .cta-button{
  min-width: 210px;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

/************************************ Admin page ************************************/
.admin-page{
  background:
    radial-gradient(1100px 520px at 15% 10%, rgba(0,0,0,0.04), transparent 55%),
    radial-gradient(900px 480px at 85% 15%, rgba(0,0,0,0.03), transparent 60%),
    #f7f7f7;
  min-height: 100vh;
}

.admin-hero{
  padding: 70px 20px 30px;
  text-align: center;
}

.admin-hero-content{
  max-width: 760px;
  margin: 0 auto;
}

.admin-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.75);
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.admin-hero h1{
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
}

.admin-hero p{
  margin: 0;
  color: rgba(0,0,0,0.65);
  font-size: 1.02rem;
}

.admin-orders-section{
  padding: 0 20px 80px;
}

.admin-orders-card{
  max-width: 1350px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 16px 50px rgba(0,0,0,0.06);
  padding: 24px;
}

.admin-orders-top{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-orders-top h2{
  margin: 0;
  font-size: 1.5rem;
  font-weight: 900;
}

.admin-orders-top p{
  margin: 0;
  color: rgba(0,0,0,0.6);
  font-weight: 700;
}

.admin-table-wrap{
  overflow-x: auto;
}

.admin-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px;
}

.admin-table th,
.admin-table td{
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  vertical-align: top;
}

.admin-table th{
  font-size: 0.95rem;
  font-weight: 900;
  color: #000;
  background: rgba(0,0,0,0.03);
}

.admin-table td{
  font-size: 0.95rem;
  color: rgba(0,0,0,0.74);
}

.admin-empty-state{
  text-align: center;
  padding: 40px 20px;
}

.admin-empty-state h3{
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 850;
}

.admin-empty-state p{
  margin: 0;
  color: rgba(0,0,0,0.62);
}

/************************************ Forgot password ************************************/
.forgot-password-card{
  width: min(680px, 92vw);
}

.form-message{
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.form-message-success{
  background: rgba(46, 204, 113, 0.10);
  border: 1px solid rgba(46, 204, 113, 0.22);
  color: #166534;
}

.form-message-error{
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.16);
  color: #a00000;
}

.forgot-password-card{
  width: min(680px, 92vw);
}

.form-message{
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.form-message-success{
  background: rgba(46, 204, 113, 0.10);
  border: 1px solid rgba(46, 204, 113, 0.22);
  color: #166534;
}

.form-message-error{
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.16);
  color: #a00000;
}

.form-message{
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.form-message-success{
  background: rgba(46, 204, 113, 0.10);
  border: 1px solid rgba(46, 204, 113, 0.22);
  color: #166534;
}

.form-message-error{
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.16);
  color: #a00000;
}

.form-message{
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  line-height: 1.5;
  text-align: center;
  font-weight: 700;
}

.form-message-error{
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.16);
  color: #a00000;
}

.form-message{
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.form-message-error{
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.18);
  color: #a30000;
}

.form-message-success{
  background: rgba(0, 160, 80, 0.08);
  border: 1px solid rgba(0, 160, 80, 0.18);
  color: #0b6b3a;
}

.password-hint{
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(0,0,0,0.58);
}

.form-success{
  color: #0f6a30;
}

.product-title-row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.product-title-row h1{
  margin: 0;
  flex: 1;
}

.favourite-form{
  margin: 0;
}

.favourite-btn{
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  color: #111;
  font-size: 1.8rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.favourite-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}

.favourite-btn.is-favourite{
  color: #e53935;
  background: rgba(229,57,53,0.08);
  border-color: rgba(229,57,53,0.18);
}

@media (max-width: 650px){
  .product-title-row{
    flex-direction: column;
    align-items: stretch;
  }

  .favourite-btn{
    width: 52px;
    height: 52px;
  }
}

.form-message{
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.form-message-success{
  background: rgba(28, 180, 84, 0.10);
  border: 1px solid rgba(28, 180, 84, 0.22);
  color: #146c36;
}

.form-message-error{
  background: rgba(220, 53, 69, 0.10);
  border: 1px solid rgba(220, 53, 69, 0.22);
  color: #a61e2d;
}

.contact-honeypot{
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.checkout-phone-row{
  display: grid;
  grid-template-columns: 250px 1fr; /* On donne plus de place au menu déroulant */
  gap: 12px;
}

@media (max-width: 700px){
  .checkout-phone-row{
    grid-template-columns: 1fr;
  }
}

.product-country-notice{
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(245,124,32,0.10);
  border: 1px solid rgba(245,124,32,0.22);
  color: #8a4a12;
  line-height: 1.6;
  font-weight: 600;
}

.product-country-notice strong{
  color: #6f390b;
}

.cart-qty-form{
  margin: 10px 0 8px;
}

.cart-qty-form label{
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: rgba(0,0,0,0.72);
}

.cart-qty-controls{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cart-qty-controls input[type="number"]{
  width: 90px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  font-size: 1rem;
  box-sizing: border-box;
}

.cart-qty-controls input[type="number"]:focus{
  outline: none;
  border-color: rgba(0,0,0,0.28);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.08);
}

.cart-update-btn{
  border: none;
  background: #111;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cart-update-btn:hover{
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

.starter-bundle-image-wrap {
  flex: 1 1 400px; /* ⬆️ On lui donne plus d'espace de base (passé de 360 à 400) */
  display: flex;
  justify-content: center;
}

.starter-bundle-image-link {
  display: block;
  width: 100%;
  max-width: 550px; /* ⬆️ On augmente la taille maximale de l'image (passé de 420 à 550) */
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animation rebond sympa */
}

/* Effet au survol : l'image grossit très légèrement pour inciter au clic */
.starter-bundle-image-link:hover {
  transform: scale(1.04) rotate(1deg); 
}

.starter-bundle-image-frame {
  width: 100%;
  border: 2px dashed #ffb6c9;
  border-radius: 30px / 45px;
  overflow: hidden;
  box-sizing: border-box;
  background: #fff; /* Pour faire ressortir l'image */
  box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Petite ombre douce */
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.starter-bundle-image-link:hover .starter-bundle-image-frame {
  box-shadow: 0 20px 40px rgba(255, 122, 168, 0.2); /* Ombre rose au survol */
  border-color: #ff7aa8; /* La bordure s'assombrit au survol */
}

.starter-bundle-image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.starter-bundle-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 26px; /* ⬆️ Coins plus arrondis pour s'adapter au nouveau cadre */
}

.starter-bundle-offer{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 214, 231, 0.9), transparent 22%),
    radial-gradient(circle at 90% 20%, rgba(255, 240, 170, 0.85), transparent 22%),
    radial-gradient(circle at 20% 85%, rgba(208, 244, 222, 0.75), transparent 20%),
    radial-gradient(circle at 85% 82%, rgba(210, 234, 255, 0.85), transparent 24%),
    linear-gradient(180deg, #fff8fb 0%, #fffdf8 100%) !important;
}

.starter-bundle-offer h1{
  color: #ff4f87;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.starter-bundle-offer p{
  color: #4b5563 !important;
}

.starter-bundle-offer span{
  background: linear-gradient(135deg, #ff7aa8, #ffb347) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(255, 122, 168, 0.20);
}

.starter-bundle-image{
  border-radius: 22px;
}

.admin-dashboard-section{
  padding: 0 20px 80px;
}

.admin-dashboard-wrap{
  max-width: 1350px;
  margin: 0 auto;
}

.admin-quick-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.admin-quick-link{
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.08);
  color: #222;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.admin-quick-link:hover{
  transform: translateY(-1px);
  background: #fff;
}

.admin-quick-link.active{
  background: linear-gradient(135deg, #4db8ff, #7b68ee);
  color: #fff;
  border-color: transparent;
}

.admin-stats-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.admin-stat-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.06);
}

.admin-stat-card strong{
  display: block;
  font-size: 2rem;
  font-weight: 900;
  margin: 8px 0 6px;
  color: #1e293b;
}

.admin-stat-label{
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #667085;
}

.admin-stat-card small{
  color: rgba(0,0,0,0.58);
  line-height: 1.4;
}

.admin-stat-card-warning{
  background: linear-gradient(180deg, #fffaf0, #ffffff);
  border-color: rgba(245,124,32,0.18);
}

.admin-dashboard-grid{
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
  margin-bottom: 20px;
}

.admin-panel-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.06);
}

.admin-panel-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-panel-top h2{
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.admin-panel-link{
  text-decoration: none;
  color: #4f46e5;
  font-weight: 700;
}

.admin-mini-stats-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-mini-stat{
  padding: 16px;
  border-radius: 18px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
}

.admin-mini-stat span{
  display: block;
  color: rgba(0,0,0,0.6);
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.admin-mini-stat strong{
  font-size: 1.5rem;
  font-weight: 900;
}

.admin-panel-actions{
  margin-top: 18px;
}

.admin-action-list{
  display: grid;
  gap: 12px;
}

.admin-action-item{
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-action-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.admin-action-item strong{
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.admin-action-item span{
  color: rgba(0,0,0,0.62);
  line-height: 1.5;
  font-size: 0.94rem;
}

.admin-user-list{
  display: grid;
  gap: 12px;
}

.admin-user-item{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
}

.admin-user-item strong{
  display: block;
  margin-bottom: 4px;
}

.admin-user-item span{
  color: rgba(0,0,0,0.62);
  font-size: 0.94rem;
}

.admin-role-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  font-weight: 800;
  color: #333;
  white-space: nowrap;
}

.admin-role-badge.is-admin{
  background: linear-gradient(135deg, #4db8ff, #7b68ee);
  color: #fff;
}

.admin-status-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
}

.admin-status-badge.is-paid{
  background: rgba(34,197,94,0.12);
  color: #166534;
}

.admin-status-badge.is-pending{
  background: rgba(245,124,32,0.12);
  color: #9a4b00;
}

.checkout-success{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.20);
  color: #166534;
  font-weight: 700;
}

@media (max-width: 1100px){
  .admin-stats-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px){
  .admin-stats-grid{
    grid-template-columns: 1fr;
  }

  .admin-mini-stats-grid{
    grid-template-columns: 1fr;
  }

  .admin-user-item{
    flex-direction: column;
    align-items: flex-start;
  }
}

.admin-dashboard-wrap,
.admin-orders-card,
.admin-panel-card,
.admin-user-item,
.admin-table-wrap,
.admin-dashboard-grid,
.admin-stats-grid{
  min-width: 0;
}

.admin-dashboard-grid{
  display: grid;
  gap: 20px;
  align-items: start;
}

.admin-dashboard-grid-equal{
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.admin-dashboard-grid-main{
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.9fr);
}

.admin-panel-card-wide{
  min-width: 0;
}

.admin-panel-card-side{
  min-width: 0;
  overflow: hidden;
}

.admin-user-list{
  display: grid;
  gap: 12px;
  width: 100%;
}

.admin-user-item{
  width: 100%;
  box-sizing: border-box;
}

.admin-user-item-link{
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-user-item-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.04);
}

.admin-user-main{
  min-width: 0;
  flex: 1;
}

.admin-user-main strong,
.admin-user-main span{
  display: block;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.admin-table-wrap{
  overflow-x: auto;
  width: 100%;
}

.admin-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}

.admin-table-dashboard{
  min-width: 860px;
}

.admin-table-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(79,70,229,0.10);
  color: #4338ca;
  font-weight: 800;
}

.admin-table-link:hover{
  background: rgba(79,70,229,0.16);
}

.admin-detail-list{
  display: grid;
  gap: 12px;
}

.admin-detail-list div{
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  line-height: 1.5;
}

.admin-order-items{
  display: grid;
  gap: 16px;
}

.admin-order-item{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
}

.admin-order-item-image img{
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.admin-order-item-placeholder{
  width: 120px;
  height: 120px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.5);
  font-weight: 700;
}

.admin-order-item-content h3{
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 850;
}

.admin-order-item-content p{
  margin: 0 0 8px;
  color: rgba(0,0,0,0.72);
}

@media (max-width: 1200px){
  .admin-dashboard-grid-main{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px){
  .admin-dashboard-grid-equal{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px){
  .admin-order-item{
    grid-template-columns: 1fr;
  }

  .admin-order-item-image img,
  .admin-order-item-placeholder{
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

.admin-dashboard-grid-main{
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.9fr);
}

.admin-panel-card-side,
.admin-user-main,
.admin-dashboard-wrap,
.admin-dashboard-grid{
  min-width: 0;
}

.starter-bundle-empty{
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: rgba(0,0,0,0.45);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.7),
      rgba(255,255,255,0.7) 12px,
      rgba(0,0,0,0.03) 12px,
      rgba(0,0,0,0.03) 24px
    );
  border-radius: 26px;
}

.newsletter p strong{
  color: #fff;
}

.newsletter small{
  margin-top: 10px;
}

.hero-content,
.hero-content-about,
.collages-hero-content,
.form-card,
.templates-content,
.product-card,
.product-detail-content,
.product-detail-image-card,
.product-info-card,
.product-bottom-cta-card,
.checkout-card,
.checkout-summary-card,
.payment-main-card,
.payment-summary-card,
.cart-items-card,
.cart-summary-card,
.cart-empty-card,
.admin-orders-card,
.admin-panel-card {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 650px) {
  .hero-content,
  .hero-content-about,
  .collages-hero-content,
  .form-card {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero,
  .templates,
  .collage-gallery,
  .product-section,
  .product-detail-section,
  .product-info-section,
  .product-bottom-cta,
  .checkout-page,
  .cart-content-section,
  .admin-orders-section,
  .contact-form {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/************************************ Account Page ************************************/
.account-page {
  background:
    radial-gradient(1100px 520px at 15% 10%, rgba(255, 214, 231, 0.45), transparent 55%),
    radial-gradient(900px 480px at 85% 15%, rgba(210, 234, 255, 0.45), transparent 60%),
    #fafafa;
  min-height: calc(100vh - 90px);
  padding: 70px 20px 100px;
}

.account-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 30px;
}

.account-card {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 26px;
  padding: 34px 30px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.06);
}

.account-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.account-card p.intro {
  margin: 0 0 24px;
  color: rgba(0,0,0,0.65);
  font-size: 1.05rem;
}

.order-history-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
}

.order-history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.order-history-table th,
.order-history-table td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.95rem;
}

.order-history-table th {
  background: rgba(0,0,0,0.03);
  font-weight: 800;
  color: #222;
}

.order-history-table tr:last-child td {
  border-bottom: none;
}

.account-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

@media (max-width: 650px) {
  .account-page {
    padding: 40px 16px 80px;
  }
  .account-card {
    padding: 24px 20px;
    border-radius: 20px;
  }
  .account-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .account-actions .cta-button {
    width: 100%;
    text-align: center;
  }
}

/************************************ Lightbox Carousel (Galerie plein écran) ************************************/
.lightbox-overlay {
  display: none; /* Caché par défaut, activé en JS */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Fond très sombre */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  object-fit: contain;
  transition: transform 0.3s ease;
}

.lightbox-caption {
  margin-top: 15px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  max-width: 80%;
}

/* Boutons de navigation (Croix et Flèches) */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: rgba(255,255,255,0.7);
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-close {
  top: 20px;
  right: 35px;
  font-size: 3.5rem;
}

.lightbox-prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-close:hover {
  transform: scale(1.1); /* Annule le translateY pour la croix */
}

/* Adaptation pour téléphones portables */
@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-img { max-width: 95%; max-height: 70vh; }
  .lightbox-caption { font-size: 1rem; }
}

/************************************ Kids Smile Section (Index) ************************************/
.kids-smile-section {
  position: relative;
  min-height: 720px;
  padding: 80px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* L'image de fond */
.kids-smile-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('img/enfants_qui_sourient_v3.png');
  background-size: contain;
  background-color: #000;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Un calque sombre pour rendre le texte lisible */
.kids-smile-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 50% de noir */
  z-index: 2;
}

/* Le contenu texte par-dessus l'image */
.kids-smile-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  color: #ffffff; /* Texte blanc */
}

.kids-smile-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Ombre pour détacher le texte */
}

.kids-smile-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Bouton spécifique pour cette section sombre */
.kids-smile-content .cta-button {
  background: #fff;
  color: #111;
  font-size: 1.1rem;
  padding: 16px 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.kids-smile-content .cta-button:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Adaptation Mobile */
@media (max-width: 768px) {
  .kids-smile-section {
    min-height: 520px;
    padding: 60px 20px;
  }

  .kids-smile-section::before {
    background-position: center 35%;
  }

  .kids-smile-content p {
    font-size: 1.05rem;
  }
}

.checkout-form .form-group:has(.checkout-checkbox) {
  margin: 0;
}

.checkout-form .form-group .checkout-checkbox,
.checkout-form > .checkout-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-weight: 700;
  color: rgba(0,0,0,0.72);
  cursor: pointer;
}

.checkout-form .form-group .checkout-checkbox input,
.checkout-form > .checkout-checkbox input {
  width: auto;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  transform: translateY(0);
}

/* ---------------------------------------------------- */
/* SECTION "MAKE YOUR CRAFTS" (User Community)          */
/* ---------------------------------------------------- */
.user-crafts-section {
  padding: 80px 40px;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 214, 231, 0.4), transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(210, 234, 255, 0.4), transparent 40%),
    #ffffff;
  border-top: 1px solid rgba(0,0,0,0.05);
  text-align: center;
}

.user-crafts-content {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 40px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}

.user-crafts-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: #ff4f87; /* Rose de ta charte */
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.user-crafts-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(0,0,0,0.75);
  margin-bottom: 26px;
}

.user-crafts-actions .cta-button {
  background: linear-gradient(135deg, #4db8ff, #7b68ee); /* Bouton bleu/violet pour contraster avec le rose */
  color: #fff;
  font-size: 1.1rem;
  padding: 16px 36px;
  box-shadow: 0 12px 25px rgba(123, 104, 238, 0.25);
}

.user-crafts-actions .cta-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 35px rgba(123, 104, 238, 0.35);
}

@media (max-width: 768px) {
  .user-crafts-section {
    padding: 60px 20px;
  }
  .user-crafts-content {
    padding: 30px 20px;
    border-radius: 20px;
  }
}

/************************************ Starter bundle layout update ************************************/
.starter-bundle-layout{
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: nowrap;
}

.starter-bundle-content{
  flex: 0 1 420px;
  max-width: 420px;
}

.starter-bundle-image-wrap{
  flex: 1 1 820px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.starter-bundle-image-link{
  display: block;
  width: 100%;
  max-width: 820px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.starter-bundle-image-link:hover{
  transform: scale(1.03);
}

.starter-bundle-image-frame{
  width: 100%;
  border: 2px dashed #ffb6c9;
  border-radius: 34px / 50px;
  overflow: hidden;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.starter-bundle-image{
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 28px;
}

/* Optionnel : on réduit un peu le texte pour que la gauche paraisse plus compacte */
.starter-bundle-content h2{
  font-size: clamp(1.8rem, 3vw, 3rem) !important;
}

.starter-bundle-content p{
  font-size: 1rem;
}

@media (max-width: 1100px){
  .starter-bundle-layout{
    flex-wrap: wrap;
    gap: 24px;
  }

  .starter-bundle-content{
    flex: 1 1 100%;
    max-width: 100%;
    order: 2;
  }

  .starter-bundle-image-wrap{
    flex: 1 1 100%;
    order: 1;
  }

  .starter-bundle-image-link{
    max-width: 720px;
  }
}

/************************************ Free template block ************************************/
.templates-freebie{
  margin-top: 28px;
}

.templates-freebie-intro{
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(0,0,0,0.72);
}

.templates-freebie-highlight{
  margin: 0 0 18px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #111;
}

.templates-freebie-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.template-freebie-card{
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.template-freebie-image{
  width: 100%;
  display: block;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 12px;
}

.template-freebie-card h3{
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.template-freebie-card p{
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(0,0,0,0.68);
}

.template-freebie-pdf-link{
  display: block;
  text-decoration: none;
  margin-bottom: 12px;
}

.template-freebie-pdf-preview{
  width: 100%;
  min-height: 240px;
  border-radius: 16px;
  border: 2px dashed rgba(123,104,238,0.35);
  background: linear-gradient(180deg, #ffffff, #f7f7ff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.template-freebie-pdf-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 18px;
  background: linear-gradient(135deg, #4db8ff, #7b68ee);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.template-freebie-pdf-meta strong{
  display: block;
  font-size: 1.05rem;
  color: #111;
  margin-bottom: 6px;
}

.template-freebie-pdf-meta span{
  display: block;
  font-size: 0.95rem;
  color: rgba(0,0,0,0.62);
}

.template-freebie-pdf-preview span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 18px;
  background: linear-gradient(135deg, #4db8ff, #7b68ee);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.template-freebie-pdf-link:hover .template-freebie-pdf-preview{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(123,104,238,0.12);
  border-color: rgba(123,104,238,0.55);
}

.template-email-box{
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.template-email-form{
  display: grid;
  gap: 14px;
}

@media (max-width: 900px){
  .templates-freebie-grid{
    grid-template-columns: 1fr;
  }
}

.comptines-section {
  padding: 90px 20px;
  background: linear-gradient(180deg, #fff7ef 0%, #ffffff 100%);
}

.comptines-container {
  max-width: 1200px;
  margin: 0 auto;
}

.comptines-header {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 42px;
}

.comptines-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 14px 0;
}

.comptines-header p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
}

.comptines-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.comptine-preview-card,
.comptine-download-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
}

.comptine-preview-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  display: block;
}

.comptine-preview-content {
  padding: 22px;
}

.comptine-preview-content h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.comptine-preview-content p {
  color: #555;
  line-height: 1.6;
}

.comptines-download-area {
  text-align: center;
}

.comptines-download-area > h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.comptines-download-area > p {
  color: #555;
  margin-bottom: 30px;
}

.comptines-download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.comptine-download-card {
  padding: 24px;
}

.comptine-pdf-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 1px;
}

.comptine-download-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.comptine-download-card p {
  color: #555;
  margin-bottom: 16px;
}

.comptine-download-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comptine-download-form input[type="email"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 999px;
  font-size: 0.95rem;
}

.comptine-download-form small {
  color: #666;
  font-size: 0.8rem;
  line-height: 1.4;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 950px) {
  .comptines-preview-grid,
  .comptines-download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .comptines-preview-grid,
  .comptines-download-grid {
    grid-template-columns: 1fr;
  }

  .comptine-preview-card img {
    height: 260px;
  }
}

.template-freebie-preview-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.template-watermarked-preview {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 2px dashed rgba(120, 100, 255, 0.28);
  background: #fff;
  padding: 10px;
  margin-bottom: 18px;
}

.template-watermarked-preview img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: #fff;
  user-select: none;
  pointer-events: none;
}

.template-preview-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.language-switcher-label {
  font-size: 1rem;
  line-height: 1;
}

.language-switcher-select {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  color: #111;
  outline: none;
}

.language-switcher-select:hover {
  border-color: rgba(0, 0, 0, 0.28);
}

@media (max-width: 768px) {
  .language-switcher {
    width: 100%;
    justify-content: center;
    margin: 8px 0;
  }

  .language-switcher-select {
    width: 100%;
    max-width: 220px;
    text-align: center;
  }
}

/************************************ Comptines preview + download pairs FIX ************************************/
.comptines-template-list {
  display: grid;
  gap: 34px;
  margin-top: 44px;
}

.comptine-template-pair {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start; /* IMPORTANT : empêche la carte de gauche de devenir géante */
}

.comptine-template-pair .comptine-preview-card,
.comptine-template-pair .comptine-download-card {
  height: auto; /* IMPORTANT */
}

.comptine-template-pair .comptine-preview-card {
  align-self: start;
}

.comptine-template-pair .comptine-preview-card img {
  height: auto;
  max-height: 260px;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #fff;
}

.comptine-preview-content {
  padding: 18px;
}

.comptine-preview-content h3 {
  margin: 0 0 8px;
}

.comptine-preview-content p {
  margin: 0;
}

.comptine-card-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 14px 14px 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.07);
  color: rgba(0, 0, 0, 0.75);
  font-size: 0.78rem;
  font-weight: 800;
}

.comptine-downloads-stack {
  display: grid;
  gap: 18px;
}

.comptine-download-card-preview {
  text-align: left;
  padding: 18px;
}

.comptine-download-card-preview h4 {
  font-size: 1.08rem;
  line-height: 1.3;
  margin: 0 0 8px;
}

.comptine-download-card-preview p {
  margin: 0 0 12px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.comptine-watermarked-preview {
  margin-bottom: 14px;
  padding: 8px;
}

.comptine-watermarked-preview img {
  height: 220px;
  object-fit: contain;
  background: #fff;
}

.comptine-download-card-preview .comptine-download-form {
  margin-top: 12px;
}

.comptine-download-card-preview .cta-button {
  width: 100%;
  text-align: center;
}

@media (min-width: 951px) {
  .comptine-downloads-stack {
    align-self: start;
  }
}

@media (max-width: 950px) {
  .comptine-template-pair {
    grid-template-columns: 1fr;
  }

  .comptine-template-pair .comptine-preview-card img {
    max-height: 300px;
  }

  .comptine-watermarked-preview img {
    height: 260px;
  }
}

@media (max-width: 620px) {
  .comptines-template-list {
    gap: 24px;
  }

  .comptine-template-pair {
    gap: 18px;
  }

  .comptine-template-pair .comptine-preview-card img {
    max-height: 220px;
  }

  .comptine-watermarked-preview img {
    height: 220px;
  }
}

.no-download-preview,
.no-download-preview img,
.comptine-watermarked-preview,
.comptine-watermarked-preview img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.no-download-preview img,
.comptine-watermarked-preview img {
  pointer-events: none;
}

.no-download-preview {
  cursor: default;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.logo {
  order: -1; /* Force le logo à être premier */
  flex-shrink: 0; /* Empêche le logo de rétrécir */
}

.french-nursery-rhymes-section {
    padding: 60px 20px;
    background: #f9f9f9;
    box-sizing: border-box; /* Assure que padding n’ajoute pas de largeur */
    overflow: hidden;       /* Empêche les débordements */
}

.comptines-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 10px; /* petit padding pour éviter le débordement */
}

.comptine-block {
    flex: 1 1 300px;      /* largeur flexible, minimum 300px */
    max-width: 360px;     /* largeur maximale */
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

.comptine-preview img {
    width: 100%;
    height: auto;       /* force le ratio naturel */
    max-height: 240px;  /* limite la hauteur */
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.comptine-downloads .download-card {
    margin-top: 15px;
    width: 100%;
    box-sizing: border-box;
}

.comptine-download-card img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

@media (max-width: 950px) {
    .comptines-list {
        gap: 16px;
    }
    .comptine-block {
        flex: 1 1 45%;   /* 2 par ligne sur tablette */
        max-width: none;
    }
}

@media (max-width: 620px) {
    .comptines-list {
        flex-direction: column;
        gap: 14px;
    }
    .comptine-block {
        flex: 1 1 100%;  /* 1 par ligne sur mobile */
        max-width: 100%;
    }
    .comptine-preview img {
        max-height: 200px;
    }
}

.comptine-block .comptine-preview img {
    max-width: 100% !important;   /* Empêche l'image de dépasser son conteneur */
    height: auto !important;      /* Garde les proportions */
    display: block !important;    /* Évite les petits espaces en dessous de l'image */
    margin: 0 auto !important;    /* Centre l'image */
}

.comptine-block {
    width: 100% !important;
    max-width: 450px !important;  /* Ajustez selon vos besoins */
    margin: 20px auto !important; /* Centre les blocs */
    box-sizing: border-box !important;
    padding: 10px !important;
}

@media (max-width: 768px) {
    .comptine-block {
        max-width: 90% !important;
        padding: 5px !important;
    }
}

/* Conteneur des aperçus de comptines */
.comptine-preview {
    max-width: 220px;        /* largeur réduite pour ne pas dépasser */
    max-height: 300px;       /* hauteur maximale */
    margin: 0 auto;          /* centrer horizontalement */
    overflow: hidden;        /* coupe l'excès si trop grand */
    text-align: center;      /* centrer le texte */
}

.comptine-preview img {
    width: 100%;             /* adapte l'image à la largeur du conteneur */
    height: auto;            /* conserve le ratio original */
    display: block;
    margin: 0 auto;
}

/* Titre et description sous l'image */
.comptine-preview h3 {
    font-size: 1rem;
    margin: 8px 0 4px;
}

.comptine-preview p {
    font-size: 0.85rem;
    line-height: 1.3;
    color: #333;
}

/* Raccourci les cartes de téléchargement */
.comptine-downloads .download-card {
    max-width: 180px;        /* réduire la largeur */
    margin: 0 auto 20px;
}

.comptine-downloads .preview-img img {
    width: 100%;             /* adapte le watermark preview */
    height: auto;
}

/* Responsive : sur mobile, garde les aperçus plus petits */
@media (max-width: 768px) {
    .comptine-preview {
        max-width: 90%;
        max-height: auto;
    }
    .comptine-downloads .download-card {
        max-width: 90%;
    }
}

/* =========================================
   FIX LOGO HEADER PLUS GRAND
   ========================================= */

.header {
  min-height: 118px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.header.state-guest .logo.logo-v3 img {
  height: 300px !important;
}

.header.state-user .logo.logo-v3 img {
  height: 130px !important;
}

.header.state-admin .logo.logo-v3 img {
  height: 105px !important;
}

.logo img {
  transform: none !important;
}

.logo img:hover {
  transform: scale(1.04) !important;
}

/* Desktop moyen */
@media (max-width: 1500px) {
  .header {
    min-height: 105px;
  }

  .header.state-guest .logo.logo-v3 img {
    height: 125px !important;
  }

  .header.state-user .logo.logo-v3 img {
    height: 115px !important;
  }

  .header.state-admin .logo.logo-v3 img {
    height: 95px !important;
  }
}

/* Petit laptop */
@media (max-width: 1280px) {
  .header {
    min-height: 95px;
  }

  .header.state-guest .logo.logo-v3 img,
  .header.state-user .logo.logo-v3 img {
    height: 105px !important;
  }

  .header.state-admin .logo.logo-v3 img {
    height: 86px !important;
  }
}

/* Tablette / mobile burger */
@media (max-width: 1180px) {
  .header {
    min-height: auto;
  }

  .logo.logo-v3 img {
    height: 90px !important;
  }

  .header.scrolled .logo.logo-v3 img {
    height: 70px !important;
  }
}

/* Mobile */
@media (max-width: 520px) {
  .logo.logo-v3 img {
    height: 76px !important;
  }

  .header.scrolled .logo.logo-v3 img {
    height: 62px !important;
  }
}

/* =========================================
   FIX HEADER - BOUTONS PLUS GRANDS
   À coller tout en bas du style.css
   ========================================= */

.header .nav-links a,
.header .header-icons a {
  font-size: clamp(16px, 1.05vw, 19px) !important;
  padding: 13px 18px !important;
  gap: 8px !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.header .icon {
  font-size: 1.1em !important;
}

.header .menu-content {
  gap: 16px !important;
}

.header .nav-links,
.header .header-icons {
  gap: 10px !important;
}

.header .language-switcher-select {
  font-size: 1rem !important;
  padding: 11px 15px !important;
  max-width: 115px !important;
  font-weight: 800 !important;
}

/* État scroll : on garde plus compact mais lisible */
.header.scrolled .nav-links a,
.header.scrolled .header-icons a {
  font-size: 14px !important;
  padding: 8px 12px !important;
}

.header.scrolled .language-switcher-select {
  font-size: 0.88rem !important;
  padding: 7px 10px !important;
}

/* Desktop moyen */
@media (max-width: 1500px) {
  .header .nav-links a,
  .header .header-icons a {
    font-size: 15px !important;
    padding: 11px 14px !important;
  }

  .header .menu-content {
    gap: 12px !important;
  }

  .header .nav-links,
  .header .header-icons {
    gap: 7px !important;
  }
}

/* Petit laptop */
@media (max-width: 1280px) {
  .header .nav-links a,
  .header .header-icons a {
    font-size: 14px !important;
    padding: 10px 12px !important;
  }

  .header .menu-content {
    gap: 9px !important;
  }
}

/* Menu burger */
@media (max-width: 1180px) {
  .header .nav-links a,
  .header .header-icons a {
    font-size: 17px !important;
    padding: 15px 16px !important;
  }

  .header .nav-links,
  .header .header-icons {
    gap: 10px !important;
  }

  .header .language-switcher-select {
    font-size: 1rem !important;
    padding: 11px 14px !important;
  }
}

/* =========================================
   FIX HEADER - TOUT SUR UNE SEULE LIGNE
   À coller tout en bas de style.css
   ========================================= */

@media (min-width: 1181px) {
  .header {
    min-height: 190px;
    padding: 18px 42px !important;
    gap: 28px !important;
    flex-wrap: nowrap !important;
  }

  .logo {
    flex: 0 0 auto !important;
  }

  .logo.logo-v3 img {
    height: 150px !important;
  }

  .menu-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 18px !important;
    flex-wrap: nowrap !important;
  }

  .nav-links,
  .header-icons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    min-width: 0 !important;
  }

  .nav-links a,
  .header-icons a {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: clamp(15px, 0.95vw, 18px) !important;
    padding: 12px 16px !important;
    gap: 7px !important;
  }

  .language-switcher {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .language-switcher-select {
    font-size: 1rem !important;
    padding: 10px 14px !important;
    max-width: 120px !important;
  }
}

/* Écrans desktop plus serrés : garde une seule ligne */
@media (min-width: 1181px) and (max-width: 1600px) {
  .header {
    padding: 16px 28px !important;
    gap: 20px !important;
  }

  .logo.logo-v3 img {
    height: 135px !important;
  }

  .menu-content {
    gap: 12px !important;
  }

  .nav-links,
  .header-icons {
    gap: 8px !important;
  }

  .nav-links a,
  .header-icons a {
    font-size: 15px !important;
    padding: 10px 12px !important;
  }

  .language-switcher-select {
    font-size: 0.95rem !important;
    padding: 9px 12px !important;
    max-width: 105px !important;
  }
}

/* Petit laptop : encore une ligne, sans casser */
@media (min-width: 1181px) and (max-width: 1380px) {
  .logo.logo-v3 img {
    height: 118px !important;
  }

  .nav-links a,
  .header-icons a {
    font-size: 14px !important;
    padding: 9px 10px !important;
  }

  .nav-links,
  .header-icons {
    gap: 6px !important;
  }

  .menu-content {
    gap: 8px !important;
  }
}