/* ==========================================================================
   The Red Socks — feuille de style
   Charte : blanc, noir chaud, lin. Un seul trait rouge (1 % max).
   Titres et paragraphes : Cormorant Garamond. Étiquettes, boutons : Jost.
   ========================================================================== */

:root {
	--white: #ffffff;
	--ink: #17140f;          /* noir chaud : titres, boutons, pied de page */
	--ink-hover: #3a332b;    /* survol des boutons */
	--brown: #2e2822;        /* brun encre : paragraphes */
	--taupe: #615a50;        /* légendes, durées */
	--linen: #cdbfa6;        /* filets secondaires */
	--red: #a8001c;          /* rouge passion, sur blanc */
	--red-on-dark: #c8102e;  /* rouge passion, sur noir */

	--serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--max: 1200px;
	--narrow: 760px;
	--gutter: 24px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--white);
	color: var(--brown);
	font-family: var(--serif);
	font-size: 21px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

p {
	margin: 0 0 1.5em;
}

.container {
	width: min(100% - (var(--gutter) * 2), var(--max));
	margin-inline: auto;
}

.narrow {
	width: min(100% - (var(--gutter) * 2), var(--narrow));
	margin-inline: auto;
}

.center {
	text-align: center;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--ink);
	color: var(--white);
	padding: 12px 20px;
	font-family: var(--sans);
	font-size: 13px;
}

.skip-link:focus {
	left: 0;
}

/* ---------- Capitales espacées (Jost) ---------- */

.caps {
	font-family: var(--sans);
	font-weight: 400;
	font-size: 12px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	line-height: 2.2;
	color: var(--ink);
	margin: 0;
}

/* ---------- Logo ---------- */

.logo {
	display: inline-block;
	text-align: center;
	text-decoration: none;
	color: var(--ink);
}

.logo__name {
	display: block;
	font-family: var(--serif);
	font-weight: 600;
	font-size: clamp(26px, 5vw, 34px);
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
}

/* Le trait rouge sous RED, et nulle part ailleurs dans le logo. */
.logo__red {
	text-decoration: underline;
	text-decoration-color: var(--red);
	text-decoration-thickness: 1px;
	text-underline-offset: 7px;
}

.logo__sub {
	display: block;
	margin-top: 12px;
	font-family: var(--sans);
	font-weight: 400;
	font-size: 10px;
	letter-spacing: 0.34em;
	text-transform: uppercase;
}

/* ---------- En-tête ---------- */

.site-header {
	padding: 40px 0 0;
	text-align: center;
}

.rule {
	border: 0;
	border-top: 1px solid var(--ink);
	margin: 34px 0 40px;
}

/* ---------- Note Google, en haut de l'accueil ---------- */

.google-note {
	margin: -16px 0 32px;
	padding: 0 var(--gutter);
	text-align: center;
}

.google-note a {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px 14px;
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
}

.google-note__stars {
	font-size: 15px;
	letter-spacing: 0.15em;
	color: #fbbc04; /* jaune des étoiles Google */
}

.google-note a:hover span:last-child,
.google-note a:focus-visible span:last-child {
	text-decoration: underline;
	text-decoration-color: var(--linen);
	text-underline-offset: 5px;
}

.google-widget {
	margin-bottom: 32px;
}

/* H1 de l'accueil : même apparence que les capitales voisines. */
h1.caps {
	margin: 0;
}

/* ---------- Boutons ---------- */

.btn {
	display: inline-block;
	padding: 20px 40px;
	background: var(--ink);
	color: var(--white);
	border: 0;
	border-radius: 0;
	font-family: var(--sans);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
	background: var(--ink-hover);
}

.btn:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
}

/* ---------- Filets ---------- */

.rule-red {
	width: 96px;
	height: 1px;
	margin: 36px auto;
	background: var(--red);
}

/* Étiquette de section : un cadre fin posé sur un filet noir pleine largeur.
   C'est un titre, jamais un bouton. */
.label {
	border-top: 1px solid var(--ink);
	text-align: center;
}

.label span,
.label h1,
.label h2 {
	display: inline-block;
	margin: 0;
	padding: 20px 48px;
	border: 1px solid var(--ink);
	border-top: 0;
	font-family: var(--sans);
	font-weight: 400;
	font-size: 12px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--ink);
	line-height: 1.4;
}

