/* DRISSE : feuille de style du site.
   Les couleurs et les tailles principales se changent ici, dans :root. */

@font-face {
  font-family: "Rubik";
  src: url("fonts/rubik-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("fonts/rubik-black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  --fond: #f5f2ec;
  --fond-doux: #ece6da;
  --emplacement: #e4ddcf;
  --encre: #141210;
  --texte: #3b3730;
  --gris: #5f5a50;
  --filet: #ddd6c8;
  --pointilles: #c9c0ae;
  /* Couleur d'accent (la « corde ») : une seule à changer ici. */
  --accent: #d9531e;
  --clair-sur-noir: #cfc8ba;
  --filet-sur-noir: #3a3631;
  --rayon: 8px;
  --marge: clamp(1rem, 4vw, 2.5rem);
  --largeur: 80rem;
  --espace-section: clamp(4rem, 9vw, 7.5rem);
  --police: "Rubik", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--gris);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.conteneur {
  width: min(100% - 2 * var(--marge), var(--largeur));
  margin-inline: auto;
}

.evitement {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--encre);
  color: var(--fond);
}

.evitement:focus {
  top: 0.5rem;
}

/* Les informations encore manquantes : faciles à retrouver. */
.a-completer {
  display: inline-block;
  padding: 0.05em 0.45em;
  border: 1px dashed currentColor;
  white-space: nowrap;
}

/* Bande du haut */
.bandeau {
  padding: 0.6rem 1rem;
  background: var(--encre);
  color: var(--fond);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-align: center;
}

/* En-tête */
.entete {
  background: var(--fond);
  border-bottom: 1px solid var(--filet);
}

.entete__interieur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.1rem;
}

.logo {
  display: block;
}

.logo img {
  width: auto;
  height: 1.75rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
  font-size: 0.9375rem;
}

.nav a {
  padding-block: 0.6rem;
  text-decoration: none;
}

@media (min-width: 48rem) {
  .entete {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  [id] {
    scroll-margin-top: 5rem;
  }
}

/* Photos et emplacements photo */
.photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 1rem;
  overflow: hidden;
  border-radius: var(--rayon);
  background: var(--emplacement);
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo:has(img) .photo__repere {
  display: none;
}

.photo__repere {
  max-width: 24rem;
  color: var(--gris);
  font-size: 0.875rem;
  line-height: 1.35;
  text-align: center;
}

.photo__repere strong {
  display: block;
  color: var(--encre);
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* Boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--encre);
  color: var(--fond);
  text-decoration: none;
}

.bouton:hover {
  background: var(--texte);
  color: var(--fond);
}

.bouton svg {
  width: 1rem;
  height: 1rem;
}

/* Haut de page */
.accueil {
  padding-top: clamp(2.5rem, 7vw, 6rem);
}

