/* ==============================
   Fichier : style.css
   Projet : Webarmony
   ============================== */
.montserrat {
    font-family: "Roboto", Arial, sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
/* ------------------------------
   1. Variables globales
--------------------------------*/
:root {
    --color-primary: #de7343;
    --color-primary-soft: rgba(222, 115, 67, 0.12);
    --color-primary-strong: rgba(222, 115, 67, 0.2);
    --color-dark: #000000;
    --color-grey: rgba(0, 0, 0, 0.12);
    --color-light: #ffffff;
    --color-rare: #592e1b;
    --color-text-soft: rgba(0, 0, 0, 0.72);
    --color-surface: rgba(255, 255, 255, 0.9);
    --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.08);
    --shadow-warm: 0 18px 38px rgba(89, 46, 27, 0.12);
    --font-main: "Roboto", Arial, sans-serif;
    --font-display: "Crete Round", Georgia, serif;
}

html[data-theme="dark"] {
    --color-dark: #f7efe8;
    --color-grey: rgba(255, 255, 255, 0.12);
    --color-text-soft: rgba(247, 239, 232, 0.78);
    --color-surface: rgba(22, 18, 17, 0.9);
    --shadow-soft: 0 16px 42px rgba(0, 0, 0, 0.34);
    --shadow-warm: 0 20px 44px rgba(0, 0, 0, 0.42);
}

/* ------------------------------
   2. Reset léger
--------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
    margin-top: 200px;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.25s ease, color 0.25s ease;
}

html[data-theme="dark"] body {
    background-color: #0f0e0d;
    color: var(--color-dark);
}


/* ------------------------------
   3. Liens et titres
--------------------------------*/
a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-rare);
}

html[data-theme="dark"] a:hover {
    color: #ff9a6f;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: bold;
    letter-spacing: 0.01em;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-soft);
}

html[data-theme="dark"] ::selection {
    background: rgba(222, 115, 67, 0.32);
    color: #ffffff;
}

/* ------------------------------
   4. Layout / Containers
--------------------------------*/
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ------------------------------
   5. Boutons
--------------------------------*/
/* From Uiverse.io by vinodjangid07 */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background-color: var(--color-primary);
    border: 8px solid rgba(222, 115, 67, 0.18);
    color: white;
    gap: 8px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.text {
    font-size: 1.7em;
    font-weight: 700;
    letter-spacing: 1px;
}

.svg {
    padding-top: 5px;
    height: 100%;
    width: fit-content;
}

.svg svg {
    width: 50px;
    height: 30px;
}

.button:hover {
    border: 8px solid rgba(222, 115, 67, 0.24);
    background-color: var(--color-rare);
}

.button:active {
    border: 5px solid rgba(222, 115, 67, 0.18);
}

.button:hover .svg svg {
    animation: jello-vertical 0.9s both;
    transform-origin: left;
}

@keyframes jello-vertical {
    0% {
        transform: scale3d(1, 1, 1);
    }

    30% {
        transform: scale3d(0.75, 1.25, 1);
    }

    40% {
        transform: scale3d(1.25, 0.75, 1);
    }

    50% {
        transform: scale3d(0.85, 1.15, 1);
    }

    65% {
        transform: scale3d(1.05, 0.95, 1);
    }

    75% {
        transform: scale3d(0.95, 1.05, 1);
    }

    100% {
        transform: scale3d(1, 1, 1);
    }
}


/* ------------------------------
   6. Sections générales
--------------------------------*/
section {
    padding: 60px 0;
}

/* ------------------------------
   7. Utilitaires
--------------------------------*/
.text-center {
    text-align: center;
}

.bg-primary {
    background-color: var(--color-primary);
    color: white;
}

.bg-light {
    background-color: var(--color-light);
}

.bg-grey {
    background-color: var(--color-grey);
}

html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
    font-family: "Tajawal", Arial, sans-serif;
}
