/* ==========================================================================
   Dossier Médical Emporté - Feuille de style principale
   Reproduit le design du thème Dawn Shopify original
   ========================================================================== */

/* --- Polices --- */
@font-face {
  font-family: Assistant;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/assistant_n4.woff2") format("woff2"),
       url("../fonts/assistant_n4.woff") format("woff");
}

@font-face {
  font-family: Assistant;
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/assistant_n7.woff2") format("woff2"),
       url("../fonts/assistant_n7.woff") format("woff");
}

/* --- Variables CSS (issues du thème Dawn) --- */
:root {
  --font-body-family: Assistant, sans-serif;
  --font-body-style: normal;
  --font-body-weight: 400;
  --font-body-weight-bold: 700;
  --font-heading-family: Assistant, sans-serif;
  --font-heading-style: normal;
  --font-heading-weight: 400;
  --font-body-scale: 1.0;
  --font-heading-scale: 1.0;

  --color-base-text: 18, 18, 18;
  --color-shadow: 18, 18, 18;
  --color-base-background-1: 255, 255, 255;
  --color-base-background-2: 243, 243, 243;
  --color-base-solid-button-labels: 255, 255, 255;
  --color-base-outline-button-labels: 18, 18, 18;
  --color-base-accent-1: 51, 79, 180;
  --color-base-accent-2: 51, 79, 180;

  --gradient-base-accent-1: #334fb4;
  --gradient-base-accent-2: #334fb4;

  --page-width: 120rem;
  --buttons-radius: 40px;
  --inputs-radius: 0px;
  --inputs-border-width: 1px;
}

/* --- Reset et base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  height: 100%;
}

body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  grid-template-columns: 100%;
  min-height: 100%;
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.06rem;
  line-height: 1.8;
  font-family: var(--font-body-family);
  font-style: var(--font-body-style);
  font-weight: var(--font-body-weight);
  color: rgb(var(--color-base-text));
  background: #fff;
}

@media screen and (min-width: 750px) {
  body {
    font-size: 1.6rem;
  }
}

a {
  color: rgb(var(--color-base-accent-1));
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading-family);
  font-style: var(--font-heading-style);
  font-weight: var(--font-heading-weight);
  line-height: 1.3;
  margin: 0 0 1rem;
}

.h0 {
  font-size: 4rem;
}

.h1 {
  font-size: 3rem;
}

@media screen and (min-width: 750px) {
  .h0 {
    font-size: 5.2rem;
  }
  .h1 {
    font-size: 4rem;
  }
}

p {
  margin: 0 0 1.5rem;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- Utilitaires --- */
.page-width {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media screen and (min-width: 750px) {
  .page-width {
    padding: 0 5rem;
  }
}

.center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Boutons --- */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  padding: 1.2rem 3rem;
  cursor: pointer;
  font: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  text-decoration: none;
  border-radius: var(--buttons-radius);
  transition: background-color 0.2s, color 0.2s;
  min-width: 16rem;
  min-height: 4.5rem;
}

.button--primary {
  background-color: rgb(var(--color-base-accent-1));
  color: rgb(var(--color-base-solid-button-labels));
}

.button--primary:hover {
  background-color: rgba(var(--color-base-accent-1), 0.85);
  text-decoration: none;
  color: rgb(var(--color-base-solid-button-labels));
}

.button--secondary {
  background-color: transparent;
  border: 1px solid rgb(var(--color-base-outline-button-labels));
  color: rgb(var(--color-base-outline-button-labels));
}

.button--secondary:hover {
  background-color: rgb(var(--color-base-outline-button-labels));
  color: rgb(var(--color-base-background-1));
  text-decoration: none;
}

/* --- Barre d'annonce --- */
.announcement-bar {
  background: var(--gradient-base-accent-2);
  color: #fff;
  text-align: center;
  padding: 0.8rem 1.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
}

.announcement-bar a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.announcement-bar a:hover {
  text-decoration: underline;
}

.announcement-bar .arrow {
  display: inline-block;
  width: 1.4rem;
  height: 1rem;
}