/* Contenu placé sous une étiquette de section. */
.section__body,
.narrow > .label + * {
	margin-top: 64px;
}

.narrow > .label {
	margin-bottom: 0;
}

/* ---------- Sections ---------- */

.section {
	padding: 100px 0;
}

.section--teasers {
	padding-top: 0;
}

.section--page {
	padding-top: 20px;
}

.h-section {
	margin: 0 0 36px;
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(30px, 5vw, 46px);
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--ink);
}

/* ---------- Hero ---------- */

/* Photo ou vidéo du hero (même cadre pour les deux). */
.hero__img {
	display: block;
	width: 100%;
	aspect-ratio: 1200 / 760;
	object-fit: cover;
	background: var(--ink);
}

.hero__img--empty,
.duo__empty,
.teaser--empty {
	background: linear-gradient(135deg, #d9cfbb, #9d9281);
}

.intro {
	padding: 90px 0 120px;
	text-align: center;
}

.intro__lead {
	max-width: 780px;
	margin: 0 auto 48px;
	font-style: italic;
	font-weight: 300;
	font-size: clamp(26px, 3.6vw, 38px);
	line-height: 1.35;
	color: var(--ink);
}

/* ---------- Teasers ---------- */

.teasers {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
	margin-bottom: 56px;
}

.teaser {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 4 / 5;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	color: var(--white);
	text-align: center;
	font: inherit;
	appearance: none;
	-webkit-appearance: none;
}

.teaser--wide {
	grid-column: 1 / -1;
	aspect-ratio: 15 / 8;
}

/* Deux films exactement : au carré sur téléphone pour garder les mariés entiers. */
.teaser:first-child:nth-last-child(2),
.teaser:first-child:nth-last-child(2) ~ .teaser {
	aspect-ratio: 1 / 1;
}

/* Sur ordinateur : un film par ligne, au format d'origine des images (2048 × 858), sans recadrage. */
@media (min-width: 761px) {
	.teaser--wide,
	.teaser:first-child:nth-last-child(2),
	.teaser:first-child:nth-last-child(2) ~ .teaser {
		grid-column: 1 / -1;
		aspect-ratio: 2048 / 858;
	}
}

.teaser__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Voile noir chaud à 30 % sur la photo (charte). */
.teaser::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(23, 20, 15, 0.3);
}

button.teaser {
	cursor: pointer;
	transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.5s ease;
}

/* Au survol (souris ou clavier), le cadre s'agrandit doucement : la vignette est cliquable.
   (hover: hover) évite que l'effet reste « collé » après un toucher sur téléphone. */
@media (hover: hover) {
	button.teaser:hover {
		z-index: 3;
		transform: scale(1.035);
		box-shadow: 0 18px 45px rgba(23, 20, 15, 0.22);
	}
}

button.teaser:focus-visible {
	z-index: 3;
	transform: scale(1.035);
	box-shadow: 0 18px 45px rgba(23, 20, 15, 0.22);
}

@media (prefers-reduced-motion: reduce) {
	button.teaser {
		transition: none;
	}

	button.teaser:hover,
	button.teaser:focus-visible {
		transform: none;
	}
}

button.teaser:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 4px;
}

.teaser__text {
	position: relative;
	z-index: 2;
	display: block;
	padding: 0 24px;
	text-shadow: 0 1px 14px rgba(23, 20, 15, 0.6);
}

.teaser__title {
	display: block;
	margin-bottom: 4px;
	font-style: italic;
	font-weight: 300;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.05;
}

.teaser__meta {
	display: block;
	font-family: var(--sans);
	font-weight: 400;
	font-size: 11px;
	letter-spacing: 0.25em;
	line-height: 1.5;
	text-transform: uppercase;
}

/* ---------- La maison ---------- */

.duo {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin-top: 8px;
}

/* Une seule photo : format des vidéos, en petit, centrée sous la signature. */
.duo > :only-child {
	grid-column: 1 / -1;
	justify-self: center;
	max-width: 560px;
	aspect-ratio: 2048 / 858;
	object-position: 50% 75%; /* cadrage sur la chaussette */
}

