/*
Theme Name: Safaroc Méditerranée
Theme URI: https://safaroc.com/
Author: Rukn Al Web
Description: Nouvelle déclinaison Safaroc inspirée de la maquette ACCUEIL SAFAROC : bleu, noir, jaune et orange, avec grand en-tête, navigation en deux niveaux et moteur de recherche superposé au visuel.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: safaroc-mediterranee
*/

:root {
	--navy: #004d8f;
	--navy-dark: #003e73;
	--blue: #004d8f;
	--blue-deep: #003d70;
	--yellow: #fab10b;
	--orange: #f45909;
	--black: #000000;
	--ink: #17364e;
	--muted: #728393;
	--surface: #f3f7fb;
	--white: #ffffff;
	--radius: 14px;
	--shadow: 0 16px 36px rgba(0, 77, 143, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "Tajawal", Arial, sans-serif; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(1380px, calc(100% - 48px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Top black utility bar from the client mockup */
.topbar { background: var(--black); color: #fff; }
.topbar-inner { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.contact-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 2px 13px 2px 9px; border: 2px solid #fff; border-radius: 999px; font-weight: 800; line-height: 1; letter-spacing: .02em; }
.contact-pill i { font-size: 17px; }
.topbar-actions { display: flex; align-items: center; gap: 42px; font-size: 13px; font-weight: 800; }
.language-chip, .login-link { display: inline-flex; align-items: center; gap: 8px; }
.fr-flag { width: 21px; height: 21px; overflow: hidden; border-radius: 50%; background: linear-gradient(90deg, #143b91 0 33.333%, #fff 33.333% 66.666%, #e53d3d 66.666% 100%); box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.login-icon { display: grid; place-items: center; width: 33px; height: 33px; border: 2px solid #fff; border-radius: 50%; font-size: 16px; }
.topbar a:hover { color: var(--yellow); }
.topbar a:hover .login-icon, .topbar a:hover.contact-pill { border-color: var(--yellow); }

/* Large Safaroc blue header */
.site-header { position: relative; z-index: 40; color: #fff; background: var(--blue); box-shadow: 0 5px 18px rgba(0, 39, 75, .14); }
.header-main { min-height: 160px; display: flex; align-items: center; justify-content: space-between; gap: 36px; padding-top: 14px; }
.brand { display: flex; align-items: center; min-width: 300px; }
.brand img, .safaroc-site-logo { display: block; width: auto; max-width: 500px; max-height: 136px; object-fit: contain; }
.header-socials { display: flex; align-items: center; gap: 31px; padding-right: 8px; }
.social-link { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; font-size: 37px; line-height: 1; transition: transform .18s, color .18s; }
.social-link:hover { color: var(--yellow); transform: translateY(-2px); }
.social-link-disabled { opacity: .92; cursor: default; }
.social-link-disabled:hover { color: #fff; transform: none; }
.navigation-shell { min-height: 72px; display: flex; align-items: center; }
.primary-nav { width: 100%; }
.primary-nav ul { display: flex; align-items: center; justify-content: space-between; gap: 17px; margin: 0; padding: 0; list-style: none; }
.primary-nav li { flex: 0 0 auto; }
.primary-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 12px; color: #fff; font-size: 15px; font-weight: 800; text-transform: uppercase; white-space: nowrap; transition: color .18s, background .18s, transform .18s; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--yellow); }
.primary-nav .menu-item-visa > a { min-width: 125px; padding-inline: 25px; border-radius: 999px; color: #fff; background: var(--yellow); font-size: 18px; }
.primary-nav .menu-item-guide-touristique > a { min-width: 185px; padding-inline: 25px; border-radius: 999px; color: #fff; background: var(--orange); font-size: 14px; }
.primary-nav .menu-item-visa > a:hover, .primary-nav .menu-item-guide-touristique > a:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.03); }
.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 2px solid #fff; border-radius: 50%; color: #fff; background: transparent; font-size: 21px; }

/* Hero / slider-style visual */
.hero { position: relative; min-height: 610px; color: #fff; background-color: #3b6f8e; background-image: linear-gradient(90deg, rgba(12,24,28,.45) 0%, rgba(5,31,44,.20) 45%, rgba(0,32,51,.07) 100%), var(--hero-image); background-size: cover; background-position: center; overflow: hidden; }
.hero-inner { position: relative; min-height: 610px; padding-top: 58px; padding-bottom: 155px; }
.hero-content { position: relative; z-index: 2; max-width: 790px; text-shadow: 0 3px 16px rgba(0,0,0,.32); }
.eyebrow { margin: 0 0 4px; color: #fff; font-size: clamp(17px, 1.8vw, 25px); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 850px; margin: 0; color: #fff; font-size: clamp(52px, 6.2vw, 87px); font-weight: 800; line-height: .98; letter-spacing: -.04em; text-transform: uppercase; }
.hero-copy { display: flex; align-items: center; gap: 5px; margin: 14px 0 0; color: #fff; font-size: clamp(16px, 1.7vw, 22px); }
.hero-stars { color: var(--yellow); font-size: .9em; letter-spacing: 1px; text-shadow: none; }
.hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 123px; display: flex; align-items: center; gap: 10px; transform: translateX(-50%); }
.hero-dots span { width: 29px; height: 29px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px rgba(0,77,143,.02); }
.hero-dots .is-outline { background: transparent; border: 2px solid var(--blue); }
.hero-search-wrap { position: absolute; z-index: 5; right: 0; bottom: 18px; left: 0; }
.search-form { display: grid; grid-template-columns: 1.05fr 1.15fr 1.35fr 1fr auto; gap: 28px; align-items: center; min-height: 108px; padding: 20px 28px; background: var(--yellow); box-shadow: 0 15px 30px rgba(0,0,0,.15); }
.search-field { min-width: 0; padding: 13px 14px 10px; border-radius: 7px; background: #fff; }
.search-field label { display: block; margin: 0 0 3px; color: #2b2f33; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.field-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.field-control input, .field-control select { min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; color: #59646d; background: transparent; font-size: 14px; }
.field-control input[type="date"] { color: #59646d; }
.field-control i { color: #1f2529; font-size: 24px; opacity: .85; }
.search-submit { min-width: 185px; height: 58px; padding: 0 28px; border: 0; border-radius: 7px; color: #fff; background: var(--blue); font-size: 14px; font-weight: 800; letter-spacing: .02em; cursor: pointer; transition: transform .18s, background .18s; }
.search-submit:hover { background: var(--blue-deep); transform: translateY(-2px); }

/* Content sections retained from the original Safaroc theme */
.service-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; margin: 46px auto 74px; }
.service-item { padding: 10px 12px 17px; text-align: center; border-right: 1px solid #dfe9f2; }
.service-item:last-child { border-right: 0; }
.service-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 10px; border: 1px solid rgba(0,77,143,.14); border-radius: 50%; color: var(--blue); background: #e8f2fb; box-shadow: 0 7px 18px rgba(0,77,143,.08); font-size: 23px; transition: .2s; }
.service-item:nth-child(2n) .service-icon { color: #a34a00; background: #fff1d5; }
.service-item:hover .service-icon { transform: translateY(-4px); box-shadow: 0 11px 24px rgba(0,77,143,.14); }
.service-item strong { display: block; color: var(--blue); font-size: 13px; line-height: 1.25; }
.service-item small { color: var(--muted); font-size: 11px; }

.section { padding: 76px 0; }
.section-soft { background: var(--surface); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-title { margin: 0; color: var(--blue); font-size: clamp(30px, 4vw, 43px); line-height: 1.15; }
.section-title::before { content: ""; display: inline-block; width: 38px; height: 5px; margin: 0 14px 8px 0; border-radius: 5px; background: var(--yellow); }
.section-subtitle { margin: 7px 0 0; color: var(--muted); }
.section-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 800; white-space: nowrap; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-grid.six { grid-template-columns: repeat(6, 1fr); gap: 16px; }
.travel-card { position: relative; overflow: hidden; border: 1px solid #e3ebf2; border-radius: 15px; background: #fff; box-shadow: 0 8px 24px rgba(0,77,143,.08); transition: transform .25s, box-shadow .25s; }
.travel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(135deg, #1c6ba8, var(--blue)); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.travel-card:hover .card-media img { transform: scale(1.06); }
.card-fallback { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 78% 22%, rgba(250,177,11,.85), transparent 18%), linear-gradient(135deg, #4e8fc2, var(--blue)); }
.card-badge { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 20px; color: #1e2b34; background: var(--yellow); font-size: 11px; font-weight: 800; }
.card-body { padding: 18px; }
.card-location { display: flex; align-items: center; gap: 6px; color: var(--blue); font-size: 12px; font-weight: 700; }
.card-title { margin: 3px 0 5px; color: var(--blue); font-size: 21px; line-height: 1.25; }
.card-excerpt { margin: 0 0 15px; color: var(--muted); font-size: 14px; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 13px; color: var(--ink); font-size: 12px; font-weight: 700; }
.card-link { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-size: 13px; font-weight: 800; }
.card-link i, .section-link i { font-size: .82em; transition: transform .2s; }
.card-link:hover i, .section-link:hover i { transform: translateX(3px); }
.cards-grid.six .card-body { padding: 14px; }
.cards-grid.six .card-title { font-size: 16px; }
.cards-grid.six .card-excerpt { font-size: 12px; min-height: 38px; }

.feature-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 28px; }
.feature-side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-card { position: relative; min-height: 205px; display: flex; align-items: end; overflow: hidden; padding: 28px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #0b66a8, var(--blue-deep)); box-shadow: var(--shadow); }
.feature-card.large { min-height: 430px; background-image: linear-gradient(0deg, rgba(0,55,100,.9), rgba(0,55,100,.08)), url('assets/images/photo-1569383746724-6f1b882b8f46.jpeg'); background-size: cover; background-position: center; }
.feature-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,44,80,.84), transparent 75%); }
.feature-card-content { position: relative; z-index: 1; }
.feature-card h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 4px; font-size: 25px; line-height: 1.15; }
.feature-card h3 i { color: var(--yellow); font-size: .82em; }
.feature-card p { margin: 0 0 15px; color: rgba(255,255,255,.86); }
.feature-card a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border: 1px solid rgba(255,255,255,.64); border-radius: 999px; font-size: 12px; font-weight: 800; }
.feature-card.orange { background: linear-gradient(135deg, var(--orange), #b73f00); }
.feature-card.blue { background: linear-gradient(135deg, #1674bb, var(--blue-deep)); }
.feature-card.green { background: linear-gradient(135deg, #168e7a, #07586c); }
.feature-card.purple { background: linear-gradient(135deg, #6758b6, var(--blue)); }

.trust-strip { background: #fff; border-top: 1px solid #e3ebf2; border-bottom: 1px solid #e3ebf2; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 26px 18px; border-right: 1px solid #e3ebf2; }
.trust-item:last-child { border-right: 0; }
.trust-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; color: var(--blue); background: #e8f2fb; font-size: 21px; }
.trust-item:nth-child(2n) .trust-icon { color: #a34a00; background: #fff1d5; }
.trust-item strong { display: block; color: var(--blue); }
.trust-item small { color: var(--muted); }

.archive-hero { padding: 82px 0; color: #fff; background: linear-gradient(135deg, var(--blue-deep), var(--blue)); }
.archive-hero h1 { margin: 0; font-size: clamp(38px, 6vw, 64px); }
.archive-hero p { max-width: 670px; margin: 10px 0 0; color: rgba(255,255,255,.82); }
.archive-hero .eyebrow { display: flex; align-items: center; gap: 8px; }
.content-wrap { padding: 70px 0; }
.single-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(310px, .8fr); gap: 40px; align-items: start; }
.single-media { overflow: hidden; margin-bottom: 30px; border-radius: 22px; box-shadow: var(--shadow); }
.single-media img { display: block; width: 100%; }
.single-content { font-size: 17px; }
.single-content h2, .single-content h3 { color: var(--blue); }
.offer-box { position: sticky; top: 30px; padding: 26px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.offer-box h3 { margin-top: 0; color: var(--blue); }
.offer-details { padding: 0; list-style: none; }
.offer-details li { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid #dfe9ef; }
.offer-details li span { display: inline-flex; align-items: center; gap: 7px; }
.offer-details li span i { width: 15px; color: var(--blue); text-align: center; }

.safaroc-booking-form { padding: 30px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.safaroc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.safaroc-form-grid p { margin: 0; }
.safaroc-form-wide { grid-column: 1 / -1; }
.safaroc-booking-form label { display: block; margin-bottom: 5px; color: var(--blue); font-size: 13px; font-weight: 800; }
.safaroc-booking-form input, .safaroc-booking-form textarea { width: 100%; padding: 13px 14px; border: 1px solid #d6e3ea; border-radius: 10px; outline: 0; }
.safaroc-booking-form input:focus, .safaroc-booking-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,77,143,.10); }
.safaroc-form-actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.safaroc-form-actions button, .safaroc-whatsapp-button { min-height: 48px; display: inline-flex; align-items: center; gap: 9px; padding: 0 22px; border: 0; border-radius: 999px; color: #fff; background: var(--blue); font-weight: 800; cursor: pointer; }
.safaroc-whatsapp-button { background: #25d366; }
.safaroc-form-success { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 18px; padding: 15px 18px; border-radius: 12px; color: #155b35; background: #ddf7e8; }
.safaroc-hp { position: absolute !important; left: -9999px !important; }

.site-footer { position: relative; padding: 65px 0 25px; color: rgba(255,255,255,.84); background: var(--black); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; width: 430px; height: 430px; right: -120px; bottom: -260px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.02); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 42px; }
.footer-title { margin: 0 0 17px; color: #fff; font-size: 17px; }
.footer-brand p { max-width: 300px; }
.footer-brand .safaroc-site-logo { max-width: 250px; max-height: 100px; }
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li { margin-bottom: 9px; }
.footer-list a:hover { color: var(--yellow); }
.footer-contact-list li, .footer-contact-list a { display: flex; align-items: center; gap: 9px; }
.footer-contact-list i { width: 16px; color: var(--yellow); text-align: center; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); font-size: 12px; }
.whatsapp-float { position: fixed; z-index: 50; right: 22px; bottom: 22px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: #25d366; box-shadow: 0 12px 30px rgba(18,98,52,.35); font-size: 29px; transition: transform .2s, box-shadow .2s; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 34px rgba(18,98,52,.42); }

@media (max-width: 1180px) {
	.container { width: min(1120px, calc(100% - 36px)); }
	.brand img, .safaroc-site-logo { max-width: 390px; max-height: 118px; }
	.header-socials { gap: 20px; }
	.primary-nav a { padding-inline: 7px; font-size: 13px; }
	.primary-nav .menu-item-guide-touristique > a { min-width: 165px; padding-inline: 17px; font-size: 12px; }
	.search-form { gap: 16px; padding-inline: 19px; }
	.search-submit { min-width: 150px; }
}

@media (max-width: 980px) {
	.header-main { min-height: 112px; }
	.brand img, .safaroc-site-logo { max-width: 310px; max-height: 95px; }
	.header-socials { margin-left: auto; }
	.menu-toggle { display: grid; place-items: center; }
	.navigation-shell { min-height: 0; }
	.primary-nav { position: absolute; z-index: 50; left: 18px; right: 18px; top: calc(100% - 5px); display: none; padding: 15px; border-radius: 10px; background: var(--blue-deep); box-shadow: 0 20px 40px rgba(0,0,0,.25); }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
	.primary-nav a { width: 100%; min-height: 46px; justify-content: flex-start; padding: 0 13px; border-radius: 7px; }
	.primary-nav .menu-item-visa > a, .primary-nav .menu-item-guide-touristique > a { min-width: 0; justify-content: center; }
	.hero, .hero-inner { min-height: 720px; }
	.hero-inner { padding-top: 62px; padding-bottom: 310px; }
	.hero-dots { bottom: 285px; }
	.hero-search-wrap { bottom: 22px; }
	.search-form { grid-template-columns: 1fr 1fr; gap: 12px; }
	.search-submit { min-width: 0; height: 62px; }
	.service-strip { grid-template-columns: repeat(4, 1fr); }
	.cards-grid.six { grid-template-columns: repeat(3, 1fr); }
	.feature-grid { grid-template-columns: 1fr; }
	.feature-card.large { min-height: 350px; }
}

@media (max-width: 700px) {
	.container { width: min(100% - 28px, 680px); }
	.topbar-inner { min-height: 42px; }
	.contact-pill { min-height: 30px; padding-inline: 10px; font-size: 12px; }
	.topbar-actions { gap: 14px; font-size: 11px; }
	.login-link span:first-child { display: none; }
	.login-icon { width: 29px; height: 29px; }
	.header-main { min-height: 94px; gap: 14px; }
	.brand { min-width: 0; }
	.brand img, .safaroc-site-logo { max-width: 225px; max-height: 74px; }
	.header-socials { display: none; }
	.primary-nav ul { grid-template-columns: 1fr; }
	.hero, .hero-inner { min-height: 790px; }
	.hero-inner { padding-top: 58px; padding-bottom: 465px; }
	.hero h1 { font-size: clamp(43px, 12vw, 66px); }
	.eyebrow { font-size: 17px; }
	.hero-copy { align-items: flex-start; flex-direction: column; font-size: 16px; }
	.hero-dots { bottom: 430px; }
	.hero-dots span { width: 23px; height: 23px; }
	.hero-search-wrap { bottom: 16px; }
	.search-form { grid-template-columns: 1fr; gap: 10px; min-height: 0; padding: 16px; }
	.search-field { padding: 9px 12px 8px; }
	.search-submit { width: 100%; height: 54px; }
	.service-strip { grid-template-columns: repeat(2, 1fr); margin-top: 35px; margin-bottom: 45px; }
	.cards-grid, .cards-grid.six { grid-template-columns: 1fr; }
	.section { padding: 55px 0; }
	.section-head { align-items: start; flex-direction: column; }
	.feature-side { grid-template-columns: 1fr; }
	.trust-grid { grid-template-columns: 1fr 1fr; }
	.trust-item:nth-child(2) { border-right: 0; }
	.single-layout { grid-template-columns: 1fr; }
	.offer-box { position: static; }
	.safaroc-form-grid { grid-template-columns: 1fr; }
	.safaroc-form-wide { grid-column: auto; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
	.footer-grid, .trust-grid { grid-template-columns: 1fr; }
	.trust-item { justify-content: flex-start; border-right: 0; }
	.hero h1 { font-size: 42px; }
	.topbar-actions { gap: 8px; }
	.language-chip { display: none; }
}
