/*
Theme Name: Romain Daubié
Theme URI: https://romaindaubie.fr
Author: Équipe Romain Daubié
Description: Thème sur mesure du site de Romain Daubié, député de la 2e circonscription de l’Ain. Fidèle à la maquette Figma « Site internet ». Après activation : Apparence → Installation du site, puis Apparence → Personnaliser → Contenus du site.
Version: 1.2.1
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: romain-daubie
*/

/* ==========================================================================
   1. Variables
   ========================================================================== */
:root {
	--rd-blue: #284e9d;        /* bandeau haut, logo, menu */
	--rd-navy: #384e74;        /* titres et textes */
	--rd-accent: #21518f;      /* titres sur fond bleu, boutons */
	--rd-card-title: #37639b;
	--rd-muted: #819dbb;
	--rd-label: #8aa3c4;
	--rd-ink: #071c41;
	--rd-sky: #d3e2f2;         /* sections bleu clair */
	--rd-red: #d72727;
	--rd-red-dark: #b81e1e;
	--rd-white: #fff;
	--rd-grad: linear-gradient(115deg, #2ba7d4 0%, #0d1a61 100%);

	--rd-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--rd-font-alt: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--rd-container: 1300px;
	--rd-gutter: clamp(20px, 4vw, 64px);
	--rd-radius: 8px;
	--rd-shadow: 0 4px 4px rgba(0, 0, 0, .25);
	--rd-section-y: clamp(56px, 7vw, 96px);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--rd-font);
	font-size: 17px;
	line-height: 1.5;
	color: var(--rd-navy);
	background: var(--rd-white);
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 3px solid var(--rd-red);
	outline-offset: 2px;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1em; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.rd-skip {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--rd-white); color: var(--rd-blue); padding: 12px 18px; font-weight: 700;
}
.rd-skip:focus { left: 12px; top: 12px; }
.rd-icon { width: 24px; height: 24px; flex: none; }

.rd-container { width: 100%; max-width: calc(var(--rd-container) + 2 * var(--rd-gutter)); margin: 0 auto; padding: 0 var(--rd-gutter); }
.rd-container--narrow { max-width: calc(1180px + 2 * var(--rd-gutter)); }
.rd-container--form { max-width: calc(980px + 2 * var(--rd-gutter)); }
.rd-center { text-align: center; }

.rd-section { padding: var(--rd-section-y) 0; }
.rd-section--tight { padding: calc(var(--rd-section-y) * .6) 0; }
.rd-section--flush-top { padding-top: 0; }
.rd-section--blue { background: var(--rd-sky); }
.rd-spacer { height: calc(var(--rd-section-y) * .6); }

/* ==========================================================================
   3. Boutons
   ========================================================================== */
