/*
Theme Name:  Étaples-sur-Mer
Theme URI:   https://www.etaples-sur-mer.net
Author:      Mairie d'Étaples-sur-Mer
Author URI:  https://www.etaples-sur-mer.net
Description: Thème officiel de la ville d'Étaples-sur-Mer – Cité des Pêcheurs
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: etaples
Tags:        municipal, mairie, one-column, two-columns, custom-header, custom-menu, featured-images, responsive-layout
*/

/* ─── TOKENS ──────────────────────────────────────── */
:root {
  --navy:      #1b2d5b;
  --navy-dark: #111e3e;
  --gold:      #c9a84c;
  --gold-dark: #a8882e;
  --bg:        #f4f6fa;
  --card-bg:   #ffffff;
  --text:      #1c1c2e;
  --muted:     #5a6070;
  --border:    #dde3f0;
  --alert-red: #c0392b;
  --alert-bg:  #fdf1f0;
  --info-blue: #1a5fa8;
  --info-bg:   #eef4fc;
  --green:     #2e7d52;
  --green-bg:  #eaf4ee;
  --radius:    8px;
  --radius-lg: 14px;
  --shadow:    0 2px 16px rgba(27,45,91,.10);
  --shadow-md: 0 6px 32px rgba(27,45,91,.15);
  --transition: .22s ease;
}

/* ─── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ─── BOUTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; border: none; transition: var(--transition);
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-outline-white:hover { background: #fff; color: var(--navy); }

/* ─── TOP BAR ─────────────────────────────────────── */
.topbar { background: var(--navy-dark); color: rgba(255,255,255,.65); font-size: 12px; padding: 6px 0; }
.topbar .container { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.topbar a { color: rgba(255,255,255,.65); transition: color var(--transition); }
.topbar a:hover { color: #fff; }
.accessibility-btns { display: flex; gap: 6px; align-items: center; }
.accessibility-btns span { cursor: pointer; padding: 2px 7px; border-radius: 4px; transition: background var(--transition); }
.accessibility-btns span:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ─── HEADER ──────────────────────────────────────── */
header, .site-header {
  background: #fff; box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 3px solid var(--gold);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 20px; max-width: 1200px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo-icon { width: 56px; height: 56px; background: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.logo-icon svg { width: 34px; height: 34px; fill: var(--gold); }
.logo-text { line-height: 1.2; }
.logo-text strong { display: block; font-size: 17px; font-weight: 800; color: var(--navy); letter-spacing: .04em; }
.logo-text em { display: block; font-size: 10px; font-style: normal; font-weight: 600; color: var(--gold); letter-spacing: .15em; text-transform: uppercase; margin-top: 2px; }

/* Navigation WordPress */
nav, .main-navigation { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-navigation ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-navigation ul li a,
.nav-link {
  padding: 10px 14px; font-size: 12.5px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--navy);
  border-radius: var(--radius); transition: background var(--transition), color var(--transition);
  display: flex; align-items: center; gap: 5px;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a,
.nav-link:hover, .nav-link.active { background: var(--navy); color: #fff; }

/* Sous-menus */
.main-navigation ul li { position: relative; }
.main-navigation ul li ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; box-shadow: var(--shadow-md); border-radius: var(--radius);
  min-width: 200px; flex-direction: column; gap: 0; z-index: 200; padding: 6px 0;
}
.main-navigation ul li:hover > ul { display: flex; }
.main-navigation ul li ul li a { padding: 10px 18px; font-size: 13px; text-transform: none; letter-spacing: 0; }
.search-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  margin-left: 10px; transition: background var(--transition); flex-shrink: 0;
}
.search-btn:hover { background: var(--gold); }
.search-btn svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }

/* ─── HERO ────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark) 0%, #243872 60%, #1b4f8a 100%);
  min-height: 480px; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(17,30,62,.85) 40%, rgba(17,30,62,.3) 100%) center/cover no-repeat;
  background-size: cover;
}
.hero-content { position: relative; z-index: 2; padding: 70px 20px; max-width: 580px; margin-left: calc((100vw - 1200px) / 2 + 20px); }
.hero-eyebrow { font-family: 'Playfair Display', serif; font-style: italic; font-size: 26px; color: var(--gold); margin-bottom: 4px; }
.hero-title { font-size: clamp(36px, 6vw, 62px); font-weight: 800; color: #fff; line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; }
.hero-subtitle { font-size: 15px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 10px 0 18px; }
.hero-desc { color: rgba(255,255,255,.8); font-size: 15px; margin-bottom: 28px; max-width: 400px; }
.hero-arrows { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 20px; z-index: 3; pointer-events: none; }
.hero-arrow { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; cursor: pointer; pointer-events: all; transition: background var(--transition); font-size: 20px; color: #fff; }
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; transition: background var(--transition), transform var(--transition); }
.hero-dot.active { background: var(--gold); transform: scale(1.3); }

/* ─── ACCÈS RAPIDE ────────────────────────────────── */
.quick-access { background: #fff; padding: 36px 0 42px; }
.quick-header { display: flex; align-items: baseline; gap: 18px; margin-bottom: 28px; }
.quick-header h2 { font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.quick-header h2::before { content: ''; display: inline-block; width: 36px; height: 3px; background: var(--gold); margin-right: 12px; vertical-align: middle; }
.quick-header p { color: var(--muted); font-size: 14px; }
.quick-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.quick-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 10px; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--card-bg); cursor: pointer; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); text-align: center; }
.quick-card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-3px); }
.quick-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.quick-icon svg { width: 32px; height: 32px; stroke: var(--navy); fill: none; stroke-width: 1.7; transition: stroke var(--transition); }
.quick-card:hover .quick-icon svg { stroke: var(--gold); }
.quick-label { font-size: 12px; font-weight: 600; color: var(--navy); line-height: 1.3; }