/* --- En-tête (Header) --- */
.site-header {
  background: var(--gradient-base-accent-2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  position: relative;
  gap: 2rem;
}

@media screen and (min-width: 990px) {
  .header-inner {
    padding: 1.2rem 5rem;
  }
}

.header-logo img {
  max-width: 160px;
  height: auto;
}

.header-logo a {
  display: inline-block;
}

/* Navigation desktop */
.header-nav {
  display: none;
}

@media screen and (min-width: 990px) {
  .header-nav {
    display: flex;
    position: absolute;
    left: 5rem;
  }
}

.header-nav ul {
  display: flex;
  gap: 2rem;
}

.header-nav a {
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: 0.06rem;
  padding: 0.5rem 0;
  text-decoration: none;
  position: relative;
}

.header-nav a:hover,
.header-nav a.active {
  text-decoration: none;
}

.header-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #fff;
}

/* Menu hamburger mobile */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  left: 1.5rem;
}

@media screen and (min-width: 990px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle svg {
  width: 2rem;
  height: 2rem;
}

/* Drawer mobile */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.mobile-nav-drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 35rem;
  height: 100%;
  background: var(--gradient-base-accent-2);
  padding: 2rem;
  overflow-y: auto;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  margin-bottom: 2rem;
}

.mobile-nav-close svg {
  width: 2rem;
  height: 2rem;
}

.mobile-nav-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-drawer a {
  color: #fff;
  font-size: 1.6rem;
  padding: 1rem 0;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Bannière héro --- */
.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 30rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (min-width: 750px) {
  .hero-banner {
    min-height: 40rem;
  }
}

.hero-banner__media {
  position: absolute;
  inset: 0;
}

.hero-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--gradient-base-accent-1);
  color: #fff;
  max-width: 100%;
}

@media screen and (min-width: 750px) {
  .hero-banner__content {
    padding: 4rem 6rem;
    max-width: 60%;
  }
}