.rd-btn {
	display: inline-flex; align-items: center; justify-content: center;
	gap: .5em; border: 0; cursor: pointer; text-decoration: none;
	font-family: var(--rd-font); font-weight: 800; font-size: 18px; line-height: 1.2;
	color: var(--rd-white); border-radius: var(--rd-radius);
	padding: 10px 28px; box-shadow: var(--rd-shadow);
	transition: background-color .2s, transform .2s;
}
.rd-btn:hover { transform: translateY(-1px); }
.rd-btn--red { background: var(--rd-red); }
.rd-btn--red:hover { background: var(--rd-red-dark); }
.rd-btn--blue { background: var(--rd-accent); padding: 12px 26px; font-size: 19px; }
.rd-btn--blue:hover { background: #173d70; }
.rd-btn--lg { padding: 12px 44px; font-size: 19px; }
.rd-btn--upper { font-family: var(--rd-font-alt); font-weight: 600; font-size: 22px; text-transform: uppercase; padding: 6px 18px; }

/* ==========================================================================
   4. En-tête
   ========================================================================== */
.rd-topbar { background: var(--rd-blue); color: var(--rd-white); }
.rd-topbar__inner {
	max-width: 1500px; margin: 0 auto; padding: 0 var(--rd-gutter);
	min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.rd-topbar__item {
	display: inline-flex; align-items: center; gap: 10px;
	font-weight: 500; font-size: 18px; text-decoration: none; white-space: nowrap;
}
.rd-topbar__item:hover span { text-decoration: underline; }
.rd-topbar .rd-icon { width: 22px; height: 22px; }

.rd-nav { background: var(--rd-white); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(40, 78, 157, .08); }
.rd-nav__inner {
	max-width: 1500px; margin: 0 auto; padding: 0 var(--rd-gutter);
	min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.rd-logo { font-size: 32px; font-weight: 500; color: var(--rd-blue); text-decoration: none; white-space: nowrap; letter-spacing: -.01em; }
.rd-logo strong { font-weight: 800; }
.rd-nav__menu { display: flex; align-items: center; flex: 1; justify-content: space-between; gap: 32px; }
.rd-menu { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: clamp(18px, 2.4vw, 48px); }
.rd-menu a {
	font-size: 14px; font-weight: 500; text-transform: uppercase; color: var(--rd-blue);
	text-decoration: none; letter-spacing: .01em; padding: 8px 0; position: relative; white-space: nowrap;
}
.rd-menu a:hover, .rd-menu .is-active > a { font-weight: 700; }
.rd-nav__cta { min-width: 273px; padding: 7px 28px; white-space: nowrap; }

.rd-burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.rd-burger span:not(.screen-reader-text) { display: block; width: 26px; height: 3px; background: var(--rd-blue); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.rd-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.rd-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rd-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   5. Bandeaux (hero)
   ========================================================================== */
.rd-hero {
	position: relative; overflow: hidden; color: var(--rd-white);
	background: #1d2c4a var(--hero-bg) center / cover no-repeat;
}
.rd-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.rd-hero > * { position: relative; }
.rd-hero__social { position: absolute; left: 0; right: 0; bottom: clamp(18px, 2.6vw, 32px); justify-content: center; }

.rd-hero--page { min-height: clamp(360px, 43vw, 682px); display: flex; align-items: center; justify-content: center; text-align: center; }
.rd-hero--short { min-height: clamp(240px, 24vw, 360px); }
.rd-hero__inner { padding: 60px var(--rd-gutter) 110px; }
.rd-hero__title { font-size: clamp(34px, 4.45vw, 70px); line-height: 1.05; letter-spacing: .1em; text-transform: uppercase; }
.rd-hero__l1 { display: block; font-weight: 400; }
.rd-hero__l2 { display: block; font-weight: 800; }

/* Accueil */
.rd-hero--home { min-height: clamp(460px, 42vw, 680px); display: flex; }
.rd-hero--home::before { background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.2) 55%, rgba(0,0,0,.55) 100%); }
.rd-hero-home__inner {
	width: 100%; max-width: calc(1300px + 2 * var(--rd-gutter)); margin: 0 auto; padding: 0 var(--rd-gutter);
	display: flex; align-items: stretch; justify-content: space-between; gap: 32px;
}
.rd-hero-home__text { align-self: center; padding: 60px 0 90px 7%; max-width: 640px; }
.rd-hero-home__title { font-size: clamp(36px, 3.4vw, 53px); font-weight: 800; line-height: 1.3; margin-bottom: 14px; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.rd-hero-home__sub { font-size: clamp(17px, 1.55vw, 24px); font-weight: 600; line-height: 1.5; margin-bottom: 30px; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.rd-hero-home__portrait {
	align-self: flex-end; width: clamp(260px, 29vw, 459px); margin-right: 3%;
	filter: drop-shadow(0 20px 18px rgba(0,0,0,.35));
}

/* Réseaux sociaux (les SVG ont une marge interne : l'icône occupe la moitié de la case) */
.rd-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rd-social a {
	display: grid; place-items: center; width: 56px; height: 56px; color: var(--rd-white);
	border-radius: 50%; background: rgba(255, 255, 255, .12); transition: background-color .2s, transform .2s;
}
.rd-social a:hover { background: rgba(255, 255, 255, .28); transform: translateY(-2px); }
.rd-social .rd-icon { width: 60px; height: 60px; }
.rd-hero .rd-social a { backdrop-filter: blur(2px); }
.rd-footer__social a { width: 48px; height: 48px; }
.rd-footer__social .rd-icon { width: 52px; height: 52px; }

/* ==========================================================================
   6. Titres et textes
   ========================================================================== */
.rd-h2 {
	font-size: clamp(30px, 3.05vw, 48px); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
	text-align: center; color: var(--rd-navy); margin-bottom: clamp(24px, 2.5vw, 34px);
}
.rd-h2--accent { color: var(--rd-accent); }
.rd-h3 {
	font-size: clamp(26px, 2.55vw, 40px); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
	color: var(--rd-navy); margin-bottom: 24px;
}
.rd-h3--accent { color: var(--rd-accent); }
.rd-h3--center { text-align: center; }
.rd-h3--nols { letter-spacing: 0; }
.rd-label {
	font-size: clamp(18px, 1.6vw, 25px); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
	color: var(--rd-label); text-align: center; margin-bottom: clamp(32px, 4vw, 56px);
}
.rd-kicker { font-size: clamp(15px, 1.27vw, 20px); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rd-navy); margin-bottom: 6px; }
.rd-kicker--center { text-align: center; }
.rd-title-2l {
	text-align: center; text-transform: uppercase; letter-spacing: .1em;
	font-size: clamp(24px, 2.2vw, 35px); line-height: 1.2; color: var(--rd-navy); margin-bottom: 30px;
}
.rd-title-2l strong { display: block; font-weight: 700; }
.rd-title-2l span { display: block; font-weight: 500; }
.rd-text { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.5; color: var(--rd-navy); }
.rd-text p:last-child { margin-bottom: 0; }
.rd-text p { margin-bottom: 1.4em; }
.rd-text--center { text-align: center; }
.rd-text--justify { text-align: justify; hyphens: auto; }
.rd-text--dark { color: var(--rd-ink); }
.rd-intro { padding-top: clamp(32px, 3.5vw, 52px); padding-bottom: calc(var(--rd-section-y) * .8); }
.rd-intro .rd-label { margin-bottom: clamp(20px, 2.5vw, 36px); }
/* Première section sous un bandeau de page (ex. « Me connaître ») : même écart resserré */
.rd-hero--page + .rd-section { padding-top: clamp(32px, 3.5vw, 52px); }
.rd-hero--page + .rd-section > .rd-container > .rd-label { margin-bottom: clamp(20px, 2.5vw, 36px); }
.rd-empty { text-align: center; color: var(--rd-muted); }

/* Appel à l'action « Découvrir » */
.rd-cta { text-align: center; margin-top: clamp(32px, 4vw, 48px); }
.rd-cta__text { font-size: clamp(20px, 1.85vw, 29px); font-weight: 600; letter-spacing: .1em; color: var(--rd-accent); margin-bottom: 18px; }
.rd-cta--spaced { margin-bottom: clamp(48px, 6vw, 80px); }

/* Bouton Instagram */
.rd-btn--ig { margin-top: 8px; }
.rd-btn--ig .rd-icon { width: 40px; height: 40px; margin: -8px -6px -8px -14px; }
.rd-ig-embed, .rd-embed { margin-bottom: 32px; }
.rd-embed { max-width: 1300px; margin-left: auto; margin-right: auto; min-height: 120px; }

/* ==========================================================================
   7. Mises en page texte + image
   ========================================================================== */
.rd-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.rd-split--reverse { grid-template-columns: minmax(0, .65fr) minmax(0, 1.5fr); gap: clamp(24px, 2vw, 28px); align-items: start; }
.rd-split__media img { width: 100%; object-fit: cover; }
.rd-split__media--landscape img { aspect-ratio: 4 / 3; }

.rd-engagement .rd-split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; }
.rd-engagement .rd-kicker, .rd-engagement .rd-h2 { color: var(--rd-card-title); text-align: center; }
.rd-engagement .rd-text { color: #546683; }
.rd-signature { display: flex; align-items: flex-end; justify-content: center; gap: 12px; margin-top: 4px; }
.rd-signature span { font-size: 15px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #546683; margin-bottom: 30px; }
.rd-signature img { width: clamp(180px, 20vw, 250px); }

/* ==========================================================================
   8. Cartes et carrousels
   ========================================================================== */
.rd-card { font-family: var(--rd-font-alt); }
.rd-card__link { display: block; text-decoration: none; }
.rd-card__img { border-radius: 8px; overflow: hidden; background: var(--rd-sky); aspect-ratio: 1 / 1; margin-bottom: 22px; }
.rd-card--wide .rd-card__img { aspect-ratio: 624 / 341; }
.rd-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rd-card__link:hover .rd-card__img img { transform: scale(1.04); }
.rd-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--rd-muted); }
.rd-card__placeholder .rd-icon { width: 30%; height: 30%; }
.rd-card__title { font-size: clamp(19px, 1.5vw, 24px); font-weight: 500; line-height: 1.5; color: var(--rd-card-title); margin-bottom: 4px; }
.rd-card__link:hover .rd-card__title { text-decoration: underline; }
.rd-card__sub { font-size: clamp(16px, 1.25vw, 20px); line-height: 1.5; color: var(--rd-muted); margin: 0; }

.rd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 32px; }

.rd-carousel { position: relative; padding: 0 clamp(0px, 4.5vw, 64px); margin-bottom: 32px; }
.rd-carousel__track {
	display: grid; grid-auto-flow: column; gap: 32px;
	grid-auto-columns: calc((100% - 64px) / 3);
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; padding-bottom: 4px;
}
.rd-carousel--wide .rd-carousel__track { grid-auto-columns: calc((100% - 32px) / 2); }
.rd-carousel__track::-webkit-scrollbar { display: none; }
.rd-carousel__track > * { scroll-snap-align: start; }
.rd-carousel__btn {
	position: absolute; top: calc(var(--rd-img-h, 300px) / 2); transform: translateY(-50%);
	width: 48px; height: 64px; display: grid; place-items: center;
	background: none; border: 0; cursor: pointer; color: var(--rd-navy); padding: 0;
}
.rd-carousel__btn .rd-icon { width: 40px; height: 40px; }
.rd-carousel__btn--prev { left: 0; }
.rd-carousel__btn--prev .rd-icon { transform: scaleX(-1); }
.rd-carousel__btn--next { right: 0; }
.rd-carousel__btn[disabled] { opacity: .25; cursor: default; }
.rd-carousel.is-static .rd-carousel__btn { display: none; }

/* ==========================================================================
   9. Vidéo
   ========================================================================== */
.rd-video { position: relative; max-width: 900px; margin: 0 auto; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.rd-video img, .rd-video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.rd-video__play { position: absolute; inset: 0; margin: auto; width: 96px; height: 68px; background: none; border: 0; cursor: pointer; padding: 0; transition: transform .2s; }
.rd-video__play:hover { transform: scale(1.08); }
.rd-video__play svg { width: 100%; height: 100%; }
.rd-video__caption { max-width: 900px; margin: 18px auto 0; text-align: center; font-size: clamp(16px, 1.3vw, 20px); font-weight: 600; color: var(--rd-accent); }

/* ==========================================================================
   10. Valeurs
   ========================================================================== */
.rd-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.rd-value {
	background: var(--rd-white); border-radius: 10px; box-shadow: var(--rd-shadow);
	padding: 56px 22px 48px; text-align: center; color: var(--rd-navy);
}
.rd-value__icon { width: 100px; height: 100px; margin: 0 auto 34px; color: var(--rd-navy); }
.rd-value__title {
	font-size: clamp(16px, 1.2vw, 19px); font-weight: 700; text-transform: uppercase; line-height: 1.5;
	padding-top: 18px; position: relative; margin-bottom: 16px;
}
.rd-value__title::before { content: ""; position: absolute; top: 0; left: 50%; width: 66%; height: 2px; background: #546683; transform: translateX(-50%); }
.rd-value__text { font-size: clamp(16px, 1.2vw, 19px); font-weight: 500; margin: 0; }
/* Survol à la souris (ordinateur uniquement) : la carte grossit légèrement */
@media (hover: hover) and (pointer: fine) {
	.rd-value { transition: transform .25s ease, box-shadow .25s ease; }
	.rd-value:hover { transform: scale(1.05); box-shadow: 0 12px 24px rgba(7, 28, 65, .18); position: relative; z-index: 1; }
}

/* ==========================================================================
   11. Formulaires
   ========================================================================== */
.rd-newsletter { text-align: center; }
.rd-nl__title { font-size: clamp(26px, 3.05vw, 48px); font-weight: 600; text-transform: uppercase; color: var(--rd-accent); margin-bottom: 6px; }
.rd-nl__sub { font-size: clamp(18px, 1.9vw, 30px); text-transform: uppercase; color: var(--rd-accent); margin-bottom: clamp(32px, 4vw, 56px); }

.rd-form { display: grid; gap: 30px; text-align: left; }
.rd-field { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 0 clamp(20px, 5vw, 82px); }
.rd-field label { text-align: right; font-size: 20px; font-weight: 500; color: var(--rd-accent); }
.rd-field input, .rd-field textarea {
	width: 100%; border: 1px solid transparent; border-radius: 6px; background: var(--rd-white);
	font: 500 18px/1.4 var(--rd-font); color: var(--rd-ink); padding: 16px 18px; min-height: 60px;
}
.rd-field textarea { resize: vertical; min-height: 160px; }
.rd-field--area { align-items: start; }
.rd-field--area label { padding-top: 18px; }
.rd-field input:focus, .rd-field textarea:focus { border-color: var(--rd-accent); outline: none; box-shadow: 0 0 0 3px rgba(33, 81, 143, .2); }
.rd-form--nl .rd-field { grid-template-columns: 200px minmax(0, 1fr); }
.rd-consent { display: flex; gap: 12px; align-items: flex-start; margin-left: calc(240px + clamp(20px, 5vw, 82px)); font-size: 14px; color: var(--rd-ink); }
.rd-form--nl .rd-consent { margin-left: calc(200px + clamp(20px, 5vw, 82px)); }
.rd-consent input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--rd-accent); }
.rd-form__actions { text-align: right; }
.rd-form__actions--center { text-align: center; }
.rd-form .rd-btn--blue { font-family: var(--rd-font-alt); font-weight: 600; font-size: 24px; text-transform: uppercase; padding: 8px 32px; }
.rd-form .rd-btn--lg { min-width: 168px; }
.rd-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rd-notice { border-radius: 8px; padding: 16px 20px; margin-bottom: 28px; font-weight: 500; text-align: center; }
.rd-notice--success { background: #e5f4ea; color: #145c2e; border: 1px solid #9fd3b1; }
.rd-notice--error { background: #fde8e8; color: #8c1616; border: 1px solid #f0a8a8; }

.rd-coords { text-align: center; }
.rd-coords p { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; }
.rd-coords a { text-decoration: none; }
.rd-coords a:hover { text-decoration: underline; }
.rd-coords .rd-h3 { font-weight: 700; }

/* ==========================================================================
   12. Pagination, article, pages simples, 404
   ========================================================================== */
.rd-pagination { text-align: center; margin-top: 48px; font-size: 16px; font-weight: 500; letter-spacing: .1em; color: #546683; }
.rd-pagination a { text-decoration: none; padding: 4px; }
.rd-pagination a:hover { text-decoration: underline; }
.rd-pagination .current { font-weight: 800; padding: 4px; }

.rd-single__head .rd-label { margin-bottom: 16px; font-size: 16px; }
.rd-single__lead { text-align: center; font-family: var(--rd-font-alt); font-size: 20px; color: var(--rd-muted); }
.rd-single__img img { width: 100%; border-radius: 12px; max-height: 720px; object-fit: cover; }
.rd-single__nav { display: flex; justify-content: space-between; gap: 24px; font-weight: 500; margin-top: 8px; }
.rd-single__nav a { color: var(--rd-accent); text-decoration: none; }
.rd-single__nav a:hover { text-decoration: underline; }
.rd-single__back { padding: 40px 0 var(--rd-section-y); }

.rd-prose { font-size: 18px; line-height: 1.7; }
.rd-prose h2 { font-size: 26px; color: var(--rd-accent); margin: 1.6em 0 .6em; }
.rd-prose h3 { font-size: 21px; margin: 1.4em 0 .5em; }
.rd-prose a { color: var(--rd-accent); }
.rd-prose img { border-radius: 8px; }
.rd-prose .wp-block-image, .rd-prose figure { margin: 2em 0; }
.rd-prose .alignwide { margin-left: -8vw; margin-right: -8vw; max-width: none; }

.rd-404 { text-align: center; padding: clamp(56px, 8vw, 120px) 0; }
.rd-404__img { width: 252px; margin: 0 auto 28px; image-rendering: pixelated; }
.rd-404__title { font-size: clamp(28px, 2.2vw, 35px); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.rd-404__text { font-size: clamp(18px, 1.6vw, 25px); font-weight: 500; letter-spacing: .1em; margin-bottom: 32px; }

/* ==========================================================================
   13. Pied de page
   ========================================================================== */
.rd-footer { background: var(--rd-grad); color: var(--rd-white); }
.rd-footer__inner { padding: 30px var(--rd-gutter) 26px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.rd-footer__logo img { width: 162px; }
.rd-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.rd-legal a { font-size: 12px; font-weight: 500; text-decoration: none; }
.rd-legal a:hover { text-decoration: underline; }

/* Easter egg : le député et son chat, en bas à droite (ordinateurs uniquement) */
.rd-footer { position: relative; }
.rd-footer__egg {
	position: absolute; right: clamp(24px, 4.5vw, 72px); bottom: 16px;
	display: block; width: 136px; line-height: 0;
	transition: transform .2s ease;
}
.rd-footer__egg img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.rd-footer__egg:hover { transform: translateY(-4px); }
.rd-footer__egg:focus-visible { outline: 2px solid var(--rd-white); outline-offset: 4px; }
@media (max-width: 1280px), (hover: none), (pointer: coarse) {
	.rd-footer__egg { display: none; }
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */
@media (max-width: 1440px) {
	.rd-nav__cta { min-width: 0; }
	.rd-logo { font-size: 28px; }
}

@media (max-width: 1240px) {
	.rd-topbar__item { font-size: 15px; }
}

/* Menu « burger » : tablettes et petits écrans */
@media (max-width: 1280px) {
	.rd-burger { display: block; }
	.rd-nav__menu {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--rd-white); padding: 8px var(--rd-gutter) 24px;
		box-shadow: 0 12px 24px rgba(7, 28, 65, .15);
		display: none;
	}
	.rd-nav__menu.is-open { display: flex; }
	.rd-menu { flex-direction: column; gap: 0; margin: 0; }
	.rd-menu a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--rd-sky); }
	.rd-nav__cta { margin-top: 18px; }
	.rd-topbar__item--addr { display: none; }
	.rd-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.rd-split, .rd-split--reverse, .rd-engagement .rd-split { grid-template-columns: 1fr; }
	.rd-split__media { max-width: 520px; margin: 0 auto; width: 100%; }
	.rd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
	.rd-carousel__track { grid-auto-columns: calc((100% - 20px) / 2); gap: 20px; }
	.rd-carousel--wide .rd-carousel__track { grid-auto-columns: 85%; }
	.rd-carousel { padding: 0; }
	.rd-carousel__btn { display: none; }
	.rd-field, .rd-form--nl .rd-field { grid-template-columns: 1fr; gap: 8px; }
	.rd-field label { text-align: left; font-size: 17px; }
	.rd-field--area label { padding-top: 0; }
	.rd-consent, .rd-form--nl .rd-consent { margin-left: 0; }
	.rd-form__actions { text-align: center; }

	/* Tablette : texte et portrait côte à côte, réseaux sociaux sous le bouton */
	.rd-hero--home { min-height: 0; }
	.rd-hero-home__inner { gap: 16px; }
	.rd-hero-home__text { flex: 1; padding: 48px 0; max-width: none; }
	.rd-hero-home__sub { margin-bottom: 24px; }
	.rd-hero-home__portrait { width: 40%; margin-right: 0; }
	.rd-hero--home .rd-hero__social { position: static; margin-top: 24px; justify-content: flex-start; }
}

@media (max-width: 640px) {
	/* Mobile : tout centré, portrait posé en bas du bandeau (plus de vide sous le buste) */
	.rd-hero-home__inner { flex-direction: column; align-items: center; text-align: center; gap: 0; }
	.rd-hero-home__text { padding: 40px 0 28px; }
	.rd-hero-home__sub { text-wrap: balance; }
	.rd-hero-home__portrait { margin: 0 auto; width: 66%; max-width: 300px; }
	.rd-hero--home .rd-hero__social { justify-content: center; margin-top: 22px; }
	.rd-hero__inner { padding: 48px var(--rd-gutter) 100px; }
	.rd-social { gap: 8px; }
	.rd-social a { width: 52px; height: 52px; }
	.rd-social .rd-icon { width: 56px; height: 56px; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.rd-topbar__inner { justify-content: center; gap: 22px; }
	.rd-topbar__item span { display: none; }
	.rd-topbar__item { padding: 4px; }
	.rd-logo { font-size: 24px; }
	.rd-grid { grid-template-columns: 1fr; }
	.rd-carousel__track, .rd-carousel--wide .rd-carousel__track { grid-auto-columns: 82%; }
	.rd-values { grid-template-columns: 1fr; }
	.rd-text--justify { text-align: left; }
	.rd-hero__title { letter-spacing: .06em; }
	.rd-h2, .rd-h3, .rd-label, .rd-title-2l, .rd-cta__text { letter-spacing: .05em; }
	.rd-single__nav { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Ajustements par page */
[class*="page-templates-me-connaitre"] .rd-hero--page { background-position: left center; }
#formulaire .rd-h3 { margin-bottom: clamp(32px, 4vw, 56px); }
@media (max-width: 640px) {
	.rd-hero-home__sub { font-size: clamp(13px, 3.7vw, 15px); }
	.rd-hero-home__title { font-size: 32px; }
	/* Mots longs (« CIRCONSCRIPTION ») : la taille suit la largeur de l'écran */
	.rd-hero__title { font-size: clamp(24px, 7.6vw, 34px); }
}
