/* =========================================================
   Travo — feuille de style unique
   Reprend l'apparence de l'ancien site (dégradé orange,
   bloc blanc central, typographie Palatino) sans ToWeb,
   Bootstrap ni jQuery.
   ========================================================= */

:root {
  --orange-clair: hsl(29, 100%, 60%);   /* haut de l'en-tête */
  --orange: hsl(24, 100%, 50%);         /* bas de page */
  --brun: hsl(24, 100%, 18%);           /* bas de l'en-tête */
  --orange-bloc: #ff8316;               /* bloc pré-commande */
  --lien: hsl(15, 100%, 40%);           /* #cc3300 */
  --rouge-texte: #cc0000;
  --texte: #333;
  --gris-ligne: hsl(0, 0%, 92%);
  --gris-moyen: hsl(0, 0%, 75%);
  --largeur: 900px;
  --serif: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --sans: Arial, Helvetica, sans-serif;
  --marker: 'Permanent Marker', 'Marker Felt', 'Chalkboard SE', 'Comic Sans MS', cursive;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--texte);
  background: linear-gradient(to bottom, var(--brun) 0, var(--orange) 100%) fixed;
  background-color: var(--orange);
}

img, video { max-width: 100%; height: auto; }
a { color: var(--lien); }
a:hover { text-decoration: underline; }

.lien-evitement {
  position: absolute; left: -9999px; top: 0;
  background: #fff; padding: 8px 12px; z-index: 100;
}
.lien-evitement:focus { left: 8px; top: 8px; }

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

.entete {
  background: linear-gradient(to bottom, var(--orange-clair) 0, var(--brun) 100%);
  border-bottom: 20px solid #fff;
  padding: 18px 16px 162px;
}

