:root {
  --bg:#f6f3ed;
  --paper:#fffdf9;
  --ink:#1f2328;
  --muted:#6a6f76;
  --line:#e4ddd1;
  --accent:#8a1f1f;
  --accent-2:#264653;
  --shadow:0 10px 30px rgba(0,0,0,.06);
  --radius:20px;
  --max:1380px;
  --sidebar:320px;
}
* { box-sizing:border-box; }

html { scroll-behavior:smooth; }

body {
  margin:0;
  font:16px/1.65 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at top left, rgba(143,47,35,.10), transparent 35%),
    linear-gradient(180deg, #ffffff, var(--bg) 260px);
}

a { color:inherit; }

footer{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: #cf4432;
  padding:15px 0;
  max-width:var(--max);
  margin:0 auto;

}

footer p{
  color: white;
  font-size: 10px;
  line-height: 12px;
  margin: 0;
}

.hero {
  position: relative;
  padding:34px 20px 34px;
}

.hero-inner1 {
  max-width:var(--max);
  margin:0 auto;
  background:#3b8a5a;
  color:white;
  padding:15px;
  box-shadow:var(--shadow);
}

.hero-inner2 {
  max-width:var(--max);
  margin:0 auto;
  background:#cf4432;
  color:white;
  padding:15px;
  box-shadow:var(--shadow);
}

.hero img{
    position:absolute;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    width: 30%;
}
.hero .kicker {
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.78rem;
  opacity:.85;
  margin-bottom:10px;
}
.hero h1 {
  display:flex;
  align-items: center;
  justify-content: center;
  font:700 clamp(2rem, 5vw, 4.3rem)/1.02 Georgia, "Times New Roman", serif;
}

.wrapper {
  max-width:var(--max);
  margin:0 auto;
  padding:0 20px 48px;
}
.page-layout {
  display:grid;
  grid-template-columns:var(--sidebar) minmax(0,1fr);
  gap:22px;
  align-items:start;
}
.sidebar {
  position:sticky;
  top:16px;
}
.menu-card {
  background:#cf4432;/*rgba(255,253,249,.88);*/
  backdrop-filter: blur(8px);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
  max-height:calc(100vh - 32px);
  overflow:auto;
}
.menu-title {
  font-weight:700;
  color:white;
  margin-bottom:12px;
  font-size:1.05rem;
  text-decoration: underline;
}
.menu-card ul {
  list-style:none;
  margin:0;
  padding:0;
}

.menu-card li{
  color: white;
}

.top2{
  padding: 9px 11px;
}

.menu-card li + li {
  margin-top:4px;
}
.menu-card li.sub {
  padding-left:14px;
}
.menu-card a {
  display:block;
  text-decoration:none;
  color:white;
  padding:9px 11px;
  border-radius:12px;
  transition:.18s ease;
}

.menu-card a:hover {
  background:#f3ece2;
  color:#27303a;
}
.menu-card a.active {
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff;
  font-weight:600;
}
.content {
  min-width:0;
}
section {
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px;
  box-shadow:var(--shadow);
  margin-bottom:20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all .6s ease;
}
section[id], h2[id], h3[id] {
  scroll-margin-top:20px;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.intro-card{height:350px;}

#titre1{
  
  background-image: url("../img/gallery50/Vergnades/5.jpg");
  background-size: cover;
}

#titre2{
  
  background-image: url("../img/gallery50/Vergnades/3.jpg");
  background-position: 0% 30%;
  background-size: cover;
}
#titre2 h2{color : black;}

#titre3{
  
  background-image: url("../img/gallery50/Tronques/6.jpg");
  background-position: 0% 35%;
  background-size: cover;
}

#titre4{
  
  background-image: url("../img/gallery50/Lac/9.jpg");
  background-position: 0% 35%;
  background-size: cover;
}

#titre5{
  
  background-image: url("../img/gallery50/stand10/11.jpg");
  background-position: 0% 35%;
  background-size: cover;
}

#titre6{
  
  background-image: url("../img/gallery50/today/25.jpg");
  background-position: 0% 35%;
  background-size: cover;
}

#titre7{
  
  background-image: url("../img/gallery50/Logos/3.png");
  background-position: 0% 50%;
  background-size:contain;
  background-repeat: no-repeat;
}

#titre7 h2{color : black;}

