/* =========================================================
   VARIABLES GÉNÉRALES
   ========================================================= */

:root {
  --header-width: 96%;
  --header-max-width: 1000px;

  --bleu-nuit: #1f2744;
  --or: #c9a84c;
  --or-clair: #e8c97a;
  --rouge: #8b2635;
  --ardoise: #4a5568;
  --creme: #faf7f0;
  --ombre: rgba(26, 39, 68, 0.12);

  --fond-page: #fefeb9;
  --fond-contenu: #ffffff;
  --texte: #222222;
  --lien: teal;
  --bordure: #000000;

  --largeur-contenu: 920px;
}

/* =========================================================
   BASE GÉNÉRALE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  font-size: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 8px;
  background-color: var(--fond-page);
  color: var(--texte);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* Images anciennes placées dans les tableaux : elles conservent leur largeur HTML sur ordinateur */
/* Sur ordinateur : les images anciennes dans les tableaux gardent leur taille naturelle */
@media (min-width: 701px) {
  table.content td > img,
  table.content td > a > img,
  table.content1 td > img,
  table.content1 td > a > img {
    max-width: none;
    width: auto;
    height: auto;
  }
}



iframe {
  max-width: 100%;
}

a {
  color: var(--lien);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  text-decoration: none;
}

a:link,
a:visited {
  color: var(--lien);
}

a:hover,
a:focus {
  color: #800000;
  background-color: #fbb;
  text-decoration: underline;
}

/* =========================================================
   FORMULAIRES
   ========================================================= */

input {
  max-width: 100%;
  background-color: #ffffff;
  color: #000000;
  font-size: 0.9rem;
  font-weight: bold;
}

/* =========================================================
   TITRES
   ========================================================= */

h1,
h2,
h3 {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  line-height: 1.25;
}

h1 {
  margin: 0 0 16px 0;
  padding: 8px 10px;
  background-color: #1ef11e;
  color: #666666;
  font-size: 1.6rem;
  text-align: center;
}

h2 {
  margin: 0 0 8px 0;
  padding: 0;
  font-size: 1.25rem;
  color: #b00000;
}

h3 {
  margin: 0 0 6px 0;
  padding: 0;
  font-size: 1.05rem;
  color: #157515;
}

p {
  margin: 0 0 8px 0;
  padding: 2px 0;
  font-size: 1rem;
}

/* =========================================================
   STRUCTURE GÉNÉRALE MODERNE
   ========================================================= */

.page-wrap {
  width: 100%;
  padding-top: 10px;
}

/* Bloc centré commun à l'entête, au menu et au contenu */
.aligned-block {
  width: min(var(--header-width), var(--header-max-width));
  max-width: var(--header-max-width);
  margin: 0 auto;
}

/* Ancien container corrigé */
div#container {
  position: relative;
  width: min(100%, 760px);
  min-height: 300px;
  margin: 0 auto 16px auto;
  top: auto;
  left: auto;
}

/* =========================================================
   BANDEAU SUPÉRIEUR
   ========================================================= */

.top-strip {
  background: var(--bleu-nuit);
  color: var(--or-clair);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px 12px;
}

/* =========================================================
   ENTÊTE FRANCEBALADE
   ========================================================= */

.site-header {
  background: var(--creme);
  border-bottom: 3px solid var(--or);
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% 50%,
    rgba(201, 168, 76, 0.07) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 1;
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
}

.logo:hover,
.logo:focus {
  background: transparent;
  text-decoration: none;
}

.logo-titre {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--bleu-nuit);
  line-height: 1;
  letter-spacing: -0.02em;
}

.logo-titre span {
  color: var(--rouge);
}

.logo-titre::after {
  content: "";
  display: block;
  height: 3px;
  width: 60%;
  background: linear-gradient(90deg, var(--or), transparent);
  margin-top: 5px;
}

.logo-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ardoise);
  letter-spacing: 0.06em;
}

/* Libellé Recherche */
.search-label {
  color: red;
  margin-left: auto;
  white-space: nowrap;
}

/* Zone recherche */
.search-zone {
  width: 260px;
  flex-shrink: 0;
}

/* =========================================================
   GOOGLE CSE
   ========================================================= */

