/* argol.css - mise en page 2026 (prime sur style.css) */
:root { --rouge: #ED1C24; --noir: #111; --gris: #666; --filet: #ddd; --serif: Georgia, "Times New Roman", Times, serif; }
html { box-sizing: border-box; } *, *:before, *:after { box-sizing: inherit; }
body { background: #fff none; margin: 0; color: var(--noir); font-family: var(--serif); font-size: 16px; line-height: 1.55; }
#container { position: static; width: auto; max-width: 980px; margin: 0 auto; padding: 0 20px; font-size: 16px; }
#page, main#page { position: static; top: auto; left: auto; width: auto; max-width: 760px; margin: 0 auto; padding: 24px 0 48px; min-height: 40vh; }
#page > br:first-child, #page > br:first-child + br { display: none; }
#page img { max-width: 100%; height: auto; }
#titrePage1 { font-size: 26px; text-align: left; margin-bottom: 24px; }
#titreLivre { font-size: 24px; }
#page a { color: var(--rouge); }
#page p, #page div { max-width: 100%; }

/* ---- en-tete */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0 14px; border-bottom: 1px solid var(--rouge); position: relative; flex-wrap: wrap; }
.site-header .logo img { display: block; height: 70px; width: auto; }
.nav-toggle, .nav-burger { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav > ul > li { position: relative; }
.site-nav a { display: block; padding: 8px 12px; color: var(--noir); text-decoration: none; font-size: 17px; white-space: nowrap; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a:focus { color: var(--rouge); border-bottom-color: var(--rouge); }
.site-nav .caret { font-size: 12px; color: var(--gris); }
.site-nav .sub { position: absolute; left: 0; top: 100%; z-index: 500; display: none; flex-direction: column; gap: 0; min-width: 260px; background: #fff; border: 1px solid var(--filet); border-top: 2px solid var(--rouge); box-shadow: 0 8px 24px rgba(0,0,0,.08); padding: 6px 0; }
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { display: flex; }
.site-nav .sub a { padding: 7px 16px; font-size: 16px; border: 0; }
.site-nav .sub a:hover { background: #fdf2f2; }

/* ---- pied de page */
.site-footer { border-top: 1px solid var(--rouge); margin-top: 24px; padding: 18px 0 32px; color: var(--gris); font-size: 14px; text-align: center; }
.site-footer a { color: var(--rouge); text-decoration: none; }
.site-footer .small { font-size: 13px; }

/* ---- accueil */
.home-hero { text-align: center; padding: 36px 0 28px; }
.home-hero h1 { font-size: 30px; font-weight: normal; line-height: 1.25; margin: 0 0 18px; color: var(--noir); }
.home-hero h1 em { color: var(--rouge); font-style: italic; }
.home-hero p { font-size: 18px; margin: 8px 0; color: #333; }
.home-hero .cta { display: inline-block; margin: 18px 8px 0; padding: 10px 20px; border: 1px solid var(--rouge); color: var(--rouge); text-decoration: none; border-radius: 2px; }
.home-hero .cta:hover, #page .home-hero .cta:hover { background: var(--rouge); color: #fff; }
.home-section { margin: 44px 0 0; }
.home-section h2 { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); font-weight: normal; border-bottom: 1px solid var(--filet); padding-bottom: 8px; margin: 0 0 20px; }
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 22px 18px; }
.covers a, #page .covers a { text-decoration: none; color: var(--noir); font-weight: normal; font-size: 14px; line-height: 1.3; }
.covers img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; box-shadow: 0 2px 10px rgba(0,0,0,.15); margin-bottom: 8px; transition: transform .15s; }
.covers a:hover img { transform: translateY(-3px); }
.covers .t { display: block; font-style: italic; }
.covers .a { display: block; color: var(--gris); font-size: 13px; }
.colls { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 24px; list-style: none; padding: 0; margin: 0; }
.colls a { color: var(--noir); text-decoration: none; display: block; padding: 6px 0; border-bottom: 1px dotted var(--filet); }
.colls a:hover { color: var(--rouge); }
.presentation { max-width: 640px; margin: 0 auto; text-align: justify; }
.presentation p { margin: 0 0 14px; }
.memo { font-style: italic; color: #333; max-width: 640px; margin: 0 auto; text-align: justify; }

/* ---- mobile */
@media (max-width: 760px) {
  #container { padding: 0 14px; }
  .site-header { gap: 12px; }
  .site-header .logo { flex: 1 1 0; min-width: 0; overflow: hidden; }
  .site-header .logo img { height: 52px; }
  .nav-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 36px; cursor: pointer; margin-left: auto; }
  .nav-burger span { display: block; height: 2px; background: var(--noir); }
  .site-nav { display: none; width: 100%; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav .sub { position: static; display: flex; box-shadow: none; border: 0; border-left: 2px solid var(--rouge); margin: 0 0 6px 12px; padding: 0; }
  .site-nav .caret { display: none; }
  .home-hero h1 { font-size: 24px; }
  #page table { width: 100% !important; }
}
