/* ==========================================================================
   Frigorun : feuille de style principale
   Couleurs reprises du logo officiel. Pour les changer, modifiez le bloc :root.
   ========================================================================== */

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --creme: #fcf8f0;
  --creme-soutenue: #f5eee1;
  --blanc-caisse: #fffdf9;
  --bleu: #03538a;
  --bleu-fonce: #0b3a63;
  --ciel: #e4f0f9;
  --ciel-soutenu: #c9e0f2;
  --orange: #f07d1e;
  --orange-texte: #a8470a;
  --peche: #fdeedd;
  --soleil: #f0c44c;
  --encre: #1d2a3f;
  --encre-douce: #4a556b;
  --filet: #ddd3c2;
  --largeur: 72rem;
  --marge: clamp(1.25rem, 4vw, 2.5rem);
}

/* Base
   ========================================================================== */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--creme);
  color: var(--encre);
  font-family: "Barlow", "Segoe UI", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.08;
}

h1 {
  color: var(--bleu);
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  line-height: 1;
}

h2 {
  color: var(--bleu);
  font-size: clamp(2.125rem, 4vw, 3.25rem);
}

h3 {
  font-size: 1.625rem;
}

p {
  margin: 0;
}

a {
  color: var(--bleu);
}

a:hover {
  color: var(--orange-texte);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

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

.evitement {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background-color: var(--bleu);
  color: var(--creme);
}

.evitement:focus {
  top: 0.5rem;
  color: var(--creme);
}

.contenu {
  width: 100%;
  max-width: var(--largeur);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--marge);
  padding-left: var(--marge);
}

.bloc {
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.chapeau {
  max-width: 38em;
  margin-top: 1rem;
  color: var(--encre-douce);
  font-size: 1.25rem;
  line-height: 1.5;
}

.fond-creme {
  background-color: var(--creme-soutenue);
}

.fond-ciel {
  background-color: var(--ciel);
}

.fond-peche {
  background-color: var(--peche);
}

/* Bandeau d'état du projet
   ========================================================================== */

.annonce {
  background-color: var(--bleu-fonce);
  color: var(--creme);
  font-size: 1rem;
  line-height: 1.45;
}

.annonce .contenu {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.annonce a {
  color: var(--creme);
}

.annonce a:hover {
  color: var(--peche);
}

/* En-tête
   ========================================================================== */

.entete {
  background-color: var(--creme);
}

.entete .contenu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  display: block;
}

.logo img {
  width: 150px;
  height: auto;
}

.navigation ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigation a {
  display: inline-block;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  color: var(--encre);
  font-weight: 500;
  text-decoration: none;
}

.navigation a:hover {
  border-bottom-color: var(--orange);
  color: var(--encre);
}

.navigation a[aria-current="page"] {
  border-bottom-color: var(--bleu);
  color: var(--bleu);
}

.navigation .nav-contact {
  padding: 0.45rem 1rem;
  border: 0;
  border-radius: 5px;
  background-color: var(--orange);
  color: var(--encre);
  font-weight: 600;
}

.navigation .nav-contact:hover,
.navigation .nav-contact[aria-current="page"] {
  background-color: #f59a4f;
  color: var(--encre);
}

/* Boutons
   ========================================================================== */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.bouton {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border: 2px solid var(--orange);
  border-radius: 5px;
  background-color: var(--orange);
  color: var(--encre);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}

.bouton:hover {
  border-color: #f59a4f;
  background-color: #f59a4f;
  color: var(--encre);
}

.bouton-second {
  border-color: var(--bleu);
  background-color: transparent;
  color: var(--bleu);
}

.bouton-second:hover {
  border-color: var(--bleu);
  background-color: var(--ciel);
  color: var(--bleu-fonce);
}

/* Héros : la remorque porte l'accroche sur son flanc
   ========================================================================== */

.heros {
  overflow: hidden;
  background-color: var(--ciel);
}

.heros .contenu {
  position: relative;
  padding-top: clamp(2.25rem, 5vw, 4rem);
}

/* Le soleil du logo, qui veille sur la remorque */
.soleil {
  position: absolute;
  top: clamp(0.5rem, 1.5vw, 1.25rem);
  right: var(--marge);
  width: clamp(3.5rem, 8vw, 6.5rem);
  height: auto;
}

.remorque {
  position: relative;
  display: grid;
  grid-template-columns: 88fr 12fr;
  align-items: start;
  animation: arrivee 1.5s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.caisse {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  padding: clamp(1.5rem, 4.5vw, 3.5rem) clamp(1rem, 3vw, 2.5rem) clamp(3rem, 6vw, 4.75rem) 12%;
  border: 2px solid var(--bleu);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background-color: var(--blanc-caisse);
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 62px, #f2eee6 62px, #f2eee6 64px);
}

/* Livrée : bande bleue et filet orange au bas de la caisse */
.caisse::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: clamp(0.75rem, 1.6vw, 1.25rem);
  left: 0;
  height: clamp(0.8rem, 1.6vw, 1.25rem);
  border-bottom: 5px solid var(--orange);
  background-color: var(--bleu);
  box-shadow: 0 -4px 0 var(--blanc-caisse) inset;
}

.porte {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8%;
  border-right: 2px solid var(--ciel);
}

.porte::before,
.porte::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 18%;
  width: 3px;
  border-radius: 2px;
  background-color: var(--ciel-soutenu);
}