/* ─── TROIS COLONNES ──────────────────────────────── */
.three-col-section { padding: 50px 0; background: var(--bg); }
.three-col-grid { display: grid; grid-template-columns: 1.1fr 1fr 0.9fr; gap: 28px; }
.col-card { background: var(--card-bg); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.col-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--border); }
.col-header h3 { font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.col-header h3::before { content: ''; display: inline-block; width: 24px; height: 3px; background: var(--gold); margin-right: 10px; vertical-align: middle; }
.col-link { font-size: 12px; font-weight: 600; color: var(--navy); letter-spacing: .04em; }
.col-link:hover { color: var(--gold-dark); }
.col-link::after { content: ' →'; }

/* Actualités */
.news-item { display: flex; gap: 14px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.news-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.news-thumb { width: 90px; height: 72px; border-radius: var(--radius); flex-shrink: 0; object-fit: cover; background: linear-gradient(135deg, #c8d8f0, #8fb4dc); display: flex; align-items: center; justify-content: center; font-size: 24px; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-date { font-size: 11px; font-weight: 600; color: var(--gold-dark); letter-spacing: .06em; text-transform: uppercase; }
.news-title { font-size: 14px; font-weight: 700; color: var(--navy); margin: 4px 0 6px; line-height: 1.35; }
.news-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.news-more { font-size: 12px; font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.news-more:hover { color: var(--gold-dark); }
.news-more::after { content: ' →'; }

/* Agenda */
.agenda-item { display: flex; gap: 16px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.agenda-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.agenda-date-box { width: 54px; flex-shrink: 0; text-align: center; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 8px 4px; }
.agenda-date-box.gold { background: var(--gold); color: var(--navy); }
.agenda-day { font-size: 24px; font-weight: 800; line-height: 1; }
.agenda-month { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.agenda-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; line-height: 1.3; }
.agenda-meta { font-size: 12px; color: var(--muted); }
.btn-agenda { width: 100%; margin-top: 16px; justify-content: center; background: var(--navy); color: #fff; }
.btn-agenda:hover { background: var(--navy-dark); }

/* Alertes */
.alert-box { border-radius: var(--radius); padding: 16px; margin-bottom: 14px; display: flex; gap: 14px; align-items: flex-start; }
.alert-box:last-child { margin-bottom: 0; }
.alert-red { background: var(--alert-bg); border-left: 4px solid var(--alert-red); }
.alert-blue { background: var(--info-bg); border-left: 4px solid var(--info-blue); }
.alert-green { background: var(--green-bg); border-left: 4px solid var(--green); }
.alert-icon { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.alert-tag { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.alert-tag.red { color: var(--alert-red); }
.alert-tag.blue { color: var(--info-blue); }
.alert-tag.green { color: var(--green); }
.alert-text { font-size: 13px; color: var(--text); line-height: 1.4; }
.alert-link { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.alert-link.red { color: var(--alert-red); }
.alert-link.blue { color: var(--info-blue); }
.alert-link.green { color: var(--green); }
.alert-link::after { content: ' →'; }

/* ─── QUOTIDIEN ───────────────────────────────────── */
.daily-section { padding: 50px 0; background: #fff; }
.daily-header { margin-bottom: 30px; }
.section-title { font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); display: flex; align-items: center; gap: 12px; }
.section-title::before { content: ''; display: inline-block; width: 36px; height: 3px; background: var(--gold); flex-shrink: 0; }
.daily-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.daily-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; cursor: pointer; min-height: 240px; display: flex; align-items: flex-end; box-shadow: var(--shadow-md); transition: transform var(--transition); }
.daily-card:hover { transform: translateY(-5px); }
.daily-card-bg { position: absolute; inset: 0; transition: transform .4s ease; }
.daily-card:hover .daily-card-bg { transform: scale(1.05); }
.daily-card-bg.d1 { background: linear-gradient(160deg, #0f2a55 30%, #1a4888 100%); }
.daily-card-bg.d2 { background: linear-gradient(160deg, #1a1a2e 30%, #2d3561 100%); }
.daily-card-bg.d3 { background: linear-gradient(160deg, #0c3b30 30%, #1a6b50 100%); }
.daily-card-bg.d4 { background: linear-gradient(160deg, #1e2744 30%, #3d4a7a 100%); }
.daily-card-bg.has-image { background-size: cover; background-position: center; }
.daily-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 60%); }
.daily-card-content { position: relative; z-index: 2; padding: 22px 20px; width: 100%; }
.daily-card-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 20px; }
.daily-card-title { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 8px; }
.daily-card-desc { font-size: 12.5px; color: rgba(255,255,255,.75); line-height: 1.4; }

/* ─── HERITAGE ────────────────────────────────────── */
.heritage-banner { padding: 70px 0; background: linear-gradient(to right, rgba(17,30,62,.88) 45%, rgba(17,30,62,.5) 100%), #1b2d5b; background-size: cover; }
.heritage-eyebrow { font-family: 'Playfair Display', serif; font-style: italic; font-size: 28px; color: var(--gold); margin-bottom: 4px; }
.heritage-title { font-size: 38px; font-weight: 800; color: #fff; text-transform: uppercase; line-height: 1.05; margin-bottom: 18px; }
.heritage-desc { color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.7; margin-bottom: 28px; }

/* ─── CONTENU WP (pages internes) ────────────────── */
.content-area { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.site-main { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.entry-title { font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 20px; padding-bottom: 14px; border-bottom: 3px solid var(--gold); }
.entry-content p { margin-bottom: 16px; line-height: 1.7; }
.entry-content h2 { font-size: 22px; font-weight: 700; color: var(--navy); margin: 28px 0 12px; }
.entry-content h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 22px 0 10px; }
.entry-content ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.entry-content ul li { margin-bottom: 6px; }
.entry-content a { color: var(--info-blue); text-decoration: underline; }

/* ─── FOOTER ──────────────────────────────────────── */
footer, .site-footer { background: var(--navy-dark); color: rgba(255,255,255,.75); }
.footer-newsletter { background: var(--navy); padding: 36px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-newsletter .container { display: flex; align-items: center; gap: 40px; }
.newsletter-text h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.newsletter-text p { font-size: 13px; opacity: .7; }
.newsletter-form { display: flex; flex: 1; max-width: 440px; }
.newsletter-form input { flex: 1; padding: 12px 18px; border: none; border-radius: var(--radius) 0 0 var(--radius); font-family: 'Montserrat', sans-serif; font-size: 14px; outline: none; }
.newsletter-form button { padding: 12px 22px; background: var(--gold); color: var(--navy-dark); border: none; border-radius: 0 var(--radius) var(--radius) 0; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background var(--transition); }
.newsletter-form button:hover { background: var(--gold-dark); color: #fff; }
.footer-main { padding: 50px 0; }
.footer-main .container { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 36px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-icon { width: 48px; height: 48px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-logo-icon svg { width: 28px; height: 28px; fill: var(--gold); }
.footer-logo-text strong { display: block; color: #fff; font-size: 15px; font-weight: 800; }
.footer-logo-text em { display: block; font-style: normal; font-size: 10px; color: var(--gold); letter-spacing: .15em; text-transform: uppercase; }
.footer-contact p { font-size: 13px; line-height: 1.7; margin-bottom: 4px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; transition: background var(--transition); }
.social-btn:hover { background: var(--gold); }
.footer-col h5 { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; opacity: .7; display: flex; align-items: center; gap: 6px; transition: opacity var(--transition), color var(--transition); }
.footer-col ul li a:hover { opacity: 1; color: var(--gold); }
.footer-col ul li a::before { content: '›'; color: var(--gold); font-weight: 700; }
.hours-row { font-size: 13px; opacity: .7; margin-bottom: 8px; }
.hours-row span { color: #fff; font-weight: 600; }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; opacity: .5; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .three-col-grid { grid-template-columns: 1fr; }
  .daily-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main .container { grid-template-columns: 1fr 1fr; gap: 24px; }
  .main-navigation { display: none; }
  .hero-content { margin-left: 20px; }
}
@media (max-width: 640px) {
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .daily-grid { grid-template-columns: 1fr; }
  .footer-main .container { grid-template-columns: 1fr; }
  .footer-newsletter .container { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; max-width: 100%; }
  .hero-title { font-size: 36px; }
  .hero-content { margin-left: 0; }
}