#titre6 h2{margin: 250px 0 0 0;}

#titre8{
 
  background-image: url("../img/gallery50/presidents-figures/Karine-Christine.jpeg");
  background-position: 0% 35%;
  background-size: cover;
}

#titre9{
  
  background-image: url("../img/gallery50/divers/2.jpg");
  background-position: 0% 35%;
  background-size: cover;
}

#titre10{

  background-image: url("../img/gallery50/champions/gaudry2.jpg");
  background-position: 0% 35%;
  background-size: cover;
}

#titre11{
  
  background-image: url("../img/gallery50/presidents-figures/USCT_2011.jpg");
  background-position: 0% 35%;
  background-size: cover;
}

.wrapper-figures{
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-figures{
  display: flex;
  align-items: start;
  justify-content: center;
}

.gallery-figures img{
  margin:0;
  width: 70%;
  box-shadow:0 10px 22px rgba(0,0,0,0.4);
}

.quote{
  font-style: italic;
  font-size: 12px;
  padding: 10px;
}

.meta{
  text-align:end;
  padding: 0 30px;
}


.intro-card h2 {
  margin-top:0;
  color:white;
}
.intro-meta {
  color:var(--muted);
}
h2, h3, h4 {
  line-height:1.18;
}
h2 {
  margin:0 0 18px;
  font:700 clamp(1.55rem,2.8vw,2.25rem)/1.1 'Roboto-Regular', Arial;
  color:#18212a;
}

h3 {
  margin:28px 0 12px;
  font-size:1.35rem;
  color:var(--accent-2);
}
h4 {
  margin:22px 0 8px;
  font-size:1.08rem;
  color:#2a3844;
}
p {
  margin:0 0 14px;
}
ul {
  margin:0 0 16px 22px;
}
figure {
  margin:18px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.gallery{
  margin: 50px 0;
}

figure img {
  width:50%;
  margin: 15px 0;
  box-shadow:0 10px 22px rgba(0,0,0,0.4);
}

#logos img {
  box-shadow: none;}

figcaption {
  margin-top:8px;
  font-size:.95rem;
  font-style: italic;
  color:var(--muted);
  text-align:center;
}
blockquote {
  margin:18px 0;
  padding:14px 16px;
  border-left:4px solid var(--gold);
  background:#f8f1e3;
  border-radius:0 14px 14px 0;
}
.backtop {
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:30;
  text-decoration:none;
  background:var(--accent);
  color:#fff;
  padding:12px 14px;
  border-radius:999px;
  box-shadow:var(--shadow);
  font-weight:700;
}


.mobile-menu-btn{
  display:none;
  position:fixed;
  right:16px;
  bottom:74px;
  z-index:45;
  border:none;
  border-radius:999px;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff;
  padding:13px 16px;
  font:700 15px/1 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  box-shadow:var(--shadow);
  cursor:pointer;
}
.menu-overlay{
  display:none;
}

/* galerie d'images 50 ans*/

.gallery50-container{
	padding-bottom: 20px;
  margin: 30px 0 0 0;

}

.gallery50{
	width: 80%;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 2vmin;
	padding: 0 14px;
}

.gallery50::after{
	content: "";
	display: none;
	flex-grow: 10;
}

.gallery50 li{
	list-style-type: none;
	height: 250px;
	flex-grow: 1;
  transition: opacity .3s ease;
}

.gallery50 img {
	width: 100%;
	height: 100%;
	object-fit: cover;
  box-shadow:0 10px 22px rgba(0,0,0,0.4);
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);

  transform: scale(0.88);
  opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
}

.lightbox.open img {
  transform: scale(1);
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

@media (max-width: 1020px) {
  .mobile-menu-btn{display:inline-flex;align-items:center;gap:8px}
  .sidebar{display:none}
  .menu-overlay{
    position:fixed;
    inset:0;
    z-index:60;
    background:rgba(32,23,16,.52);
    padding:18px 14px;
    align-items:flex-end;
    justify-content:center;
  }
  .menu-overlay.open{display:flex}
  .menu-dialog{
    width:min(100%, 560px);
    max-height:86vh;
    overflow:auto;
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:22px;
    box-shadow:0 20px 50px rgba(0,0,0,.22);
    padding:16px;
  }
  .menu-dialog-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:10px;
  }
  .menu-dialog-title{
    font-weight:800;
    color:var(--accent);
    font-size:1.05rem;
  }
  .menu-close{
    border:none;
    background:#efe2c8;
    color:var(--accent-dark);
    border-radius:999px;
    padding:10px 12px;
    font-weight:700;
    cursor:pointer;
  }
  .menu-dialog .menu-card{
    background:transparent;
    box-shadow:none;
    border:none;
    padding:0;
    max-height:none;
  }
}

