/* Maison Carabin — rouge du logo, noir et blanc. */
:root {
    --carabin-red: #bf223c;
    --carabin-red-dark: #a21c32;
    --carabin-black: #171717;
    --carabin-muted: #626268;
    --header-height: 220px;
    color-scheme: light;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--carabin-black);
    background: #f5f4f4;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}
h1, h2, p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--carabin-red); outline-offset: 4px; }
.icon { display: inline-block; width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: middle; }
/* Classes de mise en page conservées du modèle HTML fourni. */
.container { width: 100%; max-width: 1280px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.z-50 { z-index: 50; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-8 > * + * { margin-top: 32px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.pb-8 { padding-bottom: 32px; }
.mb-1 { margin-bottom: 4px; }
.mb-4 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-sm { font-size: 14px; line-height: 1.5; }
.text-lg { font-size: 18px; line-height: 1.4; }
.text-xl { font-size: 20px; line-height: 1.4; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-white { color: #fff; }
.text-gray-600 { color: var(--carabin-muted); }
.text-blue-100 { color: #e8e5e6; }
.text-blue-200 { color: #e68b9a; }
.text-blue-500, .text-red-500, .text-green-500 { color: var(--carabin-red); }
.bg-white { background: #fff; }
.bg-gray-50 { background: #f5f4f4; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: minmax(0, 1fr); }
.hidden { display: none; }
.overflow-hidden { overflow: hidden; }
.object-contain { object-fit: contain; }
.rounded-2xl { border-radius: 14px; }
.shadow-lg { box-shadow: 0 5px 22px rgba(23, 23, 23, .055); }
.shadow-xl { box-shadow: 0 8px 30px rgba(23, 23, 23, .07); }
/* En-tête blanc : toutes les lettres du logo restent lisibles. */
.header-fixed {
    height: var(--header-height);
    background: #fff;
    border-bottom: 3px solid var(--carabin-red);
    box-shadow: 0 4px 18px rgba(23, 23, 23, .055);
}
.header-fixed .text-white { color: var(--carabin-black); }
.header-fixed p { color: var(--carabin-muted); }
.header-fixed .icon { color: var(--carabin-red); }
.header-fixed h1 { letter-spacing: -.025em; }
.logo-container img { display: block; height: 96px; width: auto; max-width: 80vw; object-fit: contain; }
.main-content { padding-top: calc(var(--header-height) + 32px); min-height: calc(100vh - 73px); }
.gradient-bg { background: var(--carabin-black); }
.header-fixed.gradient-bg { background: #fff; }
.gradient-card { background: #fff; border: 1px solid #e9e5e6; }
.gradient-card > .gradient-bg { border-bottom: 3px solid var(--carabin-red); }
.gradient-card > .gradient-bg .fa-camera { color: #e68b9a; }
.live-indicator { position: relative; padding-left: 17px; font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.live-indicator::before {
    content: ""; position: absolute; width: 7px; height: 7px;
    background: #e68b9a; border-radius: 50%; left: 0; top: 50%; transform: translateY(-50%);
}
.iframe-container { position: relative; }
.camera-iframe {
    display: block; width: 100%; max-width: 1185px; height: 65vh;
    max-height: 650px; min-height: 400px;
    margin: 0 auto; border: 0; border-radius: 8px; background: #f5f4f4; overflow: hidden;
}
/* La première galerie est remise à l’endroit, commandes Tikee comprises.
   Les sélecteurs par ID conservent la rotation du clone en plein écran. */
#camera1, #camera1_fullscreen {
    transform: rotate(180deg) translateZ(0);
    -webkit-transform: rotate(180deg) translateZ(0);
}
.fullscreen-controls { display: none; justify-content: flex-end; margin-bottom: 12px; }
.fullscreen-btn {
    display: inline-flex; align-items: center; gap: 6px; border: 0;
    border-radius: 6px; padding: 11px 16px; min-height: 44px;
    color: #fff; background: var(--carabin-red); cursor: pointer; font-size: 14px;
    transition: background .2s ease;
}
.fullscreen-btn:hover { background: var(--carabin-red-dark); }
.fullscreen-iframe {
    position: fixed !important; top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important; height: 100dvh !important;
    max-width: none !important; max-height: none !important; min-height: 0 !important;
    z-index: 9999 !important; border: 0 !important; border-radius: 0 !important;
}
.fullscreen-overlay { position: fixed; inset: 0; background: #171717; z-index: 9998; }
.exit-fullscreen-btn {
    position: fixed; top: max(16px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    color: #fff; background: var(--carabin-red); border: 0; border-radius: 6px;
    padding: 11px 16px; cursor: pointer; font-size: 14px; z-index: 10000;
}
.exit-fullscreen-btn:hover { background: var(--carabin-red-dark); }
footer { border-top: 3px solid var(--carabin-red); }
footer a:hover { color: #e68b9a; }
@keyframes slideInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }
.animate-slide-up { animation: slideInUp .45s ease-out both; }
.animate-fade-scale { animation: fadeInScale .5s ease-out both; }
@media (min-width: 768px) {
    .md\:text-2xl { font-size: 24px; line-height: 1.35; }
    .md\:text-xl { font-size: 20px; }
    .md\:text-base { font-size: 16px; }
    .md\:p-6 { padding: 24px; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:inline { display: inline; }
}
@media (max-width: 768px) {
    .fullscreen-controls { display: flex; }
    .camera-iframe { height: 55vh; min-height: 320px; max-height: 500px; }
}
@media (max-width: 430px) {
    :root { --header-height: 220px; }
    .header-fixed h1 { max-width: 290px; margin-left: auto; margin-right: auto; }
    .header-fixed p { font-size: 12px; }
    .logo-container img { height: 88px; }
    .main-content { padding-top: calc(var(--header-height) + 20px); }
    .space-y-8 > * + * { margin-top: 20px; }
    .camera-iframe { height: 45vh; min-height: 280px; max-height: 350px; }
    .rounded-2xl { border-radius: 10px; }
}
@media (max-width: 768px) and (orientation: landscape) {
    :root { --header-height: 158px; }
    .logo-container img { height: 56px; }
    .header-fixed h1 { max-width: none; }
    .header-fixed .space-y-3 > * + * { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .animate-slide-up, .animate-fade-scale { animation: none; }
    .fullscreen-btn { transition: none; }
}