.accueil__tete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.accueil h1 {
  flex: 1 1 35rem;
  font-size: clamp(3.25rem, 9vw, 8.25rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.accueil__suite {
  flex: 0 1 22.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.accueil__suite p {
  color: var(--texte);
  font-size: 1.125rem;
  line-height: 1.45;
}

.accueil__photo {
  aspect-ratio: 16 / 7;
  min-height: 17.5rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

/* Les trois atouts */
.atouts {
  display: flex;
  flex-wrap: wrap;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-block: 1px solid var(--filet);
}

.atout {
  flex: 1 1 16rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.5rem 1.5rem 1.5rem 0;
}

.atout::before {
  content: "";
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.atout strong {
  display: block;
  color: var(--encre);
  font-weight: 900;
}

.atout span {
  color: var(--gris);
  font-size: 0.9375rem;
}

/* Sections */
.section {
  padding-top: var(--espace-section);
}

.section__tete {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-bottom: 2rem;
}

.section__titre {
  font-size: clamp(2.25rem, 5vw, 4rem);
}

.section__tete p {
  color: var(--gris);
}

.surtitre {
  color: var(--gris);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Produits : la grille accueille autant de produits que nécessaire. */
.produits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 2.5rem 1.5rem;
}

.carte {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--encre);
  text-decoration: none;
}

.carte:hover {
  color: var(--encre);
}

.carte .photo {
  aspect-ratio: 4 / 5;
  margin-bottom: 0.65rem;
}

.carte:hover .photo img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: no-preference) {
  .photo img {
    transition: transform 0.4s ease;
  }
}

.carte__etiquette {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  z-index: 1;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--fond);
  color: var(--encre);
  font-size: 0.75rem;
}

.carte__ligne {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.125rem;
  font-weight: 900;
  line-height: 1.25;
}

.carte__prix {
  white-space: nowrap;
}

.carte__matiere {
  color: var(--gris);
  font-size: 0.9375rem;
}

.carte--a-venir .photo {
  border: 1.5px dashed var(--pointilles);
  background: transparent;
}

/* Histoire */
.histoire {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
}

.histoire__photos {
  flex: 1 1 26rem;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.histoire__grande {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
}

.histoire__petite {
  aspect-ratio: 1;
}

.histoire__texte {
  flex: 1 1 26rem;
  min-width: 0;
  max-width: 35rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.histoire__texte h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
}

.histoire__texte p {
  color: var(--texte);
}

.fibre {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-block: 0.5rem;
}

.fibre .surtitre {
  color: var(--accent);
}

.histoire__texte .fibre p {
  color: var(--encre);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: 0.5rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--rayon);
  background: var(--fond-doux);
  font-size: 0.9375rem;
}

.note svg {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  color: var(--accent);
}

.note strong {
  color: var(--encre);
  font-weight: 900;
}

/* Où acheter */
.marches {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.marches th,
.marches td {
  padding: 1rem 0.75rem 1rem 0;
  border-top: 1px solid var(--filet);
  font-weight: 500;
  vertical-align: baseline;
}

.marches thead th {
  padding-block: 0 0.6rem;
  border-top: 0;
  color: var(--gris);
}

.marches tbody th {
  width: 40%;
}

.marches tbody tr:last-child > * {
  border-bottom: 1px solid var(--filet);
}

/* Contact : bloc sombre */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 4rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 12px;
  background: var(--encre);
  color: var(--fond);
}

.contact__texte {
  flex: 1 1 22rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__texte h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
}

.contact__texte p {
  max-width: 26rem;
  color: var(--clair-sur-noir);
}

.contact__liste {
  flex: 1 1 22rem;
}

.contact__liste > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 1rem;
  border-top: 1px solid var(--filet-sur-noir);
}

.contact__liste > div:last-child {
  border-bottom: 1px solid var(--filet-sur-noir);
}

.contact__liste dt {
  color: var(--clair-sur-noir);
}

.contact__liste a:hover {
  color: var(--clair-sur-noir);
}

/* Pied de page */
.pied {
  margin-top: var(--espace-section);
  padding-block: 2.5rem;
  color: var(--gris);
  font-size: 0.875rem;
}

.pied__interieur {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

/* Fiche produit */
.ariane {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
  color: var(--gris);
  font-size: 0.875rem;
}

.fiche-produit {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  margin-top: 1.5rem;
}

.fiche-produit__photos {
  flex: 999 1 35rem;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fiche-produit__principale {
  grid-column: 1 / -1;
  aspect-ratio: 1;
}

.fiche-produit__petite {
  aspect-ratio: 4 / 3;
}

.fiche-produit__texte {
  flex: 1 1 22.5rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 60rem) {
  .fiche-produit__texte {
    position: sticky;
    top: 6rem;
  }
}

.fiche-produit__tete {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.fiche-produit h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.02;
}

.pastille {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--fond-doux);
  font-size: 0.75rem;
}

.pastille::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.fiche-produit__prix {
  font-size: 1.75rem;
  font-weight: 900;
}

.fiche-produit__texte > p {
  color: var(--texte);
}

.fiche > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-block: 0.875rem;
  border-top: 1px solid var(--filet);
}

.fiche > div:last-child {
  border-bottom: 1px solid var(--filet);
}

.fiche dt {
  color: var(--gris);
}

.garanties {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--texte);
  font-size: 0.9375rem;
}

.garanties li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.garanties svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  color: var(--encre);
}

/* Mentions légales */
.legal {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.legal h1 {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.legal section {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.legal h2 {
  margin-bottom: 1rem;
  font-size: 1.625rem;
  line-height: 1.15;
}