/* Petit téléphone : carré réduit, sinon la bande serait trop fine. */
@media (max-width: 480px) {
	.duo > :only-child {
		max-width: 240px;
		aspect-ratio: 1 / 1;
	}
}

.about__cta {
	margin: 56px 0 0;
	text-align: center;
}

.duo img,
.duo__empty {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.manifesto {
	padding: 72px 0 80px;
	text-align: center;
}

.manifesto .caps {
	line-height: 2.6;
	font-size: 11px;
}

.about {
	text-align: center;
}

.about p {
	margin-bottom: 1.6em;
}

.about__signature {
	font-style: italic;
	font-weight: 400;
	font-size: 21px;
	color: var(--taupe);
}

.about__name {
	margin-bottom: 40px;
	font-size: 32px;
	color: var(--ink);
}

.dot {
	color: var(--red);
}

/* ---------- Les films (formules) ---------- */

/* Le filet du haut est celui de l'étiquette « Les films » : pas de second trait. */
.offers {
	border-bottom: 1px solid var(--ink);
}

.offer {
	padding: 34px 0 30px;
	text-align: center;
}

.offer + .offer {
	border-top: 1px solid var(--linen);
}

.offer h3 {
	margin: 0 0 4px;
	font-family: var(--serif);
	font-weight: 400;
	font-size: 30px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink);
}

.offer .offer__meta {
	margin-bottom: 8px;
	font-size: 10px;
	line-height: 1.8;
	color: var(--taupe);
}

.offer p:last-child {
	margin: 0;
	font-size: 20px;
}

.price {
	margin: 48px 0 40px;
	color: var(--taupe);
}

.offers + .center {
	margin-top: 56px;
}

/* ---------- Avis ---------- */

.testimonials {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	max-width: 1040px;
	margin-inline: auto;
}

.testimonial {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0 48px;
	text-align: center;
}

.testimonial:only-child {
	grid-column: 1 / -1;
}

/* Filet lin entre les deux avis. */
.testimonial + .testimonial {
	border-left: 1px solid var(--linen);
}

.testimonial blockquote {
	margin: 0;
}

.testimonial p {
	margin: 0 0 0.9em;
	font-style: italic;
	font-weight: 300;
	font-size: 23px;
	line-height: 1.45;
	color: var(--ink);
}

.testimonial figcaption {
	margin-top: auto;
	padding-top: 24px;
	color: var(--taupe);
}

/* Un avis déplié ne doit pas étirer son voisin. */
.testimonials:has(details[open]) {
	align-items: start;
}

.testimonial__stars {
	margin-bottom: 18px;
	font-size: 18px;
	letter-spacing: 0.3em;
	line-height: 1;
	color: var(--ink);
}

/* « Voir plus » : élément <details> natif, sans script. */
.testimonial__more {
	display: flex;
	flex-direction: column;
}

.testimonial__more summary {
	order: 2;
	align-self: center;
	padding: 8px 0 4px;
	list-style: none;
	border-bottom: 1px solid var(--linen);
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--ink);
	cursor: pointer;
}

.testimonial__more summary::-webkit-details-marker {
	display: none;
}

.testimonial__more summary:hover {
	border-bottom-color: var(--ink);
}

.testimonial__more summary:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 4px;
}

.testimonial__close,
.testimonial__more[open] .testimonial__open,
.testimonial blockquote:has(details[open]) .testimonial__cut {
	display: none;
}

.testimonial__more[open] .testimonial__close {
	display: inline;
}

/* ---------- Contact ---------- */

.contact__intro {
	margin: 56px 0 8px;
	font-size: 22px;
}

.form {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px 32px;
	margin-top: 40px;
}

.field {
	display: flex;
	flex-direction: column;
}

.field--full {
	grid-column: 1 / -1;
}

.field label,
.field--hp label {
	font-family: var(--sans);
	font-weight: 400;
	font-size: 10px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--ink);
}

.field label {
	margin-bottom: 10px;
}