.porte::before {
  left: 32%;
}

.porte::after {
  left: 62%;
}

.heros p {
  max-width: 34em;
}

.heros-accroche {
  margin-top: 0.6rem;
  color: var(--orange-texte);
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 600;
  line-height: 1.15;
}

.heros-texte {
  margin-top: 1rem;
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  line-height: 1.5;
}

.groupe {
  grid-column: 2;
  grid-row: 1;
  width: 62%;
  height: clamp(4.5rem, 15vw, 11rem);
  margin-top: clamp(0.5rem, 2vw, 1.5rem);
  border: 2px solid var(--bleu);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background-color: var(--creme-soutenue);
  background-image: repeating-linear-gradient(180deg, transparent 0, transparent 7px, var(--ciel-soutenu) 7px, var(--ciel-soutenu) 10px);
}

.chassis {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  height: auto;
}

.roue {
  animation: rotation 1.5s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

/* Centres des roues, dans le repère du dessin SVG */
.roue-arriere {
  transform-origin: 384px 62px;
}

.roue-avant {
  transform-origin: 514px 62px;
}

.route {
  height: clamp(2.25rem, 5vw, 3.5rem);
  border-top: 4px solid var(--encre-douce);
  background-color: var(--creme-soutenue);
  background-image: repeating-linear-gradient(90deg, var(--filet) 0, var(--filet) 56px, transparent 56px, transparent 104px);
  background-position: 0 50%;
  background-repeat: repeat-x;
  background-size: 100% 4px;
}

@keyframes arrivee {
  from {
    transform: translateX(-115vw);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes rotation {
  from {
    transform: rotate(-1080deg);
  }

  to {
    transform: rotate(0deg);
  }
}

/* Les trois informations clés, juste sous la route */
.essentiel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2.5rem;
  margin: 0;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.essentiel div {
  padding-left: 1rem;
  border-left: 4px solid var(--orange);
}

.essentiel dt {
  color: var(--bleu);
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
}

.essentiel dd {
  margin: 0.2rem 0 0;
  color: var(--encre-douce);
}

/* Deux publics
   ========================================================================== */

.publics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(2rem, 5vw, 4rem);
  margin-top: 2.5rem;
}

.public {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 6px solid var(--bleu);
  border-radius: 0 0 8px 8px;
  background-color: var(--blanc-caisse);
}

.public-chaleur {
  border-top-color: var(--orange);
}

.public h3 {
  color: var(--bleu);
  font-size: 2rem;
}

.public-chaleur h3 {
  color: var(--orange-texte);
}

.liste {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.liste li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.6rem;
}

.liste li::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 0.15rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background-color: var(--orange);
}

.public .lien-suite {
  margin-top: 1rem;
}

/* Situations
   ========================================================================== */

.trois-colonnes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(2rem, 4vw, 3.5rem);
  margin-top: 2.5rem;
}

