/* COULEURS DE LA MARQUE */
:root {
  --navy: #1B2A47;
  --rouge: #C42036;
  --blanc: #FFFFFF;
}

/* BASE */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--navy);
}

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

/* BANDEAU */
header {
  position: relative;
  background: var(--navy);
  border-bottom: 4px solid var(--rouge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.logo-coq { height: 56px; width: auto; }
.logo-texte { height: 36px; width: auto; }

nav a {
  color: var(--blanc);
  text-decoration: none;
  margin-left: 20px;
}

nav a:hover { text-decoration: underline; }

/* BURGER : caché sur ordinateur */
.burger {
  display: none;
  background: none;
  border: none;
  color: var(--blanc);
  font-size: 32px;
  cursor: pointer;
}

/* PRODUITS */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

h1 {
  font-family: Georgia, serif;
  font-weight: normal;
  text-align: center;
}

.produits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

article { text-align: center; }

.bouton {
  display: inline-block;
  background: var(--navy);
  color: var(--blanc);
  padding: 10px 22px;
  text-decoration: none;
}

.bouton:hover { background: var(--rouge); }

.bouton.inactif {
  background: #9aa3b5;
  cursor: not-allowed;
}

/* PHOTO QUI PASSE AU DOS AU SURVOL */
.photo { position: relative; }

.photo .dos {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s;
}

.photo:hover .dos { opacity: 1; }

/* PIED DE PAGE */
footer {
  background: var(--navy);
  color: var(--blanc);
  text-align: center;
  padding: 24px;
}

footer a {
  color: var(--blanc);
  margin: 0 10px;
}

/* PAGE PRODUIT */
.fiche {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.galerie { display: grid; gap: 12px; }

.infos h1 { text-align: left; margin-top: 0; }

.prix { font-size: 24px; font-weight: bold; }

.tailles {
  border: none;
  padding: 0;
  margin: 24px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tailles legend { font-weight: bold; margin-bottom: 8px; }

.tailles label {
  border: 1px solid var(--navy);
  padding: 8px 14px;
  cursor: pointer;
}

.tailles input { position: absolute; opacity: 0; }

.tailles label:has(input:checked) {
  background: var(--navy);
  color: var(--blanc);
}

.lien-guide { color: var(--navy); font-size: 14px; }

.valeurs {
  display: block;
  margin: 24px 0;
  font-style: italic;
}

.details { margin-top: 24px; padding-left: 18px; font-size: 14px; }

/* PAGE GUIDE DES TAILLES */
.page-tailles { max-width: 900px; }
.page-tailles h2 { margin-top: 40px; }
.page-tailles img { border: 1px solid #e3e5ea; }

/* PAGES DE TEXTE ET FORMULAIRES */
.page-texte { max-width: 700px; }

.intro { text-align: center; font-size: 18px; line-height: 1.6; }

.formulaire {
  display: grid;
  gap: 18px;
  margin-top: 32px;
  padding: 32px;
  background: #F7F4EE;
  border-top: 4px solid var(--rouge);
}

.formulaire label { display: grid; gap: 6px; font-weight: bold; }

.formulaire input,
.formulaire textarea {
  font: inherit;
  padding: 12px;
  border: 1px solid #d8d2c4;
  border-radius: 4px;
  background: var(--blanc);
}

.formulaire input:focus,
.formulaire textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.formulaire .bouton { border: none; cursor: pointer; justify-self: start; 

  .mention { font-size: 13px; font-style: italic; margin: 0; }
  .cache { display: none; }
}

/* PAGE HISTOIRE */
.histoire p { line-height: 1.7; }

.histoire h2 {
  font-family: Georgia, serif;
  font-weight: normal;
  margin-top: 48px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rouge);
  display: inline-block;
}

.histoire blockquote {
  margin: 24px 0;
  padding: 24px;
  background: var(--navy);
  color: var(--blanc);
  text-align: center;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.histoire .fort { font-weight: bold; }

.nom { margin: 24px 0; }

.nom dt {
  font-family: Georgia, serif;
  font-size: 32px;
  color: var(--rouge);
  margin-top: 16px;
}

.nom dd { margin: 4px 0 0; line-height: 1.7; }

.devise {
  margin-top: 56px;
  padding: 32px;
  background: #F7F4EE;
  border-top: 4px solid var(--rouge);
  text-align: center;
  font-family: Georgia, serif;
  font-size: 20px;
}

.devise p { margin: 6px 0; }

/* PAGES LÉGALES */
.legal h2 { font-size: 18px; margin-top: 32px; }
.legal p, .legal li { line-height: 1.7; font-size: 15px; }
.legal a { color: var(--rouge); }

.formulaire-type {
  margin: 24px 0;
  padding: 24px;
  background: #F7F4EE;
  border-left: 4px solid var(--navy);
  font-size: 14px;
}

/* MARQUAGE DES POINTS À VALIDER (à supprimer au lancement) */
.doute {
  color: var(--rouge);
  background: #fde8ea;
  font-weight: bold;
  padding: 0 4px;
}

.bandeau-doute {
  background: #fde8ea;
  border-left: 4px solid var(--rouge);
  padding: 16px;
  font-size: 15px;
  color: var(--navy);
}

/* MOBILE (toujours à la fin du fichier) */
@media (max-width: 700px) {
  .produits { grid-template-columns: 1fr; }
  .fiche { grid-template-columns: 1fr; }

  .galerie {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .galerie img { flex: 0 0 100%; scroll-snap-align: start; }

  .logo-texte { height: 28px; }

  .burger { display: block; }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    flex-direction: column;
    background: var(--navy);
    border-bottom: 4px solid var(--rouge);
    padding: 12px 24px;
    z-index: 10;
  }

  nav.ouvert { display: flex; }
  nav a { margin: 8px 0; }
}