/* ========================= */
/* BOUTON MENU MOBILE */
/* ========================= */

.mobile-menu-btn {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 1001;

  padding: 12px 16px;
  border: none;
  border-radius: 999px;

  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 700;

  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* OVERLAY (fond noir) */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.6);
  display: none;
}

.menu-overlay.open {
  display: block;
}


/* MENU (panneau latéral) */


.menu-dialog {
  position: fixed;
  top: 0;
  right: 0;
  width: min(85vw, 360px);
  height: 100vh;
  background: #cf4432;
  box-shadow: -10px 0 30px rgba(0,0,0,0.25);
  border-color: #cf4432;
  overflow-y: auto;
  padding: 20px;
}

/* HEADER MENU */

.menu-dialog-head {
  display: flex;
  flex-direction: column;
}

.menu-title {
  font-size: 20px;
  font-weight: 800;
  height: 100px;
  width: 100%;
  text-align: center;
  margin-bottom: 16px;
  color: black;
  background-color: white;
  background-image: url("../img/gallery50/today/24.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


/* ========================= */
/* LISTE */
/* ========================= */

.menu-dialog ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-dialog li {
  margin: 0;
  padding: 0;
}

/* titres de section */
.menu-dialog .top2 {
  margin: 18px 0 8px;
  padding-top: 12px;
  border-top: 1px solid #ddd;

  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  color: #b3abab;
;
}

/* liens */
.menu-dialog a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;

  text-decoration: none;
  color: white;
}

/* sous éléments */
.menu-dialog .sub a {
  padding-left: 22px;
  font-size: 15px;
}

/* hover + actif */
.menu-dialog a:hover,
.menu-dialog a.active {
  background: #111;
  color: #fff;
}

/* BOUTON FERMETURE */

.menu-close {
  margin-top: 20px;

  padding: 10px;
  border: none;
  border-radius: 8px;

  background: #222;
  color: #fff;

  cursor: pointer;
}

.load-more-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #cf4432;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.load-more-btn:hover {
  background: #a93225;
}


/* RESPONSIVE */


/* mobile uniquement */
@media (max-width: 1020px) {
  .mobile-menu-btn {
    display: block;
  }

  .sidebar {
    display: none;
  }
}

/* desktop */
@media (min-width: 1021px) {
  .mobile-menu-btn,
  .menu-overlay {
    display: none !important;
  }
}

@media (max-width: 1020px) {
  .page-layout {
    grid-template-columns:1fr;
  }
  .sidebar {
    position:sticky;
    top:0;
    z-index:20;
  }
  .menu-card {
    max-height:none;
    border-radius:0 0 18px 18px;
  }
}
@media (max-width: 720px) {
  .hero {
    padding:18px 12px 18px;
  }
  .hero-inner {
    padding:28px 20px;
    border-radius:22px;
  }
  .wrapper {
    padding:0 12px 32px;
  }
  section {
    padding:18px;
    border-radius:18px;
  }
}


@media (max-width: 750px) {

    .hero img{width:50%; margin:10px;transform: translate(-50%, -66%);}
}

@media (max-width:600px) {

    .intro-card h2 {font-size:18px;}
}

@media (max-width:500px) {

    figure img {width:100%;}
    .intro-card{height: 200px;}
    #titre6 h2{margin: 150px 0 0 0;}
    .wrapper-figures{flex-direction: column;}
    .gallery-figures{margin-bottom: 15px;}
    .gallery50 li {display: flex;justify-content: center;align-items: center;}
    .gallery50{width:100%; gap: 4vmin;}
    .gallery50 img{width: auto; max-width:100%;}
    .intro-card h2{font-size: 16px;}
    /*.gallery50::after{display: block;}*/
    
    
}


@font-face {
    font-family: 'Roboto-Regular';
    src: url('Roboto-Regular.woff2') format('woff2'),
         url('Roboto-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}