.trois-colonnes h3 {
  color: var(--bleu-fonce);
}

.trois-colonnes p {
  margin-top: 0.5rem;
}

/* Entrée dédiée aux agriculteurs et à la filière viande */
.entree-pro .contenu {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: center;
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
}

.entree-pro h2 {
  color: var(--orange-texte);
}

.entree-pro p {
  max-width: 36em;
  margin-top: 1rem;
}

.entree-pro .actions {
  margin-top: 0;
}

/* Étapes : une vraie séquence, reliée comme un tracé routier */
.etapes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}

.etapes li {
  position: relative;
  padding-top: 4rem;
  counter-increment: etape;
}

.etapes li::before {
  content: counter(etape);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--bleu);
  color: var(--creme);
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 2.75rem;
  text-align: center;
}

.etapes li::after {
  content: "";
  position: absolute;
  top: 1.3rem;
  right: -2rem;
  left: 0;
  border-top: 2px dashed var(--orange);
}

.etapes li:last-child::after {
  right: 0;
}

.etapes h3 {
  font-size: 1.5rem;
}

.etapes p {
  margin-top: 0.4rem;
  color: var(--encre-douce);
}

/* Bloc fondatrice */
.portrait {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: center;
  gap: 2rem clamp(2rem, 6vw, 5rem);
}

.portrait p {
  max-width: 36em;
  margin-top: 1rem;
}

/* Bandeau d'appel final, avec la signature de marque */
.appel .contenu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.appel .actions {
  margin-top: 0;
}

.appel p {
  max-width: 34em;
  margin-top: 0.6rem;
}

.signature {
  background-color: var(--bleu-fonce);
  color: var(--creme);
}

.signature h2 {
  color: var(--creme);
}

.signature p {
  color: var(--ciel);
}

/* Emplacements de photos réelles à venir
   ========================================================================== */

.photo-a-venir {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 1.5rem;
  border: 2px dashed var(--ciel-soutenu);
  border-radius: 8px;
  background-color: var(--blanc-caisse);
  aspect-ratio: 4 / 3;
}

.photo-a-venir svg {
  width: 80%;
  max-width: 18rem;
  height: auto;
}

.photo-a-venir figcaption {
  color: var(--encre-douce);
  font-size: 1rem;
  text-align: center;
}

/* Page « La solution »
   ========================================================================== */

.page-titre {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  background-color: var(--ciel);
}

.formats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 5vw, 4rem);
  margin-top: 2.5rem;
}

.format h3 {
  margin-top: 1.25rem;
  color: var(--bleu);
  font-size: 2.25rem;
}

.format p {
  margin-top: 0.5rem;
}

.note {
  margin-top: 1.5rem;
  color: var(--encre-douce);
  font-size: 1rem;
}

.deux-colonnes {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2rem, 6vw, 5rem);
}

.points {
  margin: 0;
}

.points div {
  padding: 1.25rem 0;
  border-top: 1px solid var(--filet);
}

.points div:first-child {
  padding-top: 0;
  border-top: 0;
}