/* Champs encadrés : filet fin taupe, angles droits comme les boutons. */
.field input,
.field textarea {
	width: 100%;
	padding: 15px 18px;
	border: 1px solid var(--taupe);
	border-radius: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--serif);
	font-size: 21px;
	line-height: 1.4;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
	resize: vertical;
	min-height: 150px;
}

.field input:hover,
.field textarea:hover {
	border-color: var(--ink);
}

.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--ink);
}

/* Pot de miel anti-spam : invisible pour les humains. */
.field--hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form .center {
	margin: 16px 0 0;
}

.notice {
	margin: 32px 0 0;
	padding: 16px 20px;
	border: 1px solid var(--linen);
	text-align: center;
	font-size: 19px;
}

.notice--ok {
	color: var(--ink);
}

.notice--error {
	border-color: var(--red);
	color: var(--red);
}

/* ---------- Pages films / légales ---------- */

.page-intro {
	margin: 56px 0 56px;
	font-style: italic;
	font-size: 24px;
	color: var(--taupe);
}

.section--page .teasers + .center {
	margin-top: 0;
}

.legal {
	text-align: left;
}

.legal h2 {
	margin: 2.2em 0 0.6em;
	font-family: var(--sans);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--ink);
}

.legal a {
	text-decoration-color: var(--linen);
	text-underline-offset: 4px;
}

.legal ul {
	margin: 0 0 1.5em;
	padding-left: 1.2em;
}

.legal__updated {
	margin: 56px 0 24px;
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--taupe);
}

.legal .btn {
	margin-top: 40px;
}

/* ---------- Pied de page ---------- */

.site-footer {
	margin-top: 40px;
	padding: 64px 0 56px;
	background: var(--ink);
	color: var(--linen);
	text-align: center;
}

.site-footer .logo {
	color: var(--white);
}

.site-footer .logo__name {
	font-size: 26px;
}

.site-footer .logo__red {
	text-decoration-color: var(--red-on-dark);
}

.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 30px;
	margin-top: 28px;
}

.site-footer__links a {
	font-family: var(--sans);
	font-weight: 400;
	font-size: 12px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--linen);
}

.site-footer__contact {
	margin: 28px 0 0;
	font-family: var(--sans);
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--linen);
	opacity: 0.8;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--white);
}

/* ---------- Lecteur vidéo (fenêtre) ---------- */

.lightbox {
	width: min(94vw, 1100px);
	max-width: none;
	padding: 0;
	border: 0;
	background: #000;
	overflow: visible;
}

.lightbox::backdrop {
	background: rgba(23, 20, 15, 0.92);
}

.lightbox__frame {
	aspect-ratio: 16 / 9;
	background: #000;
}

.lightbox__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.lightbox__close {
	position: absolute;
	right: 0;
	bottom: 100%;
	padding: 12px 0;
	border: 0;
	background: none;
	color: var(--white);
	font-family: var(--sans);
	font-size: 12px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	cursor: pointer;
}

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
	:root {
		--gutter: 20px;
	}

	body {
		font-size: 19px;
	}

	.section {
		padding: 72px 0;
	}

	.intro {
		padding: 64px 0 80px;
	}

	.teasers {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	/* Carré sur téléphone : les images de film sont très larges, un portrait couperait les mariés. */
	.teaser--wide {
		aspect-ratio: 1 / 1;
	}

	/* Prénoms et lieu tiennent sur une ligne sur téléphone. */
	.teaser__text {
		padding: 0 12px;
	}

	.teaser__meta {
		font-size: 10px;
		letter-spacing: 0.12em;
	}

	/* Hero en portrait sur téléphone : la photo ou la vidéo est recadrée au centre. */
	.hero__img {
		aspect-ratio: 4 / 5;
		object-position: center;
	}

	.duo {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.form {
		grid-template-columns: 1fr;
	}

	.testimonials {
		grid-template-columns: 1fr;
	}

	.testimonial {
		padding: 0;
	}

	.testimonial + .testimonial {
		margin-top: 48px;
		padding-top: 48px;
		border-left: 0;
		border-top: 1px solid var(--linen);
	}

	.testimonial p {
		font-size: 21px;
	}

	.label span {
		padding: 16px 28px;
	}

	.caps {
		letter-spacing: 0.22em;
	}

	.btn {
		padding: 18px 28px;
	}
}
