* {
  box-sizing: border-box;
}

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

body {
  background-color: #ffffff;
  padding: 50px 380px;
  font: 18px/1.8 "EB Garamond", Garamond, serif;
  color: #000000;
  font-weight: 400;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sidebar-left,
.sidebar-right {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 350px;
  background-color: #000080;
  z-index: 0;
}

.sidebar-left {
  left: 0;
}

.sidebar-right {
  right: 0;
}

.img-trieste {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}

figcaption {
  font-size: 0.85em;
  color: #555;
  text-align: center;
  margin-top: 6px;
  font-style: italic;
}

/* NAV */
nav {
  background-color: #D3D3D3;
  margin-top: 20px;
  letter-spacing: 0.05em;
  font-variant: small-caps;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 8px 0;
}

nav a {
  display: inline-block;
  margin-bottom: 0;
  padding: 4px 8px;
}

nav a.actif {
  color: #000080;
  font-weight: bold;
  text-decoration: none;
}

.sous-nav {
  display: block;
  text-align: center;
}

.sous-nav a {
  display: block;
  padding-left: 15px;
  font-size: 0.9em;
  font-weight: normal;
  font-variant: normal;
  margin-bottom: 4px;
}

/* TITRES */
h1, h2, h3, h4, h5, h6 {
  color: #000000;
  margin: 0 0 20px;
  font-weight: bold;
  line-height: 1.1;
}

h1 {
  font-size: 28px;
  font-weight: 500;
  text-align: left;
}

h2 {
  font-family: Garamond, "EB Garamond", serif;
  color: #393939;
  font-weight: bold;
  font-variant: small-caps;
}

h3, h4, h5, h6 {
  color: #494949;
  font-weight: bold;
}

/* TITRE PERSONNALISÉ */
.titre-principal {
  text-align: left;
  font-weight: normal;
}

.nom {
  display: block;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 0px;
}

.fonction {
  display: block;
  font-size: 18px;
  font-variant: small-caps;
  letter-spacing: 0.05em;
}

/* ESPACEMENTS */
p, ul, ol, table, pre, dl {
  margin: 0 0 20px;
}

/* LIENS */
a {
  color: #000000;
  text-decoration: none;
}

a:hover {
  color: #000080;
  text-decoration: underline;
}

a small {
  font-size: 11px;
  color: #777;
  margin-top: -0.3em;
  display: block;
}

a:hover small {
  color: #777;
}

/* WRAPPER */
.wrapper {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* BLOCKQUOTE */
blockquote {
  border-left: 1px solid #e5e5e5;
  margin: 0;
  padding: 0 0 0 20px;
  font-style: italic;
}

/* CODE */
code, pre {
  font-family: Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal,
    Consolas, Liberation Mono, DejaVu Sans Mono, Courier New, monospace;
  color: #333;
}

pre {
  padding: 8px 15px;
  background: #f8f8f8;
  border-radius: 5px;
  border: 1px solid #e5e5e5;
  overflow-x: auto;
}

/* TABLEAUX */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 5px 10px;
  border-bottom: 1px solid #e5e5e5;
}

dt {
  color: #444;
  font-weight: 500;
}

th {
  color: #444;
}

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

/* DIVERS */
strong {
  color: #222;
  font-weight: 500;
}

small {
  font-size: 11px;
}

hr {
  border: 0;
  background: #000000;
  height: 1px;
  margin: 0 0 20px;
}

/* HEADER */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  flex-shrink: 0;
}

header img {
  display: block;
  margin-bottom: 15px;
}

/* SECTION */
section {
  float: none;
  margin: 0 auto;
  padding-top: 50px;
  padding-bottom: 20px;
}

section a {
  color: #000080;
}

/* FOOTER */
footer {
  text-align: center;
  width: 100%;
  padding: 40px 0;
  font-size: 0.85em;
  color: #444;
  border-top: 2px solid #ddd;
  margin-top: 0px;
  box-sizing: border-box;
}

/* FORMULAIRE */
form input,
form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1em;
  box-sizing: border-box;
}

form button {
  padding: 8px 20px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
}

form button:hover {
  background-color: #333;
}

/* BOUTON RETOUR EN HAUT */
#retour-haut {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: none;
}

/* SECTION FOND BLEU MARINE */
.section-bleue {
  background-color: #000080;
  color: #ffffff;
  padding: 40px;
}

.section-bleue a {
  color: #ffffff;
}

.section-bleue a:hover {
  color: #cccccc;
}

.section-bleue h2 {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  font-variant: normal;
  font-family: "EB Garamond", Garamond, serif;
}

/* PAGE CONTACT — desktop */
.contact-bloc {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  max-width: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
}

.contact-centre {
  align-items: center;
}

.img-contact {
  width: 440px;
  height: auto;
  flex-shrink: 0;
}

.img-catalogue {
  width: 220px;
  height: auto;
  flex-shrink: 0;
  align-self: flex-start;
}

.coordonnees {
  flex: 1;
}

/* BOUTONS ACHAT */
.boutons-achat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.bouton-achat {
  display: block;
  width: 220px;
  text-align: center;
  padding: 6px 12px;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  font-size: 0.85em;
  font-variant: small-caps;
  letter-spacing: 0.05em;
}

.bouton-achat:hover {
  background-color: #ffffff;
  color: #000080;
  text-decoration: none;
}

/* GALERIE */
.galerie {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 40px 0;
}

.galerie img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  background-color: #f5f5f5;
}

/* =========================
   TABLETTES ET MOBILES
   ========================= */
@media screen and (max-width: 960px) {

  body {
    padding: 15px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.7;
  }

  .sidebar-left,
  .sidebar-right {
    display: none;
  }

  .wrapper {
    width: auto;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  header {
    position: static;
    float: none;
    width: auto;
    display: block;
  }

  .header-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .titre-principal,
  .nom,
  .fonction {
    text-align: center;
  }

  .logo {
    margin-top: 10px;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  section {
    margin-left: 0 !important;
    float: none;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  footer {
    margin-left: 0 !important;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* CONTACT BLOC MOBILE */
  .contact-bloc {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 20px;
  }

  /* EXCEPTION PAGE À PARAÎTRE */
  .section-paraitre .contact-bloc {
    align-items: flex-start;
    text-align: left;
  }

  .img-contact {
    width: 220px;
  }

  .img-catalogue {
    display: block;
    margin: 0 auto;
  }

  .coordonnees {
    flex: none;
    width: 100%;
  }

  /* EXCEPTION CATALOGUE MOBILE */
  .section-bleue .coordonnees {
    text-align: left;
  }

  .galerie {
    grid-template-columns: 1fr;
  }
}

/* IMPRESSION */
@media print {
  body {
    padding: 0.4in;
    font-size: 12pt;
    color: #444;
  }

  .sidebar-left,
  .sidebar-right {
    display: none;
  }
}