.search-zone .gsc-control-cse {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.search-zone .gsc-input-box {
  border: 1.5px solid var(--or) !important;
  border-radius: 2px !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px var(--ombre) !important;
  padding: 4px 10px !important;
  height: auto !important;
}

.search-zone input.gsc-input {
  font-family: 'Quattrocento Sans', Arial, sans-serif !important;
  font-size: 13px !important;
  color: var(--bleu-nuit) !important;
  background: #ffffff !important;
  padding: 0 !important;
  margin: 0 !important;
}

.search-zone .gsc-search-button-v2 {
  background: var(--bleu-nuit) !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 6px 10px !important;
  cursor: pointer !important;
  margin-left: 4px !important;
}

.search-zone .gsc-search-button-v2:hover {
  background: #24365d !important;
}

.search-zone .gsc-search-button-v2 svg path {
  fill: var(--or) !important;
}

.search-zone table.gsc-input {
  background: transparent !important;
}

.search-zone .gsib_a {
  padding: 0 !important;
}

.search-zone .gsib_b {
  display: none !important;
}

/* Résultats de recherche */
.search-results-wrap {
  width: min(96%, 1200px);
  margin: 28px auto 0 auto;
}

.gsc-control-cse,
.gcse-searchresults-only,
.gsc-results-wrapper-overlay,
.gsc-resultsbox-visible {
  width: 100% !important;
  box-sizing: border-box !important;
}

table.gsc-search-box,
table.gsc-search-box td,
table.gsc-resultsHeader,
table.gsc-above-wrapper-area-container,
table.gsc-table-result {
  width: 100% !important;
}

/* =========================================================
   MENU DE NAVIGATION PRINCIPAL
   ========================================================= */

.site-nav {
  background: var(--bleu-nuit);
  position: relative;
  z-index: 1000;
  overflow: visible;
}

.site-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rouge), var(--or), var(--rouge));
}

.nav-inner {
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 13px 18px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:link,
.site-nav a:visited {
  color: rgba(255, 255, 255, 0.88);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: var(--or);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
  background-color: rgba(201, 168, 76, 0.16);
  text-decoration: none;
}

.site-nav a.active {
  color: var(--or-clair);
  background-color: rgba(201, 168, 76, 0.10);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.nav-sep {
  color: rgba(201, 168, 76, 0.35);
  display: flex;
  align-items: center;
  font-size: 18px;
}

/* =========================================================
   BLOCS ANCIENS : ENTÊTES, CONTENUS, TABLEAUX
   ========================================================= */

.entete,
.entete1 {
  position: relative;
  width: min(100%, var(--largeur-contenu));
  margin: 0 auto 12px auto;
  border: 1px solid var(--bordure);
  font-size: 0.95rem;
  background-color: var(--fond-contenu);
  text-align: justify;
  padding: 8px;
  z-index: 3;
}

.content,
.content1 {
  position: relative;
  width: min(100%, var(--largeur-contenu));
  max-width: 100%;
  margin: 0 auto 12px auto;
  border: 1px solid var(--bordure);
  font-size: 0.95rem;
  background-color: var(--fond-contenu);
  text-align: justify;
  padding: 10px;
  z-index: 3;
}

table.content,
table.content1 {
  width: min(100%, var(--largeur-contenu));
  max-width: 100%;
  border-collapse: collapse;
}

table.content td,
table.content1 td {
  vertical-align: top;
}

/* =========================================================
   BLOCS DE TRADUCTION
   ========================================================= */

.traduc,
.traduc1 {
  position: relative;
  width: min(100%, 220px);
  margin: 8px auto;
  border: 1px solid var(--bordure);
  padding: 4px;
  background-color: #ffffff;
  z-index: 3;
}

/* =========================================================
   NAVIGATIONS LATÉRALES ANCIENNES
   ========================================================= */

#navleft,
#navright {
  position: relative;
  width: min(100%, var(--largeur-contenu));
  margin: 8px auto;
  top: auto;
  left: auto;
  font-size: 0.95rem;
  border: 1px dashed var(--bordure);
  background-color: lightyellow;
  padding: 6px;
  z-index: 2;
}

#navright {
  border-style: solid;
  background-color: #ffffcc;
  z-index: 1;
}

/* =========================================================
   IMAGES FLOTTANTES ET LÉGENDES
   ========================================================= */

.imgleft {
  float: left;
  max-width: 48%;
  padding: 6px;
  margin: 0 10px 8px 0;
}