.hero-banner__subtitle {
  font-size: 1.2rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-banner__title {
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: #fff;
}

@media screen and (min-width: 750px) {
  .hero-banner__title {
    font-size: 5.2rem;
  }
}

.hero-banner .button {
  margin-top: 1rem;
}

/* --- Section multi-colonnes (icônes) --- */
.section-icons {
  background: rgb(var(--color-base-background-2));
  padding: 1.2rem 0;
}

@media screen and (min-width: 750px) {
  .section-icons {
    padding: 1.6rem 0;
  }
}

.icons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media screen and (min-width: 990px) {
  .icons-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.icon-card {
  text-align: center;
  padding: 1rem;
}

.icon-card__image {
  width: 33%;
  margin: 0 auto 1rem;
}

.icon-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

/* --- Section image + texte --- */
.section-image-text {
  padding: 0;
}

.image-text-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media screen and (min-width: 750px) {
  .image-text-grid {
    grid-template-columns: 1fr 2fr;
  }
}

.image-text__media {
  background: rgb(var(--color-base-background-2));
}

.image-text__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-text__content {
  background: rgb(var(--color-base-background-2));
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media screen and (min-width: 750px) {
  .image-text__content {
    padding: 4rem 5rem;
  }
}

.image-text__content h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

@media screen and (min-width: 750px) {
  .image-text__content h2 {
    font-size: 4rem;
  }
}

.image-text__content p {
  line-height: 1.8;
}

/* --- Section avantages (3 colonnes circulaires) --- */
.section-benefits {
  padding: 1.5rem 0;
}

@media screen and (min-width: 750px) {
  .section-benefits {
    padding: 2rem 0;
  }
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media screen and (min-width: 750px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.benefit-card {
  text-align: center;
}

.benefit-card__image {
  width: 50%;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1;
}

.benefit-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefit-card p {
  text-align: left;
  padding: 0 1rem;
}

.benefit-card p strong {
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

/* --- Section CTA (bouton Commander) --- */
.section-cta {
  padding: 3rem 0 3.9rem;
  text-align: center;
}

@media screen and (min-width: 750px) {
  .section-cta {
    padding: 4rem 0 5.2rem;
  }
}

/* --- Pied de page (Footer) --- */
.site-footer {
  background: var(--gradient-base-accent-2);
  color: #fff;
  padding: 2.1rem 0;
  text-align: center;
  font-size: 1.2rem;
}

@media screen and (min-width: 750px) {
  .site-footer {
    padding: 2.8rem 0;
  }
}

.site-footer a {
  color: #fff;
}

.site-footer .copyright {
  opacity: 0.8;
}

/* ==========================================================================
   Page Contact
   ========================================================================== */
.section-contact {
  padding: 4rem 0;
}

.contact-form {
  max-width: 60rem;
  margin: 0 auto;
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 3rem;
}

/* ==========================================================================
   Formulaire de commande (commander.php)
   ========================================================================== */
.section-order {
  padding: 4rem 0;
}

.order-form-wrapper {
  max-width: 65rem;
  margin: 0 auto;
  background: rgb(var(--color-base-background-2));
  border-radius: 8px;
  padding: 3rem 2rem;
}

@media screen and (min-width: 750px) {
  .order-form-wrapper {
    padding: 4rem 5rem;
  }
}

.order-form-wrapper h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 3rem;
  font-weight: 700;
}

.order-form-wrapper .form-intro {
  text-align: center;
  margin-bottom: 3rem;
  color: rgba(var(--color-base-text), 0.7);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media screen and (min-width: 750px) {
  .form-row--two {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: rgb(var(--color-base-text));
}

.form-group label .required {
  color: #e53e3e;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body-family);
  font-size: 1.5rem;
  padding: 1rem 1.2rem;
  border: var(--inputs-border-width) solid rgba(var(--color-base-text), 0.55);
  border-radius: var(--inputs-radius);
  background: #fff;
  color: rgb(var(--color-base-text));
  width: 100%;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgb(var(--color-base-accent-1));
  box-shadow: 0 0 0 2px rgba(var(--color-base-accent-1), 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 10rem;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group input:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #e53e3e;
}

.form-actions {
  text-align: center;
  margin-top: 2.5rem;
}

.form-actions .button {
  min-width: 22rem;
  font-size: 1.6rem;
  padding: 1.5rem 4rem;
}

/* Prix affiché */
.product-price {
  text-align: center;
  margin-bottom: 2rem;
}

.product-price .price {
  font-size: 2.8rem;
  font-weight: 700;
  color: rgb(var(--color-base-accent-1));
}

.product-price .price-info {
  font-size: 1.3rem;
  color: rgba(var(--color-base-text), 0.6);
}

/* --- Messages flash --- */
.alert {
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 1.4rem;
}

.alert--success {
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  color: #22543d;
}

.alert--error {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  color: #742a2a;
}

/* ==========================================================================
   Page de confirmation
   ========================================================================== */
.section-confirmation {
  padding: 6rem 0;
  text-align: center;
}

.confirmation-box {
  max-width: 60rem;
  margin: 0 auto;
  background: rgb(var(--color-base-background-2));
  border-radius: 8px;
  padding: 4rem 3rem;
}

.confirmation-box .checkmark {
  width: 8rem;
  height: 8rem;
  margin: 0 auto 2rem;
  background: rgb(var(--color-base-accent-1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirmation-box .checkmark svg {
  width: 4rem;
  height: 4rem;
  color: #fff;
}

.confirmation-box h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.confirmation-box p {
  font-size: 1.6rem;
  color: rgba(var(--color-base-text), 0.7);
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   Page produit (galerie)
   ========================================================================== */
.section-product {
  padding: 3rem 0;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media screen and (min-width: 750px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.product-gallery__main img {
  width: 100%;
  border-radius: 4px;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
  gap: 0.8rem;
}

.product-gallery__thumb {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.active {
  border-color: rgb(var(--color-base-accent-1));
}

.product-gallery__thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-info h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-info .product-description {
  margin-bottom: 2rem;
  line-height: 1.8;
}

.product-info .product-specs {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgb(var(--color-base-background-2));
  border-radius: 4px;
  font-size: 1.4rem;
}

.product-info .product-specs li {
  padding: 0.3rem 0;
}
