/*
Theme Name: Oceana Edition
Theme URI: https://oceana-edition.com
Author: Océana Édition
Description: Thème bloc léger d'Océana Édition (agendas, carnets de notes, calendriers et cadeaux d'entreprise à La Réunion). Thème enfant de Twenty Twenty-Five.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oceana-edition
*/

/* Les réglages principaux (couleurs, polices, tailles) sont dans theme.json. */

/* Pas d'espace entre l'en-tête, le contenu et le pied de page. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* Les sections pleine largeur des pages s'enchaînent sans espace. */
.oceana-contenu > .alignfull,
.oceana-contenu > .alignfull + * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* Boutons : hauteur minimale 48 px. */
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	box-sizing: border-box;
	text-decoration: none;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border-width: 2px;
	border-style: solid;
	padding-top: 0;
	padding-bottom: 0;
}

/* Titres équilibrés. */
h1, h2, h3 {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

/* Menu principal. */
.oceana-menu .wp-block-navigation-item__content {
	padding: 10px 0;
}

.oceana-menu .wp-block-navigation-item__content:hover,
.oceana-menu .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--cuivre);
}

/* Menu mobile ouvert : fond clair et grands liens. */
.oceana-menu .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px;
	font-size: 22px;
}

/* Liens du pied de page. */
.oceana-pied a {
	color: var(--wp--preset--color--sable);
	text-decoration: none;
}

.oceana-pied a:hover {
	text-decoration: underline;
}

.oceana-pied .oceana-pied-legal a {
	text-decoration: underline;
}

/* Bandeau d'annonce. */
.oceana-bandeau a {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Fil d'Ariane des en-têtes de page. */
.oceana-ariane a {
	color: var(--wp--preset--color--cuivre);
}

/* Cartes produits : lien sur toute la carte. */
.oceana-carte {
	position: relative;
	overflow: hidden;
}

.oceana-carte .wp-block-image,
.oceana-carte .wp-block-image img {
	margin: 0;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.oceana-carte h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.oceana-carte h3 a {
	color: inherit;
	text-decoration: none;
}

.oceana-carte:hover {
	border-color: var(--wp--preset--color--dore) !important;
}

/* Bloc d'accueil sur photo : liseré doré. */
.oceana-encadre-dore {
	border: 4px double var(--wp--preset--color--dore);
}

/* Téléphone. */
@media (max-width: 781px) {
	.oceana-entete-actions {
		width: 100%;
	}
}

/* Téléphone de l'en-tête et introduction des pages. */
.oceana-tel a {
	text-decoration: none;
}

.oceana-intro {
	box-sizing: border-box;
	padding-right: max(0px, calc(100% - 760px));
}

.oceana-pied .oceana-pied-devis a {
	color: #ffffff;
	text-decoration: underline;
}

/* ---------- Éléments des pages ---------- */

/* Surtitre en petites capitales espacées. */
.oceana-surtitre {
	font-family: var(--wp--preset--font-family--alegreya-sans-sc);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0.08em;
}

/* Encadré blanc sur la photo d'accueil. */
.oceana-encadre-dore {
	max-width: 600px;
	box-sizing: border-box;
}

/* Prix. */
.oceana-prix {
	font-weight: 700;
	color: var(--wp--preset--color--cuivre);
	margin-top: 6px !important;
}

/* Lien « Voir les… » en bas de carte, cliquable sur toute la carte. */
.oceana-lien-carte {
	margin-top: auto !important;
	font-weight: 700;
	color: var(--wp--preset--color--cuivre);
}

.oceana-lien-carte a {
	color: inherit;
	text-decoration: none;
}

.oceana-lien-carte a::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* Icônes. */
.oceana-icone {
	flex: none;
	display: block;
}

/* Numéros des étapes. */
.oceana-etape-num {
	font-family: var(--wp--preset--font-family--alegreya-sans-sc);
	font-weight: 800;
	font-size: 40px;
	line-height: 1;
	color: var(--wp--preset--color--dore);
}

/* Bloc bleu « Fin d'année ». */
.oceana-fin-annee {
	overflow: hidden;
}

.oceana-fin-annee .is-style-outline > .wp-block-button__link {
	color: #ffffff;
	border-color: #ffffff;
}

.oceana-fin-annee .wp-block-button__link:hover {
	background: var(--wp--preset--color--texte);
	color: #ffffff;
}

/* Photo affichée en entier sur fond blanc. */
.oceana-photo-contain {
	margin: 0;
	height: 100%;
	background: #ffffff;
}

.oceana-photo-contain img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 360px;
	object-fit: contain;
}

.oceana-blanc {
	color: #ffffff;
}

@media (max-width: 600px) {
	.oceana-encadre-dore {
		padding: 32px 24px !important;
	}

	.oceana-fin-annee > .wp-block-group {
		padding: 40px 24px !important;
	}
}

/* ---------- Fiches produits (agendas, carnets, calendriers) ---------- */

.oceana-produit {
	overflow: hidden;
}

/* Photo qui remplit sa moitié de fiche. */
.oceana-photo-cover {
	position: relative;
	margin: 0;
	min-height: 380px;
}

.oceana-photo-cover img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Petits titres cuivre (Format, Personnalisation…). */
.oceana-sous-titre {
	font-size: 19px !important;
	color: var(--wp--preset--color--cuivre);
	margin: 0 0 4px 0 !important;
}

.oceana-produit ul {
	margin: 0;
	padding-left: 18px;
}

/* Ligne prix + bouton en bas de fiche. */
.oceana-ligne-prix {
	border-top: 1px solid var(--wp--preset--color--bordure);
	padding-top: 18px;
	margin-top: auto !important;
}

.oceana-prix-grand {
	font-size: 26px;
	font-weight: 700;
	color: var(--wp--preset--color--cuivre);
	line-height: 1.3;
}

@media (max-width: 600px) {
	.oceana-produit .oceana-fiche-texte {
		padding: 32px 24px !important;
	}

	.oceana-photo-cover {
		min-height: 260px;
	}
}

/* Deux listes côte à côte dans une fiche (une sous l'autre si étroit). */
.oceana-deux-listes > * {
	flex: 1 1 220px;
	min-width: 0;
}

/* ---------- Calendriers, cadeaux, à propos, contact ---------- */

/* Carte verticale : le corps occupe toute la hauteur restante. */
.oceana-carte-corps {
	flex: 1 1 auto;
}

/* Grille centrée verticalement (à propos, pochettes). */
.oceana-centre-v {
	align-items: center;
}

/* Photo entière avec marge blanche (pochette cadeau). */
.oceana-photo-contain.oceana-marge {
	box-sizing: border-box;
	padding: 24px;
}

.oceana-photo-contain.oceana-marge img {
	min-height: 352px;
}

/* En-tête de page sur fond océan. */
.oceana-entete-ocean .oceana-ariane,
.oceana-entete-ocean .oceana-ariane a {
	color: #ffffff;
}

.oceana-entete-ocean .is-style-outline > .wp-block-button__link {
	color: #ffffff;
	border-color: #ffffff;
}

/* Contact : formulaire large, colonne d'infos étroite. */
.oceana-contact-formulaire {
	flex: 999 1 560px;
	min-width: 0;
}

.oceana-contact-infos {
	flex: 1 1 320px;
	min-width: 0;
}

/* Emplacement provisoire du formulaire. */
.oceana-a-remplacer {
	border: 2px dashed var(--wp--preset--color--dore);
	border-radius: 4px;
}

/* Texte des pages légales. */
.oceana-texte-legal h2 {
	margin-top: 40px;
	font-size: var(--wp--preset--font-size--grand);
}

.oceana-a-completer {
	background: #fff3c4;
	padding: 0 4px;
	border-radius: 2px;
}

@media (max-width: 600px) {
	.oceana-contact-formulaire {
		padding: 28px 20px !important;
	}
}

/* ---------- Formulaire de devis (Contact Form 7) ---------- */

.oe-form {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.oe-form p {
	margin: 0;
}

.oe-obligatoire {
	font-size: 16px;
	color: var(--wp--preset--color--texte-leger);
}

.oe-grille {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 18px 20px;
}

.oe-separation {
	padding-top: 22px;
	border-top: 1px solid var(--wp--preset--color--bordure);
}

.oe-champ {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.oe-champ label {
	font-weight: 700;
}

.oe-champ br {
	display: none;
}

.oe-form .wpcf7-form-control-wrap {
	display: block;
}

.oe-form input[type="text"],
.oe-form input[type="tel"],
.oe-form input[type="email"],
.oe-form input[type="number"],
.oe-form input[type="date"],
.oe-form select,
.oe-form textarea {
	width: 100%;
	min-height: 48px;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1px solid #b9a28f;
	border-radius: 4px;
	font: inherit;
	color: var(--wp--preset--color--texte);
	background: #ffffff;
}

.oe-form textarea {
	min-height: 140px;
	padding: 12px 14px;
	resize: vertical;
}

.oe-form input:focus,
.oe-form select:focus,
.oe-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--ocean);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--ocean);
}