.points dt {
  color: var(--bleu-fonce);
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.points dd {
  max-width: 36em;
  margin: 0.3rem 0 0;
}

.points .a-confirmer {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.1rem 0.55rem;
  border-radius: 4px;
  background-color: var(--peche);
  color: var(--orange-texte);
  font-size: 1rem;
  font-weight: 500;
}

.verifications {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.verifications li {
  position: relative;
  padding: 0.8rem 0 0.8rem 2.1rem;
  border-bottom: 1px solid var(--filet);
}

.verifications li::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 0;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background-color: var(--bleu);
}

.verifications li::after {
  content: "";
  position: absolute;
  top: 1.38rem;
  left: 0.42rem;
  width: 0.45rem;
  height: 0.25rem;
  border-bottom: 2px solid var(--creme);
  border-left: 2px solid var(--creme);
  transform: rotate(-45deg);
}

/* Contact et formulaire
   ========================================================================== */

.formulaire {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.champ-large {
  grid-column: 1 / -1;
}

label,
legend {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.aide {
  display: block;
  color: var(--encre-douce);
  font-size: 1rem;
  font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #8a8780;
  border-radius: 5px;
  background-color: var(--blanc-caisse);
  color: var(--encre);
  font-family: inherit;
  font-size: 1.0625rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.choix {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.choix label,
.consentement label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  font-weight: 400;
}

input[type="radio"],
input[type="checkbox"] {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.25rem 0 0;
}

.rappel {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--orange);
  background-color: var(--peche);
}

.coordonnees {
  margin: 1.5rem 0 0;
}

.coordonnees dt {
  margin-top: 1rem;
  font-weight: 600;
}

.coordonnees dd {
  margin: 0;
}

.questions {
  margin-top: 2rem;
}

details {
  border-top: 1px solid var(--filet);
}

details:last-child {
  border-bottom: 1px solid var(--filet);
}

summary {
  padding: 1rem 0;
  font-weight: 600;
  cursor: pointer;
}

summary:hover {
  color: var(--orange-texte);
}

details p {
  max-width: 38em;
  padding-bottom: 1.25rem;
}

/* Texte courant (à propos, mentions légales) */
.texte {
  max-width: 44rem;
}

.texte h2 {
  margin-top: 2.5rem;
  font-size: 2rem;
}

.texte h2:first-child {
  margin-top: 0;
}

.texte p,
.texte ul {
  margin-top: 0.75rem;
}

/* Pied de page
   ========================================================================== */

.pied {
  padding-top: 3rem;
  padding-bottom: 2rem;
  background-color: var(--creme-soutenue);
}

.pied-grille {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
}

.pied .logo img {
  width: 230px;
}

.pied h2 {
  color: var(--encre);
  font-family: inherit;
  font-size: 1.125rem;
  line-height: 1.6;
}

.pied-signature {
  max-width: 26em;
  margin-top: 0.75rem;
  color: var(--bleu-fonce);
  font-weight: 500;
}

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

.pied .pied-bas {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--filet);
  color: var(--encre-douce);
  font-size: 1rem;
}

/* Écrans moyens et petits
   ========================================================================== */

@media (max-width: 56rem) {
  .deux-colonnes,
  .portrait,
  .entree-pro .contenu,
  .pied-grille,
  .trois-colonnes,
  .publics,
  .formats {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .etapes li::after {
    display: none;
  }
}

@media (max-width: 36rem) {
  body {
    font-size: 1.0625rem;
  }

  h1 {
    font-size: 2.375rem;
  }

  .logo img {
    width: 120px;
  }

  .annonce {
    font-size: 0.9375rem;
  }

  .navigation ul {
    gap: 0.35rem 1.1rem;
  }

  .navigation a {
    padding: 0.2rem 0;
    font-size: 1rem;
  }

  .navigation .nav-contact {
    padding: 0.35rem 0.8rem;
  }

  .caisse {
    padding-right: 0.75rem;
    padding-left: 11%;
  }

  .groupe {
    width: 70%;
  }

  .soleil {
    display: none;
  }

  .essentiel,
  .verifications,
  .formulaire {
    grid-template-columns: minmax(0, 1fr);
  }

  .bouton {
    text-align: center;
  }
}

/* Respect du réglage « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .remorque,
  .roue {
    animation: none;
  }
}

/* Impression */
@media print {
  .annonce,
  .navigation,
  .groupe,
  .chassis,
  .route,
  .soleil,
  .evitement {
    display: none;
  }

  .remorque {
    animation: none;
  }
}