.imgright {
  float: right;
  max-width: 48%;
  padding: 6px;
  margin: 0 0 8px 10px;
}

.legim,
.legimr {
  font-size: 0.85rem;
  color: green;
}

.legimr {
  float: right;
  margin-left: 8px;
}

/* =========================================================
   PUBLICITÉS ET BLOCS PROMOTIONNELS
   ========================================================= */

.pub,
.puba,
.pub1,
.pub2 {
  position: relative;
  display: block;
  width: min(100%, 728px);
  min-height: 70px;
  height: auto;
  margin: 16px auto;
  left: auto;
  background-color: lightyellow;
  text-align: center;
  overflow: hidden;
}

.ad-wrap {
  width: min(96%, 1000px);
  margin: 20px auto 30px auto;
  text-align: center;
}

.promo-box {
  width: min(96%, 800px);
  margin: 40px auto 20px auto;
  padding: 18px 16px;
  font-size: 16px;
  color: blue;
  background-color: #f2f2f2;
  text-align: center;
}

.promo-box a {
  color: var(--bleu-nuit);
}

.promo-box a:hover {
  color: var(--rouge);
}

/* =========================================================
   LIEN HAUT DE PAGE
   ========================================================= */

.top-link {
  width: min(96%, 1000px);
  margin: 25px auto 40px auto;
  text-align: center;
}

.top-link a {
  color: var(--bleu-nuit);
}

.top-link a:hover {
  color: var(--rouge);
}

/* =========================================================
   CLASSES SPÉCIALES ANCIENNES
   ========================================================= */

.chHd {
  color: red;
  font-size: 1.25rem;
  margin-top: 8px;
  font-weight: bold;
}

.ch12 {
  color: green;
  font-size: 1rem;
  font-weight: bold;
}

dl {
  display: block;
  margin: 1em 0;
  font-size: 0.9rem;
}

/* =========================================================
   RESPONSIVE TABLETTES
   ========================================================= */

@media (max-width: 900px) {
  body {
    padding: 6px;
    font-size: 15px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-label {
    margin-left: 0;
  }

  .search-zone {
    width: 100%;
  }

  .nav-inner {
    padding: 0 12px;
  }

  .site-nav a {
    padding: 11px 12px;
    font-size: 14px;
  }

  .nav-sep {
    display: none;
  }

  .entete,
  .entete1,
  .content,
  .content1,
  table.content,
  table.content1,
  #navleft,
  #navright {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .promo-box {
    font-size: 18px;
  }

  h1 {
    font-size: 1.45rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1.05rem;
  }
}

/* =========================================================
   RESPONSIVE SMARTPHONE
   ========================================================= */

@media (max-width: 700px) {
  body {
    padding: 4px;
    font-size: 15px;
    line-height: 1.6;
  }

  h1 {
    font-size: 1.35rem;
    padding: 8px;
  }

  h2 {
    font-size: 1.15rem;
  }

  h3 {
    font-size: 1rem;
  }

  .content,
  .content1,
  .entete,
  .entete1 {
    padding: 8px;
    text-align: left;
  }

  table.content,
  table.content1,
  table.content tbody,
  table.content1 tbody,
  table.content tr,
  table.content1 tr,
  table.content td,
  table.content1 td {
    display: block;
    width: 100%;
  }

  table.content td,
  table.content1 td {
    padding: 6px;
  }

  .imgleft,
  .imgright,
  .legimr {
    float: none;
    display: block;
    max-width: 100%;
    margin: 8px auto;
    padding: 4px;
  }

  .pub,
  .puba,
  .pub1,
  .pub2,
  .ad-wrap,
  .promo-box {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  #navleft,
  #navright {
    font-size: 0.95rem;
  }

  table.content td > img,
  table.content td > a > img,
  table.content1 td > img,
  table.content1 td > a > img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

}


/* =========================================================
   TRÈS PETITS ÉCRANS
   ========================================================= */

@media (max-width: 600px) {
  .logo-titre {
    font-size: 28px;
  }

  .logo-tagline {
    font-size: 13px;
  }

  .top-strip {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .site-nav a {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 1.05rem;
  }

  h3 {
    font-size: 0.98rem;
  }

  .content,
  .content1,
  .entete,
  .entete1 {
    padding: 6px;
  }
}