.oe-fichier input[type="file"] {
	width: 100%;
	min-height: 48px;
	box-sizing: border-box;
	padding: 9px 10px;
	border: 1px dashed #b9a28f;
	border-radius: 4px;
	font: inherit;
	font-size: 16px;
	background: #fffdfa;
}

.oe-aide {
	font-size: 15px;
	color: var(--wp--preset--color--texte-leger);
}

/* Champ piège anti-spam : invisible pour les visiteurs. */
.oe-piege {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.oe-consentement .wpcf7-list-item {
	margin: 0;
}

.oe-consentement label {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 16px;
	color: var(--wp--preset--color--texte-doux);
}

.oe-consentement input[type="checkbox"] {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 3px 0 0 0;
	accent-color: var(--wp--preset--color--cuivre);
}

.oe-envoi {
	display: flex;
	align-items: center;
	gap: 12px;
}

.oe-form .wpcf7-submit {
	min-height: 54px;
	padding: 0 30px;
	border: none;
	border-radius: 4px;
	background: var(--wp--preset--color--cuivre);
	color: #ffffff;
	font: inherit;
	font-size: 19px;
	font-weight: 700;
	cursor: pointer;
}

.oe-form .wpcf7-submit:hover,
.oe-form .wpcf7-submit:focus {
	background: var(--wp--preset--color--texte);
}

/* Messages d'erreur et de confirmation. */
.wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 15px;
	color: #a1261b;
}

.oe-form .wpcf7-not-valid {
	border-color: #a1261b;
}

.wpcf7 form .wpcf7-response-output {
	margin: 22px 0 0 0;
	padding: 14px 18px;
	border-radius: 4px;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--wp--preset--color--ocean);
	background: var(--wp--preset--color--ocean-clair);
	color: var(--wp--preset--color--ocean);
	font-weight: 700;
}