.entete-inner {
  max-width: 940px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: bolder;
  text-shadow: 6px 6px 0 hsla(0, 0%, 0%, .2);
}
.logo:hover { text-decoration: none; }
.logo img { width: 62px; height: auto; border-radius: 4px; text-shadow: none; }
.logo-nom { display: block; font-size: 60px; line-height: 1; font-style: italic; }
.logo-nom span { color: #000; font-size: 1.1em; }
.logo-slogan { display: block; font-size: 18px; line-height: 1.2; margin-top: 2px; }

.menu {
  display: inline-flex;
  flex-wrap: wrap;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid #fff;
}
.menu a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}
.menu a:hover { color: #000; }
.menu a[aria-current="page"] { background: #fff; color: var(--lien); }

/* ---------- Bloc de contenu ---------- */

.contenu {
  max-width: var(--largeur);
  margin: -162px auto 0;
  background: #fff;
  padding: 20px 28px 28px;
}

.colonnes {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 28px;
}
.colonne-laterale {
  border-left: 1px solid var(--gris-ligne);
  padding-left: 10px;
}

h1 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: lighter;
  font-size: 34px;
  line-height: 1.15;
  margin: 20px 0 24px;
  color: var(--texte);
}

h2 {
  font-family: var(--serif);
  font-weight: lighter;
  font-size: 19px;
  color: #000;
  margin: 0 0 12px;
}

.section { margin-bottom: 36px; }
.centre { text-align: center; }

/* Carrousel */
.carrousel {
  position: relative;
  max-width: 500px;
  margin: 32px auto 32px 32px;
  padding: 32px;
  aspect-ratio: 900 / 350;
  box-sizing: content-box;
}
.carrousel img {
  position: absolute;
  inset: 32px;
  width: calc(100% - 64px);
  height: calc(100% - 64px);
  object-fit: contain;
  opacity: 0;
  transition: opacity .7s ease-in-out;
}
.carrousel img.actif { opacity: 1; }

/* Liste des fonctions (reprend l'ancien grand titre) */
.fonctions {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: lighter;
  color: #000;
}
.fonctions li { margin-bottom: 16px; }
.fonctions li::before { content: "- "; }

/* Bloc pré-commande */
.bloc-orange {
  background: var(--orange-bloc);
  color: #000;
  padding: 16px 0 20px;
}
.bloc-orange h2 { font-weight: bold; padding: 0 16px; }
.bloc-orange p { padding: 0 16px; margin: 0 0 16px; }
.bloc-orange a { color: #fff; }

/* Formulaires */
.formulaire { padding: 0 16px; }
.champ {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 6px 20px;
  align-items: start;
  margin-bottom: 14px;
}
.champ > label:first-child,
.champ > .libelle {
  text-align: right;
  padding-top: 6px;
  font-size: 12px;
}
.champ input[type="text"],
.champ input[type="email"],
.champ input[type="url"],
.champ input[type="password"],
.champ select,
.champ textarea {
  width: 100%;
  max-width: 420px;
  padding: 6px 8px;
  font: inherit;
  font-size: 14px;
  color: #555;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}
.bloc-orange .champ input { max-width: none; border-color: transparent; }
.champ textarea { min-height: 110px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: 2px solid rgba(82, 168, 236, .6);
  border-color: rgba(82, 168, 236, .8);
}
.obligatoire::after { content: " *"; color: #b00; }
.case { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; }
.case input { margin-top: 2px; width: 16px; height: 16px; flex: none; }
.aide { font-size: 11px; color: #666; }
.bloc-orange .aide { color: #222; }

/* Champ piège anti-robot : invisible pour les humains */
.piege { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.actions { padding-left: 180px; margin-top: 6px; }
.bloc-orange .actions { border-top: 1px solid rgba(0, 0, 0, .12); padding-top: 18px; }

.bouton {
  display: inline-block;
  padding: 6px 14px;
  font: inherit;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(to bottom, #08c, #04c);
  border: 1px solid #04c;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}
.bouton:hover { background: #04c; text-decoration: none; }
.bouton-secondaire { background: linear-gradient(to bottom, #ee5f5b, #bd362f); border-color: #bd362f; }
.bouton-secondaire:hover { background: #bd362f; }

.message {
  padding: 12px 16px;
  border-radius: 4px;
  margin: 0 0 20px;
  border: 1px solid;
}
.message-ok { background: #dff0d8; color: #3c763d; border-color: #d6e9c6; }
.message-erreur { background: #f2dede; color: #a94442; border-color: #ebccd1; }

/* Vidéo */
.titre-marker { font-family: var(--marker); font-size: 30px; font-weight: normal; }
.video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; margin-top: 16px; }

/* Deux colonnes illustrées */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}
.duo h2 { text-align: center; }
.icone { display: block; margin: 0 auto 6px; width: 22px; height: 22px; fill: #000; }
.duo figure { margin: 0 0 16px; text-align: center; }
.duo .texte-fort { font-weight: bold; font-size: 15px; }
.duo ul { margin: 0 0 12px; padding-left: 22px; }
.zoomable { cursor: zoom-in; display: inline-block; }

.slogan-final {
  font-weight: bold;
  font-size: 17px;
  text-align: center;
  max-width: 560px;
  margin: 12px auto 0;
}

/* Colonne « Bientôt » */
.bientot { text-align: center; }
.bientot h2 { text-align: left; }
.bientot p { color: var(--rouge-texte); font-size: 18px; line-height: 1.3; }

/* Coordonnées (page contact) */
.coordonnees p { margin: 0 0 14px; }

/* Visionneuse d'image */
.visionneuse {
  border: 0; padding: 0; background: transparent;
  max-width: 90vw; max-height: 90vh;
}
.visionneuse::backdrop { background: rgba(0, 0, 0, .8); }
.visionneuse img { display: block; max-width: 90vw; max-height: 85vh; width: auto; }
.visionneuse button {
  position: absolute; top: 4px; right: 4px;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}

/* Sondage */
.sondage label { display: block; margin: 6px 0; font-size: 14px; }
.resultats { list-style: none; padding: 0; margin: 12px 0; max-width: 460px; }
.resultats li { margin-bottom: 10px; }
.barre { height: 14px; background: #eee; border-radius: 7px; overflow: hidden; }
.barre span { display: block; height: 100%; background: #3399ff; }
.resultats li.choix .barre span { background: #ff9900; }

/* ---------- Pied de page ---------- */

.pied {
  background: #fff;
  border-top: 20px solid #fff;
}
.pied-colonnes {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 28px 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pied-colonnes p { margin: 0 0 14px; }
.pied-colonnes ul { margin: 34px 0 0; padding-left: 18px; }
.pied-colonnes a { color: var(--lien); }
.pied-bas {
  border-top: 1px solid var(--gris-moyen);
  padding: 8px 16px 12px;
}
.pied-bas-inner {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: #000;
}
.pied-bas a { color: var(--lien); }

.haut-de-page {
  position: fixed; right: 16px; bottom: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff;
  display: grid; place-items: center;
  text-decoration: none; font-size: 20px;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.haut-de-page.visible { opacity: 1; pointer-events: auto; }
.haut-de-page:hover { text-decoration: none; background: rgba(0, 0, 0, .75); }

/* Pages simples (mentions légales, 404, connexion) */
.page-simple { max-width: 680px; }
.page-simple h2 { margin-top: 28px; }
.a-completer { background: #fff3cd; padding: 0 4px; }

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  .entete { padding: 14px 16px 150px; }
  .logo-nom { font-size: 44px; }
  .logo-slogan { font-size: 15px; }
  .logo img { width: 48px; }
  .menu { display: flex; }
  .menu li { flex: 1 1 auto; text-align: center; }
  .contenu { margin-top: -150px; padding: 16px 16px 24px; }
  .colonnes, .duo, .pied-colonnes { grid-template-columns: 1fr; }
  .colonne-laterale { border-left: 0; border-top: 1px solid var(--gris-ligne); padding: 16px 0 0; }
  .carrousel { margin: 8px auto 16px; padding: 0; }
  .carrousel img { inset: 0; width: 100%; height: 100%; }
  h1 { font-size: 26px; }
  .fonctions { font-size: 17px; }
  .champ { grid-template-columns: 1fr; }
  .champ > label:first-child, .champ > .libelle { text-align: left; padding-top: 0; }
  .actions { padding-left: 0; }
  .bloc-orange .actions { padding-left: 16px; }
  .pied-colonnes { padding: 0 16px 16px; }
  .pied-colonnes ul { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .carrousel img, .haut-de-page { transition: none; }
}

@media print {
  .entete, .menu, .pied, .haut-de-page, .bloc-orange { display: none; }
  body { background: #fff; }
  .contenu { margin: 0; max-width: none; }
}

/* Vidéo verticale (copro maps) */
.video.video-portrait { aspect-ratio: 9 / 16; max-width: 320px; margin: 16px auto; }

/* Ajustements après comparaison avec l'ancien site */
h1 { font-family: Arial, Helvetica, sans-serif; font-weight: normal; }
.pied a, .pied-bas a, .menu a { text-decoration: none; }
.pied a:hover, .pied-bas a:hover { text-decoration: underline; }
/* Le pied de page blanc occupe le bas de l'écran sur les pages courtes */
body { min-height: 100vh; display: flex; flex-direction: column; }
.pied { flex-grow: 1; }
.contenu { width: 100%; }
