/* assets/css/accueil.css */
.home-page {
  --home-primary: #04728b;
  --home-primary-dark: #035c71;
  --home-primary-soft: #eaf8fb;
  --home-text: #253b46;
  --home-text-soft: #64727a;
  --home-text-light: #8a969d;
  --home-border: #e5eaed;
  --home-background: #f7f9fa;
  --home-white: #fff;
  --home-success: #16a34a;
  --home-danger: #dc2626;
  --home-radius-sm: 10px;
  --home-radius-md: 16px;
  --home-radius-lg: 24px;
  --home-shadow-sm: 0 4px 14px rgba(37,59,70,.06);
  --home-shadow-md: 0 12px 35px rgba(37,59,70,.09);
  --home-transition: .25s ease;
  box-sizing: border-box;
}
.home-hero, .home-section {
  contain: layout paint; 
}
.home-page img {
  max-width: 100%;
  display: block;
  height: auto;
}
.home-page a {
  color: inherit;
}
.home-page h1, .home-page h2, .home-page h3, .home-page p {
  margin-top: 0;
}
.home-container {
  width: min(calc(100% - 40px), 1280px);
  margin: 0 auto;
}
.home-section {
  padding: 88px 0;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}
.section-eyebrow, .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--home-primary);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.section-heading h2 {
  margin: 0;
  color: var(--home-text);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -.7px;
}
.section-description {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--home-text-soft);
  font-size: 15px;
  line-height: 1.7;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--home-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color var(--home-transition), transform var(--home-transition);
}
.section-link span {
  font-size: 20px;
  line-height: 1;
}
.section-link:hover {
  color: var(--home-primary-dark);
  transform: translateX(3px);
}
.home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f1fbfd 0%, #fff 58%, #f6fafb 100%);
  border-bottom: 1px solid var(--home-border);
}
.home-hero::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -180px;
  top: -220px;
  border-radius: 50%;
  background: rgba(7,149,181,.055);
  pointer-events: none;
}
.home-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  left: -150px;
  bottom: -160px;
  border-radius: 50%;
  background: rgba(7,149,181,.035);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .85fr);
  align-items: center;
  gap: 60px;
  padding-top: 55px;
  padding-bottom: 55px;
}
.hero-content {
  max-width: 650px;
}
.hero-eyebrow {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--home-primary-soft);
  letter-spacing: .08em;
}
.hero-content h1 {
  max-width: 650px;
  margin: 18px 0 20px;
  color: var(--home-text);
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -2.2px;
}
.hero-content h1 strong {
  display: block;
  color: var(--home-primary);
  font-weight: 750;
}
.hero-description {
  max-width: 600px;
  margin-bottom: 30px;
  color: var(--home-text-soft);
  font-size: 17px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.home-page .btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 21px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  transition: transform var(--home-transition), box-shadow var(--home-transition), background var(--home-transition);
}
.home-page .btn:hover {
  transform: translateY(-2px);
}
.home-page .btn-primary {
  background: var(--home-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(7,149,181,.20);
}
.home-page .btn-primary:hover {
  background: var(--home-primary-dark);
  box-shadow: 0 12px 26px rgba(7,149,181,.25);
}
.home-page .btn-secondary {
  background: #fff;
  color: var(--home-text);
  border: 1px solid var(--home-border);
}
.home-page .btn-secondary:hover {
  border-color: #cbd7dc;
  box-shadow: var(--home-shadow-sm);
}
.btn-arrow {
  font-size: 19px;
  line-height: 1;
}
.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 30px;
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--home-text-soft);
  font-size: 12px;
  font-weight: 600;
}
.star-svg, .icon-svg {
  contain: strict;
  display: inline-block;
  vertical-align: middle;
}
.hero-trust-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8f7ee;
  color: var(--home-success);
  font-size: 11px;
  font-weight: 800;
}
.hero-visual {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: min(440px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(7,149,181,.07);
}
.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  padding: 0;
  border-radius: 30px;
  filter: drop-shadow(0 24px 30px rgba(37,59,70,.10));
  transition: transform .4s ease;
  will-change: transform;
}
.hero-visual:hover img {
  transform: translateY(-5px) scale(1.015);
}
.categories-section {
  background: #fff;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.category-card {
  position: relative;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  text-decoration: none;
  box-shadow: var(--home-shadow-sm);
  transition: transform var(--home-transition), box-shadow var(--home-transition), border-color var(--home-transition);
}
.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(7,149,181,.25);
  box-shadow: var(--home-shadow-md);
}
.category-icon {
  position: relative;
  width: 100%;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.category-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,.08), transparent);
  pointer-events: none;
}
.category-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  transition: transform .35s ease;
}
.category-card:hover .category-icon img {
  transform: scale(1.06);
}
.category-icon span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--home-primary-soft);
  color: var(--home-primary);
  font-size: 24px;
}
.category-card-content {
  flex: 1;
  padding: 20px 22px 10px;
}
.category-card-content h3 {
  margin-bottom: 8px;
  color: var(--home-text);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 750;
}
.category-card-content p {
  margin: 0;
  color: var(--home-text-soft);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.category-arrow {
  position: absolute;
  right: 20px;
  bottom: 19px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--home-primary-soft);
  color: var(--home-primary);
  font-size: 17px;
  transition: transform var(--home-transition), background var(--home-transition);
}
.category-card:hover .category-arrow {
  transform: translateX(3px);
  background: var(--home-primary);
  color: #fff;
}
.popular-section {
  background: var(--home-background);
  border-top: 1px solid #eef2f4;
  border-bottom: 1px solid #eef2f4;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.home-product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  box-shadow: var(--home-shadow-sm);
  transition: transform var(--home-transition), box-shadow var(--home-transition), border-color var(--home-transition);
}
.home-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(7,149,181,.22);
  box-shadow: var(--home-shadow-md);
}
.product-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  overflow: hidden;
}
.product-image-wrapper img {
  width: 100%;
  height: 100%;
  padding: 20px;
  object-fit: contain;
  transition: transform .35s ease;
}
.home-product-card:hover .product-image-wrapper img {
  transform: scale(1.055);
}
.product-discount {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--home-danger);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--home-text-light);
  font-size: 12px;
}
.home-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 17px 18px 18px;
  background: linear-gradient(145deg, #f8fafb, #f2f7f8);
}
.product-brand {
  margin-bottom: 7px;
  color: var(--home-primary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.home-product-info h3 {
  min-height: 42px;
  margin: 0 0 10px;
  color: var(--home-text);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
}
.home-product-info h3 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--home-transition);
}
.home-product-info h3 a:hover {
  color: var(--home-primary);
}
.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  color: var(--home-text-soft);
  font-size: 12px;
  font-weight: 600;
}
.stars {
  color: #f59e0b;
  font-size: 14px;
}
.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.product-price strong {
  color: var(--home-text);
  font-size: 17px;
  font-weight: 800;
}
.product-price del {
  color: var(--home-text-light);
  font-size: 12px;
}
.product-view-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid #edf0f2;
  color: var(--home-primary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  transition: color var(--home-transition);
}
.product-view-link span {
  font-size: 17px;
  transition: transform var(--home-transition);
}
.product-view-link:hover {
  color: var(--home-primary-dark);
}
.product-view-link:hover span {
  transform: translateX(3px);
}
.empty-home-state {
  padding: 45px 25px;
  text-align: center;
  background: #fff;
  border: 1px dashed #cfd9de;
  border-radius: var(--home-radius-md);
  color: var(--home-text-soft);
  font-size: 14px;
}
.reassurance-section {
  padding: 82px 0;
  background: #fff;
}
.reassurance-intro {
  max-width: 650px;
  margin-bottom: 38px;
}
.reassurance-intro h2 {
  max-width: 600px;
  margin: 0;
  color: var(--home-text);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -.7px;
}
.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.reassurance-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 18px;
  background: #fff;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  transition: transform var(--home-transition), border-color var(--home-transition), box-shadow var(--home-transition);
}
.reassurance-item:hover {
  transform: translateY(-3px);
  border-color: rgba(7,149,181,.22);
  box-shadow: var(--home-shadow-sm);
}
.reassurance-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--home-primary-soft);
  color: var(--home-primary);
  font-size: 20px;
}
.reassurance-item h3 {
  margin: 2px 0 7px;
  color: var(--home-text);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 750;
}
.reassurance-item p {
  margin: 0;
  color: var(--home-text-soft);
  font-size: 12px;
  line-height: 1.6;
}
.latest-section {
  background: var(--home-background);
  border-top: 1px solid #eef2f4;
}
.latest-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.latest-product {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--home-border);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: var(--home-shadow-sm);
  transition: transform var(--home-transition), box-shadow var(--home-transition);
}
.latest-product:hover {
  transform: translateY(-3px);
  box-shadow: var(--home-shadow-md);
}
.latest-product-image {
  width: 120px;
  height: 120px;
  flex: 0 0 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.latest-product-image img {
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
  transition: transform .3s ease;
  will-change: transform;
}
.latest-product:hover .latest-product-image img {
  transform: scale(1.07);
}
.latest-product > div:last-child {
  min-width: 0;
}
.latest-product > div:last-child > span {
  display: block;
  margin-bottom: 5px;
  color: var(--home-primary);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.latest-product h3 {
  margin: 0 0 7px;
  color: var(--home-text);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.latest-product strong {
  color: var(--home-text);
  font-size: 13px;
  font-weight: 800;
}
.home-cta {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  background: linear-gradient(135deg, var(--home-primary), #0785a2);
  color: #fff;
}
.home-cta::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -170px;
  top: -210px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.home-cta::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  left: -130px;
  bottom: -180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}
.home-cta-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.home-cta .section-eyebrow {
  color: rgba(255, 255, 255, .82);
}
.home-cta h2 {
  margin: 0 0 15px;
  color: #fff;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -1px;
}
.home-cta p {
  max-width: 570px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, .84);
  font-size: 15px;
  line-height: 1.7;
}
.home-page .btn-light {
  background: #fff;
  color: var(--home-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
}
.home-page .btn-light:hover {
  background: #f5fbfc;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .15);
}
@media(max-width:1100px) {
  .home-section { padding: 72px 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(330px, .75fr); gap: 35px; }
  .hero-content h1 { font-size: clamp(38px, 5vw, 54px); }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reassurance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width:850px) {
  .hero-grid { min-height: auto; grid-template-columns: 1fr; text-align: center; padding-top: 55px; padding-bottom: 55px; }
  .hero-content { max-width: 720px; margin: 0 auto; }
  .hero-content h1 { margin-left: auto; margin-right: auto; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { max-width: 500px; width: 100%; margin: 0 auto; }
  .hero-visual img { max-width: 430px; }
  .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: flex-start; }
}
@media(max-width:680px) {
  .home-container { width: calc(100% - 28px); }
  .home-section { padding: 58px 0; }
  .section-heading { flex-direction: column; gap: 15px; margin-bottom: 27px; }
  .section-heading h2 { font-size: 29px; }
  .section-link { font-size: 13px; }
  .hero-grid { padding-top: 42px; padding-bottom: 45px; gap: 28px; }
  .hero-eyebrow { font-size: 10px; }
  .hero-content h1 { margin-top: 14px; margin-bottom: 16px; font-size: clamp(34px, 10vw, 46px); letter-spacing: -1.5px; }
  .hero-description { margin-bottom: 24px; font-size: 14px; line-height: 1.65; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .home-page .btn { width: 100%; }
  .hero-trust { align-items: flex-start; flex-direction: column; gap: 9px; width: max-content; max-width: 100%; margin: 25px auto 0; text-align: left; }
  .hero-visual { max-width: 390px; }
  .hero-visual::before { width: 85%; }
  .categories-grid { grid-template-columns: 1fr; gap: 16px; }
  .category-card { min-height: 0; }
  .category-icon { height: 190px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-image-wrapper { height: 190px; }
  .product-image-wrapper img { padding: 13px; }
  .home-product-info { padding: 13px; }
  .product-brand { font-size: 9px; }
  .home-product-info h3 { min-height: 0; font-size: 13px; }
  .product-price strong { font-size: 14px; }
  .product-price del { font-size: 10px; }
  .product-view-link { font-size: 10px; }
  .product-discount { top: 9px; left: 9px; padding: 5px 7px; font-size: 9px; }
  .reassurance-section { padding: 58px 0; }
  .reassurance-grid { grid-template-columns: 1fr; gap: 12px; }
  .reassurance-item { padding: 18px 16px; }
  .latest-products { grid-template-columns: 1fr; gap: 12px; }
  .latest-product-image { width: 76px; height: 76px; flex-basis: 76px; }
  .home-cta { padding: 65px 0; }
  .home-cta h2 { font-size: 34px; }
  .home-cta p { font-size: 14px; }
}
@media(max-width:420px) {
  .home-container { width: calc(100% - 20px); }
  .home-section { padding: 50px 0; }
  .section-heading h2 { font-size: 27px; }
  .hero-grid { padding-top: 34px; padding-bottom: 38px; }
  .hero-content h1 { font-size: 34px; letter-spacing: -1.2px; }
  .hero-description { font-size: 13px; }
  .hero-visual img { max-width: 340px; }
  .category-icon { height: 170px; }
  .category-card-content { padding: 17px 18px 10px; }
  .category-card-content h3 { font-size: 16px; }
  .category-card-content p { font-size: 12px; }
  .products-grid { gap: 10px; }
  .product-image-wrapper { height: 165px; }
  .product-image-wrapper img { padding: 10px; }
  .home-product-info { padding: 11px; }
  .home-product-info h3 { font-size: 12px; }
  .product-price { gap: 5px; }
  .product-price strong { font-size: 13px; }
  .product-rating { font-size: 10px; }
  .product-view-link { margin-top: 11px; padding-top: 10px; }
  .reassurance-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .home-cta { padding: 58px 0; }
  .home-cta h2 { font-size: 30px; }
}
@media(max-width:350px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-image-wrapper { height: 220px; }
  .home-product-info { padding: 15px; }
  .home-product-info h3 { font-size: 14px; }
  .product-price strong { font-size: 16px; }
  .product-view-link { font-size: 12px; }
  .hero-content h1 { font-size: 31px; }
}
@media(prefers-reduced-motion:reduce) {
  .home-page, .home-page * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.star-svg, .icon-svg {
  contain: strict;
  display: inline-block;
  vertical-align: middle;
}
.icon-svg {
  width: 24px;
  height: 24px;
}
.latest-product-image img {
  content-visibility: auto;
  contain-intrinsic-size: 80px 80px;
}
.home-hero, 
.categories-section, 
.popular-section, 
.reassurance-section, 
.latest-section, 
.home-cta {
  contain: layout paint;
}
